beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.Sidebar.ColorPicker

ColorPicker
op id:580500eb-1f95-4e40-95f8-1ca50b044d0e
Shows a color-picker in the sidebar

summary (oneliner)

doc

youtube id

Inputs

Link (Object)

Either a link to the sidebar or sidebar group


Text (string Number)

The label text


Input Red (Number)

Input Green (Number)

Input Blue (Number)

Set Default (Function)

Default (string Number)

The default color (as 6 or 7 digit hex color), e.g. "#ff0000"


Outputs

Children (Object)

Here you can connect other sidebar ops


Red (Number)

The red amount from the color picker, in range [0..1]


Green (Number)

The green amount from the color picker, in range [0..1]


Blue (Number)

The blue amount from the color picker, in range [0..1]


Sidebar Color-Picker / OneMinus Example:

Shows how to use the sidebar Ops.Sidebar.ColorPicker op to control the patch background color. The color components (red / green / blue) are then inverted (with the Ops.Math.OneMinus op) to create the complementary color, which is used as the fill color of the circle.



Credits

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using ColorPicker

Public Patches using ColorPicker