Color Picker
Last updated
Was this helpful?
Last updated
Was this helpful?
OSL provides a built-in color picker interface that utilizes the HTML system color picker for selecting colors in your applications.
Displays the color picker interface:
Positions the color picker at specific screen coordinates:
Sets the current color of the picker:
Retrieves the currently selected color:
The color picker uses the native HTML color picker interface
Selected colors are stored in the picker_colour
variable
Colors are in hexadecimal format (#RRGGBB)
Position coordinates are relative to the window
The color picker remains visible until hidden
Changes to the color are immediate