cads (owner)

Fork Of

Revisions

  • b00f8d cads Sun May 24 00:08:54 -0700 2009
  • 7f8f97 Thu Dec 25 21:27:58 -0800 2008
gist: 109177 Download_button fork
public
Public Clone URL: git://gist.github.com/109177.git
Embed All Files: show embed
basic-2d.clj #
1
2
3
4
5
6
7
8
9
10
11
(import '(java.awt Point Graphics Frame) '(java.awt.geom AffineTransform))
 
(def minpoint (doto (Point.) (.setLocation 0 0)))
(def maxpoint (doto (Point.) (.setLocation 1000 1000)))
 
(defn draw [pts #^Frame w]
  (doseq [[x y] pts] (.fillRect (.getGraphics w) x y 1 1)))
 
 
(let [w (doto (Frame. "Bitmap") (.setSize 600 700) (.setVisible true))] ())