Created
December 12, 2011 20:59
-
-
Save alamar/1469066 to your computer and use it in GitHub Desktop.
a slow cycle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn color [r g b] | |
(Color. r g b 0xFF)) | |
(def white (.getRGB (color 0xFF 0xFF 0xFF))) | |
(defn create-image [w h] | |
(let [image (BufferedImage. w h BufferedImage/TYPE_INT_RGB)] | |
(doseq [x (range w) y (range h)] | |
(.setRGB image x y white)) | |
image)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment