rect.l 500 B

1234567891011121314
  1. (def draw-rect (fn
  2. (while (def rw (- rw 1))
  3. (do (def rrh rh)
  4. (while (def rrh (- rrh 1))
  5. (pixel (+ rx rw) (+ ry rrh) rcolor))))))
  6. (def i 12)
  7. (while (def i (- i 1)) (do
  8. (def rx (* 40 (+ i 2)))
  9. (def ry rx)
  10. (def rw 150)
  11. (def rh 50)
  12. (def rcolor (+ 255 (* 256 (* i 30))))
  13. (draw-rect)))