MotionScript

@motion-script/core


@motion-script/core / RasterizedSurface

Interface: RasterizedSurface

Defined in: render/render-context.ts:38

Pixels produced by RenderContext.rasterizeOffscreen: RGBA8888, unpremultiplied, top-down (canvas row order). width/height are device px, so they reflect the pixel ratio the renderer actually used rather than the logical size that was asked for.

Properties

height

height: number

Defined in: render/render-context.ts:41


pixels

pixels: Uint8Array

Defined in: render/render-context.ts:39


width

width: number

Defined in: render/render-context.ts:40