summaryrefslogtreecommitdiffstats
path: root/virtual-programs/errors.folk
diff options
context:
space:
mode:
authorAndrés Cuervo <andrescuervor@gmail.com>2023-09-11 18:43:51 +0000
committerAndrés Cuervo <andrescuervor@gmail.com>2023-09-11 18:43:51 +0000
commitb52a8de29b201ebef5550ae6d7f4314d5eef3ea0 (patch)
tree67ac51418978ff9bc800fdd028fb2a55e3f75c0a /virtual-programs/errors.folk
parentBegin rewriting shapes to correctly use centroid-relative positioning (diff)
parentMerge pull request #80 from FolkComputer/arcade/error-highlighting (diff)
downloadfolk-b52a8de29b201ebef5550ae6d7f4314d5eef3ea0.tar.gz
folk-b52a8de29b201ebef5550ae6d7f4314d5eef3ea0.zip
Merge remote-tracking branch 'origin/main' into ac/better-shapes-sept-2023
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