1681-engine / pixel / opaqueRowWidths
Function: opaqueRowWidths() ​
ts
function opaqueRowWidths(frame): number[] | undefined;Defined in: src/pixel/SwayProp.ts:22
The opaque width of each row of a frame, read once off its canvas (a crown finds its trunk in them); undefined when the source is not a 2D canvas. The atlas pages are canvases kept on the CPU, so this costs no GPU read-back.
Parameters ​
| Parameter | Type |
|---|---|
frame | Texture |
Returns ​
number[] | undefined