-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hey,
I've got an inclination to build a HTML5 canvas -> laser dock converter. This would be a chrome extension which find the canvas on a webpage, load some simple game-specific config and start sampling it and converting the canvas shapes/paths to the laserdock format. This would allow for a variety of simple web based games to be played, for example:
Is there additional documentation?
My current thinking:
- Chrome extension modifies how the html5 canvas is rendered, removing background textures, changing shapes to outlines etc. Client side js is specific to each game and liable to break.
toDataURLis used to convert canvas to an image- Images are converted to svg using something like imagetracerjs
- Svgs are then sent to a python process to be encoded using svg2ild
I have not used these libs before so performance will be questionable. I suspect the bottleneck will be vectorising the rasters - this could be multi-threaded in node if need be. Does laserdocklib bring anything to the table here?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels