Function Repository Resource:

ColorWheelSelector

Source Notebook

Display a color wheel in the HSB color space and select a color

Contributed by: Kotaro Okazaki

ResourceFunction["ColorWheelSelector"][]

displays a color wheel in the HSB color space and selects a color.

ResourceFunction["ColorWheelSelector"][Dynamic[color]]

takes the setting to be the dynamically updated current color of the HSB color space.

Details and Options

The color wheel is an abstract illustration of hue around a circle, and saturation and brightness in a square.
Click the "Print" button to print the selected color.
The following option can be given:
ImageSize150the size of the display

Examples

Basic Examples (3) 

Display the color wheel and select a color using the mouse:

In[1]:=
ResourceFunction["ColorWheelSelector"][]
Out[4]=

Click the "Print" button to print the selected color:

Select a color to set values of hue, saturation and brightness not using the mouse:

Scope (1) 

The selected color can dynamically update a variable and the background color updates if the variable changes value:

In[5]:=
col = Hue[0, 1, 1];
Row[{Graphics[{Circle[]}, Background -> Dynamic[col], ImageSize -> 270], ResourceFunction["ColorWheelSelector"][Dynamic[col], ImageSize -> Tiny]}]
Out[6]=

Options (1) 

ImageSize (1) 

Use predefined symbolic sizes:

In[7]:=
ResourceFunction["ColorWheelSelector"][ImageSize -> Tiny]
Out[8]=

Publisher

Kotaro Okazaki

Version History

  • 1.0.0 – 05 July 2022

Related Resources

License Information