summaryrefslogtreecommitdiffstats
path: root/virtual-programs
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-10-09 17:36:11 +0000
committerOmar Rizwan <omar@omar.website>2023-10-09 17:36:11 +0000
commitf77cbd902cf1d352661261cd0fbf53d2b6bc1dba (patch)
treeb5a5887f43aa1effe1a3aac41a2b05a8088c3a07 /virtual-programs
parentImplement arc primitive (diff)
downloadfolk-f77cbd902cf1d352661261cd0fbf53d2b6bc1dba.tar.gz
folk-f77cbd902cf1d352661261cd0fbf53d2b6bc1dba.zip
display: Remove filled arg from arc
Diffstat (limited to 'virtual-programs')
-rw-r--r--virtual-programs/display.folk6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk
index 546e1861..bae5951f 100644
--- a/virtual-programs/display.folk
+++ b/virtual-programs/display.folk
@@ -190,7 +190,7 @@ On process {
}
}
- variable arc [Gpu::pipeline {vec2 center float start float arclen float radius float thickness vec4 color int filled} {
+ variable arc [Gpu::pipeline {vec2 center float start float arclen float radius float thickness vec4 color} {
float r = radius + thickness;
vec2 vertices[4] = vec2[4](
center - r,
@@ -217,9 +217,9 @@ On process {
}]
- proc arc {x y start arclen radius thickness color {filled false}} {
+ proc arc {x y start arclen radius thickness color} {
variable arc
- Gpu::draw $arc [list $x $y] $start $arclen $radius $thickness [getColor $color] [ne $filled "false"]
+ Gpu::draw $arc [list $x $y] $start $arclen $radius $thickness [getColor $color]
}
# TODO: Fix bool support.