Added text shape support, fixes #42

This commit is contained in:
Devine Lu Linvega
2019-07-14 21:16:17 +09:00
parent cb4ce3eb18
commit d21178202a
6 changed files with 52 additions and 15 deletions

View File

@@ -9,16 +9,17 @@
; draw circle
(stroke
(circle center-w center-h rad) 2 "red")
(circle center-w center-h rad) 2 "white")
; draw rect
(stroke
(rect
(sub center-w rad) (sub center-h rad) center-h center-h) 2 "red")
(sub center-w rad) (sub center-h rad) center-h center-h) 2 "white")
; draw line
(stroke
(line
(pos (sub center-w rad) center-h)
(pos (add center-w rad) center-h)))
)
(stroke (text 10 170 200 "HELL") 2 "pink")
)