summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-10-14 00:24:08 +0000
committerOmar Rizwan <omar@omar.website>2023-10-14 00:24:08 +0000
commitdf52094ecdb6cb3dc6e70e15c3ec7f14909e30fe (patch)
tree308abba0e52dce944994d0771726d2239ba234a9 /virtual-programs
parentsprites: Fix to use wish (diff)
downloadfolk-df52094ecdb6cb3dc6e70e15c3ec7f14909e30fe.tar.gz
folk-df52094ecdb6cb3dc6e70e15c3ec7f14909e30fe.zip
stroke: Use instances. Idk if this helps much
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/display/stroke.folk5
1 files changed, 3 insertions, 2 deletions
diff --git a/virtual-programs/display/stroke.folk b/virtual-programs/display/stroke.folk
index 98eec038..f212f471 100644
--- a/virtual-programs/display/stroke.folk
+++ b/virtual-programs/display/stroke.folk
@@ -24,10 +24,11 @@ When /someone/ wishes to draw a stroke with /...options/ {
set width [dict get $options width]
set color [getColor [dict get $options color]]
+ set instances [list]
for {set i 0} {$i < [expr {[llength $points] - 1}]} {incr i} {
set from [lindex $points $i]
set to [lindex $points [expr $i+1]]
- Wish the GPU draws pipeline "line" with arguments \
- [list $from $to $width $color]
+ lappend instances [list $from $to $width $color]
}
+ Wish the GPU draws pipeline "line" with instances $instances
}