← Standard library

color32

struct color32

Available without an import.

An RGBA color with four floating-point channels.

Colors.wax:64

Members

rfield

public float r

The red channel.

Colors.wax:68

gfield

public float g

The green channel.

Colors.wax:72

bfield

public float b

The blue channel.

Colors.wax:76

afield

public float a

The alpha channel.

Colors.wax:80

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.

Colors.wax:86

Lerpmethod

public static fn Lerp(color32 a, color32 b, float t) : color32

Interpolates each RGBA channel as a + t*(b-a). Does not clamp t or channels, convert color spaces, or premultiply alpha.

Colors.wax:97

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.