Behavior : Canvas Ext

Author:Rex.Rainbow

Download

Properties

Override SL

  • Enable if you wish override original saving/loading.
    • Options : ["No","Zlib"]

Actions

Canvas

Action:Erase object

  • Erase objects.
    • object ( object ) : Object to erase.

Script

Action:Eval

  • Run code to draw on canvas (ctx).
    • Js code ( string ) : Code string for drawing.

Shadow

Action:Set shadow

  • Set shadow.
    • Offset X ( number ) : Offset X of shadow, in pixels.
    • Offset Y ( number ) : Offset Y of shadow, in pixels.
    • Blur ( number ) : Blur of shadow, in pixels.
    • Color ( number or string ) : The new font color, in the form rgb(r, g, b).

Web

Action:Load image from URL

  • Replace the currently displaying animation frame with an image loaded from a web address or data URI.
    • URI ( string ) : Enter the URL on the web, or data URI, of an image to load.
    • Size ( Combo ) : Whether to resize the sprite to the size of the loaded image, or stretch it to the current size.
      • Options : ["Resize to image size","Keep current size","Scale down if larger than canvas"]
    • Cross-origin ( Combo ) : The cross-origin (CORS) mode to use for the request.
      • Options : ["anonymous","none"]

Zlib

Action:Load

  • Load from a image data previously encoded in zipped JSON format.
    • JSON ( string ) : A string of the zp data to load.

Expressions

Zlib

Expression:AsJSON

  • Return the image data in JSON format after zip.

Conditions

Web

Condition:On image URL loaded

  • Triggered after 'Load image from URL' when the image has finished loading.