Add bundle? function
This commit is contained in:
@@ -19,6 +19,11 @@ override the equivalent keys in each entity when being drawn.
|
|||||||
[& entities]
|
[& entities]
|
||||||
(BundleEntity. entities))
|
(BundleEntity. entities))
|
||||||
|
|
||||||
|
(defn bundle?
|
||||||
|
"Returns true if `entity` is a `bundle`."
|
||||||
|
[entity]
|
||||||
|
(isa? (type entity) BundleEntity))
|
||||||
|
|
||||||
(defn screenshot!
|
(defn screenshot!
|
||||||
"Captures a screenshot and either returns it as a `pixmap` or saves it to the
|
"Captures a screenshot and either returns it as a `pixmap` or saves it to the
|
||||||
specified path.
|
specified path.
|
||||||
|
|||||||
Reference in New Issue
Block a user