Preparing search index...

    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);
    Index

    Constructors

    Properties

    Constructors

    • Construct a new Color instance.

      Returns Color

    Properties

    alpha: number

    Alpha (opacity) component of the color.

    blue: number

    Blue component of the color.

    green: number

    Green component of the color.

    red: number

    Red component of the color.