diff options
| author | Omar Rizwan <omar@omar.website> | 2023-09-11 17:24:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-11 17:24:10 +0000 |
| commit | a7001740162b5055ca470b6f6be151340c5745e6 (patch) | |
| tree | 5423fb06ac676bd80738109ffa699a96c0091196 /virtual-programs/errors.folk | |
| parent | Merge pull request #81 from FolkComputer/arcade/png-rendering (diff) | |
| parent | errors: Simplify blink expr, speed up blink (diff) | |
| download | folk-a7001740162b5055ca470b6f6be151340c5745e6.tar.gz folk-a7001740162b5055ca470b6f6be151340c5745e6.zip | |
Merge pull request #80 from FolkComputer/arcade/error-highlighting
Visual errors and title/footnote code
Diffstat (limited to 'virtual-programs/errors.folk')
| -rw-r--r-- | virtual-programs/errors.folk | 11 |
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 |
