Add color! macro
This commit is contained in:
@@ -35,7 +35,8 @@
|
|||||||
"catmull-rom-spline!" :methods}
|
"catmull-rom-spline!" :methods}
|
||||||
"Circle" {"circle" :methods
|
"Circle" {"circle" :methods
|
||||||
"circle!" :methods}
|
"circle!" :methods}
|
||||||
"Color" {"color" :static-fields}
|
"Color" {"color" :static-fields
|
||||||
|
"color!" :methods}
|
||||||
"ColorAttribute" {"attribute :color" :constructors
|
"ColorAttribute" {"attribute :color" :constructors
|
||||||
"attribute-type :color" :static-fields
|
"attribute-type :color" :static-fields
|
||||||
"attribute! :color" :static-methods}
|
"attribute! :color" :static-methods}
|
||||||
|
|||||||
@@ -25,6 +25,11 @@
|
|||||||
(u/key->upper (first args))))
|
(u/key->upper (first args))))
|
||||||
`(Color. ~@args)))
|
`(Color. ~@args)))
|
||||||
|
|
||||||
|
(defmacro color!
|
||||||
|
"Calls a single method on a `color`."
|
||||||
|
[object k & options]
|
||||||
|
`(u/call! ^Color ~object ~k ~@options))
|
||||||
|
|
||||||
; interop
|
; interop
|
||||||
|
|
||||||
(defmacro app!
|
(defmacro app!
|
||||||
|
|||||||
Reference in New Issue
Block a user