An 8-bit RGBA colour.
Nearly every drawing native in FiveM (DRAW_MARKER, SET_TEXT_COLOUR,
DRAW_RECT, ...) takes four separate red, green, blue, alpha integers.
Passing a Rgba around instead of four loose numbers removes an entire
category of argument-order mistakes; unpack it at the call site with
c.r, c.g, c.b, c.a.
Static methods
staticfromHex(hex:String, alpha:Int = 255):Rgba
Parses "#RRGGBB" or "#RRGGBBAA" (the leading # is optional).
staticinlinelerp(this:RgbaData, target:Rgba, t:Float):Rgba
Blends towards target; t of 0 keeps this colour, 1 gives target.
staticinlinetoInt(this:RgbaData):Int
Packs into a single 0xRRGGBBAA integer.
Built with multiplication instead of shifts for the reason described in
fromHex — the components are non-overlapping bytes, so the result is
identical.