Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A very rudimentary attempt to duplicate basic HTML layouts inside a canvas tag.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
README
html-to-canvas.js

README

This is a very basic attempt to replicate an existing HTML node (and it's children) inside a canvas tag. It assumes the host browser supports the canvas tag and the getBoundingClientRect. I am working on this as the basis for another experiment, which is why I'm constantly testing to see if an element is opaque or not, as I will not need to be rendering opaque elements for that project.

I have no idea what I'm doing, so I'm sure this is a stupid way to do things.
Something went wrong with that request. Please try again.