Bootstrap Chameleon Logo

SColorBlock

SColorBlock

Property Type Note
Aka String Name for the widget
Color Number Array, Length = 4 Linear color values, for example:[0.5, 0.5, 0.5, 1]
ColorIsHSV Bool
OnMouseButtonDown String The python code which will be executed..
ShowBackgroundForAlpha Bool
Size Number Array, Length = 2 For example:[100, 50]
ToolTipText String
UseSRGB Bool
Visibility Enum: EVisibility: Visible, Collapsed, Hidden, HitTestInvisible, SelfHitTestInvisible, All

functions what can be called from ChameleonData

FunctionName Description
set_color Set widget's color and opacity.

Examples

Example 1:

    "SColorBlock": 
    {
        "Color":[0.5, 0.5, 1, 1],
        "ColorIsHSV": false
    }