color8
struct color8Available without an import.
An RGBA color with four unsigned 8-bit channels in the range 0–255. Suitable for standard pixel storage.
Members
rfield
public uint8 rThe red channel.
gfield
public uint8 gThe green channel.
bfield
public uint8 bThe blue channel.
afield
public uint8 aThe alpha channel.
constructorconstructor
public constructor (uint8 r, uint8 g, uint8 b, uint8 a)Stores the RGBA channels in the supplied order without color-space conversion or alpha premultiplication.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.