Skip to content

textmode.js / color / TextmodeColor / normalized

Accessor: normalized ​

Get Signature ​

ts
get normalized(): [number, number, number, number];

Normalized (0-1) RGBA tuple.

Useful for passing color data to WebGL shaders.

Returns ​

[number, number, number, number]

A [r, g, b, a] tuple where each component is between 0.0 and 1.0.

Example ​