summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorAndrés Cuervo <andrescuervor@gmail.com>2023-05-10 19:57:58 +0000
committerAndrés Cuervo <andrescuervor@gmail.com>2023-05-10 19:57:58 +0000
commitab8bde99521e35b65401edcd9368f45dff76ff54 (patch)
treed7c11ed48057f450d6b3f51fff28b1c03d449336 /virtual-programs
parentMerge pull request #27 from FolkComputer/haip/laser-blob-tracking (diff)
downloadfolk-ab8bde99521e35b65401edcd9368f45dff76ff54.tar.gz
folk-ab8bde99521e35b65401edcd9368f45dff76ff54.zip
Make circles proper circles, add hex- & octagon
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/shapes.folk9
1 files changed, 7 insertions, 2 deletions
diff --git a/virtual-programs/shapes.folk b/virtual-programs/shapes.folk
index f5c913aa..9515568b 100644
--- a/virtual-programs/shapes.folk
+++ b/virtual-programs/shapes.folk
@@ -95,9 +95,14 @@ When /someone/ wishes /p/ draws a /color/ /shape/ offset /offsetVector/ & /p/ ha
square {
shape 4 $x $y $adjustedWidth $color $filled
}
- # TODO: cwervo - fix magic numbers here
+ hexagon {
+ shape 6 $x $y $adjustedWidth $color $filled
+ }
+ octagon {
+ shape 8 $x $y $adjustedWidth $color $filled
+ }
circle {
- shape 10 [expr {$x * 0.98}] $y [expr {$adjustedWidth * 0.4}] $color $filled
+ shape 30 $x $y [expr {$adjustedWidth * 0.1}] $color $filled
}
default {
shape 5 $x $y $adjustedWidth $color $filled