Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created October 4, 2010 08:15
Show Gist options
  • Select an option

  • Save podhmo/609375 to your computer and use it in GitHub Desktop.

Select an option

Save podhmo/609375 to your computer and use it in GitHub Desktop.
;;; redefine draw function then update display automatically
(extend gl.processing)
(use gl.processing.interactive)
(setup-with-other-thread
(lambda ()
(window 200 200 "animation" 0 100)
(rect-mode! 'center)
(update-timer 100)))
;;redrawの中を書き換えてgoshに送ると、変更が反映される。
(redraw
(background 0.4 0.4 0)
(rect 100 120 30 30))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment