Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (draw g
- (for [ix (range 0 width)
- iy (range 0 height)]
- (let [line (nth area iy)
- value (nth line ix)]
- (cond
- (= value \#) (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#FF0000" :background "#00FF00" :stroke 3 :cap :round))
- (= value \space) (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#0FF000" :background "#000FF0" :stroke 3 :cap :round))
- :else (flatten (rect (* ix 50) (* iy 50) 50 50) (style :foreground "#00FF00" :background "#0000FF" :stroke 3 :cap :round))
- ))))))
Advertisement
Add Comment
Please, Sign In to add comment