← Standard library

color16

struct color16

Available without an import.

An RGBA color with four unsigned 16-bit channels.

Colors.wax:33

Members

rfield

public uint16 r

The red channel.

Colors.wax:37

gfield

public uint16 g

The green channel.

Colors.wax:41

bfield

public uint16 b

The blue channel.

Colors.wax:45

afield

public uint16 a

The alpha channel.

Colors.wax:49

constructorconstructor

public constructor (uint16 r, uint16 g, uint16 b, uint16 a)

Stores the RGBA channels in the supplied order without color-space conversion or alpha premultiplication.

Colors.wax:55

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.