API reference
Preparing search index…

VariantColour

Tagged Rml::Colourb or Rml::Colourf, preserving the native colour type.

interface VariantColour {
    alpha: number;
    blue: number;
    green: number;
    red: number;
    type: "colourb" | "colourf";
}
Type hierarchy

Hierarchy (View Summary)

Source & inheritance
Member directory5

Properties

Properties

alpha: number

Alpha channel.

Source & inheritance
blue: number

Blue channel.

Source & inheritance
green: number

Green channel.

Source & inheritance
red: number

Red channel.

Source & inheritance
type: "colourb" | "colourf"

Byte channels are integers 0..255; float channels use native float.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0