I'm just learning to play with html5's canvas property. I discovered an awesome program @ https://developer.mozilla.org/en-US/demos/detail/ghostwriter-art-studio/launch that lets users draw pictures, choosing from a variety of tools and colors.
I would like to modify the code so that, rather than give users a rectangular sandbox to play in, they can draw anywhere in an article. For example, imagine an article about physiology with three dozen paragraphs. They could underline or highlight any word or draw a little picture in the margin. Can this be done?
In fact, I've already modified the code and it's working almost perfectly...except that I'm still locked in a rectangular box.
This particular script has two canvases inside a div...
<div id="drawing">
<canvas id="artboard" width="750" height="500"></canvas>
<canvas id="workboard" width="750" height="500"></canvas>
Changing the height to 100% doesn't work. If I change #artboard's height to 2500px, the vertical drawing area actually shrinks.
I'm not sure if Ghostwriter is the only drawing script available; I haven't yet figured out a good search term. Anyway, can anyone either tell me how to make the vertical drawing area bigger or perhaps recommend another script I can check out?