• Sets the coloring of a lightning.

    Parameters

    • whichBolt: HandleHolder<"lightning">

      The lightning to be colored.

    • r: number

      0-1 visibility of red channel (value mod 1)

    • g: number

      0-1 visibility of green channel (value mod 1)

    • b: number

      0-1 visibility of blue channel (value mod 1)

    • a: number

      0-1 alpha value/overall visibility multiplier (value mod 1)

    Returns boolean

    Note

    The default is 1, 1, 1, 1.

    Bug

    This native is inaccurate. The modulo is not exactly 1 and even setting a color value to e.g. 0.1 yields 0.098.

Generated using TypeDoc