summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2024-05-02 01:09:35 +0000
committerOmar Rizwan <omar@omar.website>2024-05-02 01:09:35 +0000
commit61606741bb80c12458dc5129ef243d7445a5237e (patch)
tree948b5a6c617d4871a99bf8f5996d337083606fcc /virtual-programs
parentREADME.md: Link live USB (diff)
downloadfolk-61606741bb80c12458dc5129ef243d7445a5237e.tar.gz
folk-61606741bb80c12458dc5129ef243d7445a5237e.zip
circle: Add layer support. Is this ugly?
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/display/circle.folk4
1 files changed, 3 insertions, 1 deletions
diff --git a/virtual-programs/display/circle.folk b/virtual-programs/display/circle.folk
index 03e4def7..60ac839e 100644
--- a/virtual-programs/display/circle.folk
+++ b/virtual-programs/display/circle.folk
@@ -25,7 +25,9 @@ When /someone/ wishes to draw a circle with /...options/ {
set thickness [dict get $options thickness]
set color [getColor [dict get $options color]]
set filled [dict_getdef $options filled false]
+ set layer [dict_getdef $options layer 0]
Wish the GPU draws pipeline "circle" with arguments \
- [list $center $radius $thickness $color [expr {$filled eq false ? 0 : 1}]]
+ [list $center $radius $thickness $color [expr {$filled eq false ? 0 : 1}]] \
+ layer $layer
}