bytes
function bytes(self): {
Function: bytes()
function bytes(self): {
a: number;
b: number;
g: number;
r: number;
};Defined in: packages/motion/src/Color.ts:450
RGBA as 0–255 bytes — the form ThorVG's setFillColor/setStrokeColor want.
a is scaled from the 0–1 alpha, so this is the single conversion point
for the raster boundary (the getters keep alpha 0–1 for authoring math).
Parameters
| Parameter | Type |
|---|---|
self | Color |
Returns
{
a: number;
b: number;
g: number;
r: number;
}a
a: number;b
b: number;g
g: number;r
r: number;