Bitbybit Docs
    Preparing search index...

    Class RgbaAttomic255Dto (Inputs.Color)

    Separate red, green, blue and alpha values from 0 to 255, for building a color.

    Index

    Constructors

    Properties

    r g b a

    Constructors

    • Parameters

      • Optionalr: number
      • Optionalg: number
      • Optionalb: number
      • Optionala: number

      Returns RgbaAttomic255Dto

    Properties

    r: number

    The red channel, from 0 to 255.

    0
    

    0

    255

    g: number

    The green channel, from 0 to 255.

    0
    

    0

    255

    b: number

    The blue channel, from 0 to 255.

    255
    

    0

    255

    a: number

    The opacity, from 0 (transparent) to 1 (opaque).

    1
    

    0

    1