Advertisement
Guest User

Untitled

a guest
Nov 15th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       (draw g
  2.         (for [ix (range 0 width)
  3.               iy (range 0 height)]
  4.           (let [line   (nth area iy)
  5.                 value  (nth line ix)
  6.                 grid   (rect (* ix 50) (* iy 50) 50 50)
  7.                 r-style (style :foreground "#FF0000" :background "#00FF00" :stroke 3 :cap :round)
  8.                 g-style (style :foreground "#00FF00" :background "#00FF00" :stroke 3 :cap :round)
  9.                 b-style (style :foreground "#0000FF" :background "#00FF00" :stroke 3 :cap :round)]
  10.             grid
  11.             (cond
  12.               (= value \#) r-style
  13.               (= value \space) g-style
  14.               :else b-style)
  15.             )))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement