rocinantealpha

reference / interface

colorpicker

A swatch in a ui block that opens a color picker, with an alpha bar, and gives the color: tint = colorpicker "tint". It starts white, or as start says (start orange), and keeps its color as the sketch reloads.

mood = orangeui [ mood = colorpicker "mood" start orange ]draw [  fill mood  circle at 300 160 radius 80]
what it draws: the whole window, 400 by 300
What the example of colorpicker draws

How to write it

colorpicker text [start color] [at number number] [width number]

Gives a color.

Related