API reference
Preparing search index…

PremultipliedColour

Rml::ColourbPremultiplied bytes, already multiplied by alpha.

All channels are integers in [0, 255]. Reading and assigning these bytes performs no multiplication or division, avoiding lossy alpha round trips. This tag is valid inside decoration values, not as a standalone Variant.

interface PremultipliedColour {
    alpha: number;
    blue: number;
    green: number;
    red: number;
    type: "colourb-premultiplied";
}
Source & inheritance
Member directory5

Properties

Properties

alpha: number

Alpha byte.

Source & inheritance
blue: number

Blue byte.

Source & inheritance
green: number

Green byte.

Source & inheritance
red: number

Red byte.

Source & inheritance
type: "colourb-premultiplied"

Explicit premultiplied byte format.

Source & inheritance

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