Guest User

Untitled

a guest
Nov 15th, 2012
128
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.           (cond
  7.             (= value \#) (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#FF0000" :background "#00FF00" :stroke 3 :cap :round))
  8.             (= value \space) (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#0FF000" :background "#000FF0" :stroke 3 :cap :round))
  9.             :else  (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#00FF00" :background "#0000FF" :stroke 3 :cap :round))
  10.               ))))))
Advertisement
Add Comment
Please, Sign In to add comment