LensStudio:Ui.Color
ClassRepresents an RGBA color value.
Index
Example
const Ui = await import('LensStudio:Ui');
// Color holds RGBA components (0-1 range)
const color = new Ui.Color();
color.red = 0.9;
color.green = 0.3;
color.blue = 0.1;
color.alpha = 1.0;
console.log('Color red:', color.red);
console.log('Color green:', color.green);
console.log('Color blue:', color.blue);
console.log('Color alpha:', color.alpha);
Constructors
Constructor
new Color():
Color
Construct a new Color instance.
Returns
Color
Properties
alpha
alpha:
number
Alpha (opacity) component of the color.
blue
blue:
number
Blue component of the color.
green
green:
number
Green component of the color.
red
red:
number
Red component of the color.