     (doto g2d
       (.setColor color)
       (.setComposite composite)
+      (.setPaint paint)
       (.setStroke stroke)
       (.setTransform transform))))
 

                    (BasicStroke. width cap-code join-code miter-limit
                                  dashes-array dash-phase)
                    (BasicStroke. width cap-code join-code miter-limit)))))
    (when (and x y rotate)
      (doto g2d
        (.translate x y)
        (.rotate rotate)
        (.translate (- x) (- y)))))

(defn- with-g2d-state-fn [g2d params body-fn]
  (let [color (.getColor g2d)
        composite (.getComposite g2d)
        stroke (.getStroke g2d)
        transform (.getTransform g2d)]
    (set-g2d-state g2d params)

    {:x 180 :y 120 :text "Testing..."
     :color Color/BLUE
     :alpha 0.4
     :rotate 0.2
     :scale 1.1
     :font {:name "Arial"
            :bold true
            :italic false
