Created
September 28, 2016 06:28
-
-
Save JIghtuse/0a46c8ab6baf274022c6ce9281e2fe57 to your computer and use it in GitHub Desktop.
big-bang Simple scheme program
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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