I tried to use canvas() and drawing in the canvas using script {} after canvas. It workd well in Chrome but on my Android devices I can see it draws but the canvas turns white afterwards.

Submitted by Terje Pedersen on 23 March 2011 at 11:24

On 25 March 2011 at 16:35 Zef Hemel commented:

Hmm, that may be a timing issue (canvas not properly instantiated or something). Does it work if you put a short sleeping period before the drawing? For instance:

script {
sleep(100);
can.fillRect(…);
}


On 25 March 2011 at 20:24 Terje Pedersen commented:

Yes it worked with sleep(100);

Log in to post comments