Canvas Drawing with amp-script

This ports the MDN canvas drawing example in the mousemove event docs.

In order to use this example, you may need to first run this in your console: ! AMP.isExperimentOn('amp-script') && AMP.toggleExperiment('amp-script')

👉 There is a known issue where if you draw continually for more than a couple seconds, the amp-script will crash; to prevent that from happening, just re-mousedown every couple seconds.


GitHub: javascriptforwp-conference-amp-examples