   :dilate    - increases the light areas.  Doesn't work with level."
   ([mode]
    (.filter (current-graphics)
-            (int (u/resolve-constant-key mode filter-modes))))
+            (u/resolve-constant-key mode filter-modes)))
 
   ([mode level]
    (let [mode (u/resolve-constant-key mode filter-modes)]
-     (.filter (current-graphics) (int mode) (float level)))))
+     (.filter (current-graphics) mode (float level)))))
 
 #?(:clj
    (defn

             corners of the ellipse's bounding box."
  [mode]
  (let [mode (u/resolve-constant-key mode ellipse-modes)]
    (.ellipseMode (current-graphics) (int mode))))

#?(:clj
   (defn

               colors specified as the level parameter. The parameter can
               be set to values between 2 and 255, but results are most
               noticeable in the lower ranges.
  :blur      - executes a Gaussian blur with the level parameter
               specifying the extent of the blurring. If no level
               parameter is used, the blur is equivalent to Gaussian
               blur of radius 1.
  :opaque    - sets the alpha channel to entirely opaque. Doesn't work
               with level.
