Type Aliases

ColorComponents

type ColorComponents = readonly [
  | SharedValueLike<number>
  | number, 
  | SharedValueLike<number>
  | number, 
  | SharedValueLike<number>
  | number, 
  | SharedValueLike<number>
  | number];

Red, green, blue, alpha, each 0..1. The one colour form that can carry a SharedValue per channel, and so the one the engine can patch per frame - a packed integer cannot survive the float32 slot it would have to travel in.

On this page

No Headings