-
-
Notifications
You must be signed in to change notification settings - Fork 9
OSL ‐ Colour Picker
Mistium edited this page Feb 27, 2024
·
2 revisions
The color picker is a set of OSL commands that utilize the HTML system color picker for selecting colors within your program.
-
colourpicker "show"
:- Displays the color picker interface.
-
colourpicker "setpos" x y
:- Sets the location of the color picker on the screen.
-
colourpicker "setcol" #hexcode
:- Sets the current color of the color picker to the specified hexadecimal color code.
-
colourpicker "getcol"
:- Retrieves the current color selected in the color picker and sets the variable
picker_colour
to that color.
- Retrieves the current color selected in the color picker and sets the variable
colourpicker "show" // Shows the color picker interface
colourpicker "setpos" 100 100 // Sets the position of the color picker to (100, 100)
colourpicker "setcol" #FF0000 // Sets the color picker's current color to red
colourpicker "getcol" // Retrieves the current color from the color picker and stores it in the variable picker_colour
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here