Skip to content

Instantly share code, notes, and snippets.

@JIghtuse
Created September 28, 2016 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JIghtuse/0a46c8ab6baf274022c6ce9281e2fe57 to your computer and use it in GitHub Desktop.
Save JIghtuse/0a46c8ab6baf274022c6ce9281e2fe57 to your computer and use it in GitHub Desktop.
big-bang Simple scheme program
(define scn (empty-scene))
(define width (image-width scn))
(define height (image-height scn))
(define (render-circle r)
(place-image
(circle r "solid" "red")
(/ width 2)
(/ height 2)
scn))
(define (next-circle r)
(modulo (+ r 1) 100))
(big-bang 0
(on-tick next-circle)
(on-draw render-circle))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment