📑 Creates a color input element.
Use the value property to get or set the color value.
value
Optional
initial color value
await Canvas(200, 100);let picker = createColorPicker();picker.value = '#fd7575';q5.draw = function () { background(picker.value);}; Copy
await Canvas(200, 100);let picker = createColorPicker();picker.value = '#fd7575';q5.draw = function () { background(picker.value);};
📑 Creates a color input element.
Use the
valueproperty to get or set the color value.