Skip to content

Export and import scripts / Hm05Script / ScriptImage

Interface: ScriptImage ​

A picture made by api.render.

Properties ​

PropertyTypeDescription
canvasOffscreenCanvasdraw on it freely (it is yours)
heightnumber-
originPointwhere the space's (0, 0) falls in the picture, in pixels — the pivot / registration point of a sprite
regionBoundsthe area captured, in timeline (or, for render.object in "local" space, object) units
scalenumberoutput pixels per unit
widthnumber-

HereSplash — 2D animation for the web