dyoo/whalesong

dom canvases do not draw in web-world

dyoo opened this issue · 1 comments

dyoo commented

This is related to: http://stackoverflow.com/questions/3318565/any-way-to-clone-html5-canvas-element-with-its-content

When we do the initial cloning of a dom in web-world, we inadvertently throw away the content already drawn on the canvas.

dyoo commented

Addressed in: 89d485e. The program:

#lang planet dyoo/whalesong/cs019
(big-bang 5
          (to-draw (lambda (w dom)
                     (list 
                      "circle"
                      (circle w 'solid 'green)
                      "end")))
          (on-tick (lambda (w v) (add1 w))
                   1))

finally shows something on screen.