summaryrefslogtreecommitdiffstats
path: root/virtual-programs/errors.folk
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2023-09-15 19:03:03 +0000
committerOmar Rizwan <omar@omar.website>2023-09-15 19:03:03 +0000
commita8b06db48956678f9cb7b7c346f10b76fb7a934a (patch)
tree3d85e4753ccc27a90ae85ddc1a2cb7b8ce99c6e6 /virtual-programs/errors.folk
parentDisplay_vk: Animate images (diff)
parentRun camera at 60fps if possible (diff)
downloadfolk-a8b06db48956678f9cb7b7c346f10b76fb7a934a.tar.gz
folk-a8b06db48956678f9cb7b7c346f10b76fb7a934a.zip
WIP: Merge branch 'main' into osnr/vulkan-display
Diffstat (limited to 'virtual-programs/errors.folk')
-rw-r--r--virtual-programs/errors.folk11
1 files changed, 11 insertions, 0 deletions
diff --git a/virtual-programs/errors.folk b/virtual-programs/errors.folk
new file mode 100644
index 00000000..555b45bb
--- /dev/null
+++ b/virtual-programs/errors.folk
@@ -0,0 +1,11 @@
+When /p/ has error /err/ with info /info/ {
+ When the clock time is /t/ {
+ if {[expr {(int($t * 5)) % 2}] == 1} {
+ Wish $p is outlined white
+ } else {
+ Wish $p is outlined red
+ }
+ }
+
+ Wish $p has title $err
+} \ No newline at end of file