Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • Good use of the new HTML-in-canvas feature but I'm not sure of the advantage over emulators (?) Its a big friction to have to enable it but I am guessing you just did this to play around with it. Great stuff!
  • Thanks 4 the code, but I have the last chrome and i can't play it.

    The browser show me the next message:

    HTML-in-Canvas not available This build uses the experimental layoutsubtree / drawElementImage canvas API. It currently runs only in Chrome Canary with the flag enabled

    ----

    I can't understand that you'r using the last technology but 'canvas' is a normal object...

  • HTML-in-canvas is a new original-trial feature of Chrome I wanted to experiment with. You don't need Chrome Canary. You can enable the feature in "normal" Chrome (148 to 154 see here https://developer.chrome.com/origintrials/#/view_trial/34784...) as well just go to chrome://flags/#canvas-draw-element and change it to "enabled"