Represents an RGBA color value.
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); Copy
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);
Construct a new Color instance.
Alpha (opacity) component of the color.
Blue component of the color.
Green component of the color.
Red component of the color.
Represents an RGBA color value.
Example