Cogent Core Docs

0%

Loading...

Static preview:

Color picker

A color picker is a widget that allows users to input colors using three sliders for the components of the HCT color system: hue, chroma, and tone. The tooltip for each slider contains more information about each component.

Properties

You can make a color picker and set its starting color to any color:

Events

You can detect when a user changes the color:

You can detect when a user changes the color as they slide (input):

Color button

You can make a button that opens a color picker dialog:

Edit color

You can detect when a user changes the color using the dialog:

Edit color