This example combines use of two Uize.Widget.ColorPicker
instances with a single Uize.Widget.ColorCube
instance to display a gradient between two colors you select. The color cube is turned into a simple gradient display by setting the value of its divisionsY
state property to 1
, and then using only the colorTopLeft
and colorTopRight
state properties to change the gradient's color poles.
Color 1 | Uize.Widget.ColorCube Instance | Color 2 |