Added arc() shape

This commit is contained in:
Devine Lu Linvega
2019-08-02 14:13:42 +09:00
parent c21f39edbe
commit 44699fa08e
8 changed files with 107 additions and 61 deletions

View File

@@ -1,4 +1,3 @@
(clear)
; stroke rect
(stroke
@@ -11,6 +10,10 @@
(line 0 150 300 150) "red")
(stroke
(text 600 300 60 "hell") "white")
(stroke
(arc 600 298 296
(rad 180)
(rad -90)) "white")
(stroke
(poly
(pos 300 300)
@@ -27,6 +30,10 @@
(line 0 150 300 150) "red")
(fill
(text 600 300 60 "hell") "white")
(fill
(arc 600 298 296
(rad 180)
(rad -90)) "white")
(fill
(poly
(pos 300 300)

View File

@@ -1,5 +1,6 @@
; animated recusive spiral
; by @local_guru
(def frame-rect (frame))
(defn rec
(v)
(if (gt v 0)

View File

@@ -1,6 +1,8 @@
; stars
(clear)
; times
(def frame-rect (frame))
(defn times
(v f)
(
@@ -28,8 +30,11 @@
(cx cy r a)
(
(stroke
(line cx cy (:x (circle-pos cx cy r a)) (:y (circle-pos cx cy r a))
) "white" 2)))
(line cx cy
(:x
(circle-pos cx cy r a))
(:y
(circle-pos cx cy r a))) "white" 2)))
;
(defn draw-star
(cx cy r c)