HTML 5 Canvas


#1

Jules,

The structure of a canvas seems similar to a juce context. Would a back-end be possible, so we could make a web access to apps with the same code and L+F?

Bruce

https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas


#2

Interesting question. It’d be pretty straightforward to create a LowLevelGraphicsContext that generates a html document, but that’s be fairly limiting, as it could only produce a static object.

Something similar that I’m pondering at the moment is whether it’d be feasible to cross-compile juce code to java and/or javascript, so that an app could be deployed on android or the web, using LLVM as an intermediate stage. There are probably lots of gotchas in trying that kind of thing, but it’d be a cool trick if possible.