KaliedaRik / Scrawl-canvas

Responsive, interactive and more accessible HTML5 canvas elements. Scrawl-canvas is a JavaScript library designed to make using the HTML5 canvas element easier, and more fun

Home Page:https://scrawl-v8.rikweb.org.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to update source of a frame?

Larry-Rui opened this issue · comments

How to update source of a frame?

Well, I found it out.
Steps:

  1. set frame.source to new asset name;
  2. set frame.redraw to true;
  3. call frame.redrawCanvas() method;
  4. call scrawl.render();