Created
July 22, 2011 21:58
-
-
Save pcomans/1100521 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 mkframe [] | |
(let [frame (java.awt.Frame.)] | |
(.setVisible frame true) | |
(.setSize frame (java.awt.Dimension. 512 512)) | |
(let [gfx (.getGraphics frame)] | |
(.drawString gfx (.. (java.util.Date.) toString) 160 256)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment