color32
struct color32Available without an import.
An RGBA color with four floating-point channels.
Members
rfield
public float rThe red channel.
gfield
public float gThe green channel.
bfield
public float bThe blue channel.
afield
public float aThe alpha channel.
constructorconstructor
public constructor (float r, float g, float b, float a)Stores the RGBA channels in the supplied order without color-space conversion or alpha premultiplication.
Lerpmethod
public static fn Lerp(color32 a, color32 b, float t) : color32Interpolates each RGBA channel as a + t*(b-a). Does not clamp t or channels, convert color spaces, or premultiply alpha.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.