← Standard library

color8

struct color8

Available without an import.

An RGBA color with four unsigned 8-bit channels in the range 0–255. Suitable for standard pixel storage.

Colors.wax:2

Members

rfield

public uint8 r

The red channel.

Colors.wax:6

gfield

public uint8 g

The green channel.

Colors.wax:10

bfield

public uint8 b

The blue channel.

Colors.wax:14

afield

public uint8 a

The alpha channel.

Colors.wax:18

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.

Colors.wax:24

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.