Merge pull request #136 from blad/update-object-creation

Fix Drawing Project Example
This commit is contained in:
Devine Lu Linvega 2020-09-18 09:28:16 -07:00 committed by GitHub
commit 30683c6d5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,8 @@
; ;
(clear) (clear)
; ;
(def prev-pos {:x 0 :y 0}) (def prev-pos:x 0)
(def prev-pos:y 0)
; ;
(defn stroke-color (defn stroke-color
(e) (e)
@ -34,4 +35,4 @@
; ;
(on "mouse-down" draw-circle) (on "mouse-down" draw-circle)
(on "mouse-up" draw-circle) (on "mouse-up" draw-circle)
(on "mouse-move" draw-line) (on "mouse-move" draw-line)