about summary refs log tree commit diff stats
path: root/shell/data.limg
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-06-05 21:17:23 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-06-05 23:12:13 -0700
commitb5d3095c923ba8ce7ee07bc2666e42a9a1f483af (patch)
treee866f37c14d523f186db9c4cdf820fe034af8803 /shell/data.limg
parent79a80f77745fb4da0183a794096528fd1f895888 (diff)
downloadmu-b5d3095c923ba8ce7ee07bc2666e42a9a1f483af.tar.gz
shell: cool new stress-test
Diffstat (limited to 'shell/data.limg')
-rw-r--r--shell/data.limg12
1 files changed, 10 insertions, 2 deletions
diff --git a/shell/data.limg b/shell/data.limg
index de093dee..9e7c1954 100644
--- a/shell/data.limg
+++ b/shell/data.limg
@@ -125,8 +125,16 @@
   (for y r (< y ymax) (+= y side)
     (for x r (< x xmax) (+= x side)
       (circle_rainbow screen x y (- r 100) 10)))))))])
+    (task . [(def (task screen)
+  (let xmax (width screen)
+  (let ymax (height screen)
+  (for y 0 (< y ymax) (+= y 1)
+    (for x 4 (< x xmax) (+= x 1)
+      (pixel screen x y
+             # color
+             (+ (* x x) (* y y))))))))])
     (main . [(def (main screen keyboard)
-  (bowboard screen 128))])
+  (task screen))])
   ))
-  (sandbox . (+ 3 4))
+  (sandbox . (task screen))
 )