The 2D layer · function

themeRgba

themeColour and unpackRgba in one call, which is how a widget uses both.

Explained in Sprites and tilemaps.

function themeRgba(theme: Theme, name: string, fallback: number, out: Float32Array): Float32Array
import { themeRgba } from '@driftengine/ui2d';

Parameters

ParameterTypeDescription
themeTheme
namestring
fallbacknumber
outFloat32Array