(between? value end1 end2)
Returns true if value is between end1 and end2
Returns true if value is between end1 and end2
(distinct-key f coll)
Given a function f to uniquely identify items, extracts all of the distinct items in a collection.
Given a function f to uniquely identify items, extracts all of the distinct items in a collection.
(enumerate s)
Returns a seq of tuples like [i v], where i enumerates the position (starting from zero, of course) in the original sequence and v is the corresponding value in the original sequence. Example:
user=> (enumerate [:a :b :c]) ([0 :a] [1 :b] [2 :c])
Returns a seq of tuples like [i v], where i enumerates the position (starting from zero, of course) in the original sequence and v is the corresponding value in the original sequence. Example: user=> (enumerate [:a :b :c]) ([0 :a] [1 :b] [2 :c])
(h)
(h percentage)
Returns a given percentage of the height Quil-specific.
Returns a given percentage of the height Quil-specific.
(h-int)
(h-int percentage)
A version of h
that truncates to an int value.
A version of `h` that truncates to an int value.
(not-in? seq elm)
true if seq does not contain elm
true if seq does not contain elm
(set-color-mode)
Set the color space to HSB, with the following ranges:
Set the color space to HSB, with the following ranges: - Hue: [0, 360) - Saturation: [0 100] - Brightness: [0 100] - Alpha: [0.0, 1.0]
(vec-remove v index)
Removes an element by index from a vector
Removes an element by index from a vector
(w)
(w percentage)
Returns a given percentage of the width. Quil-specific.
Returns a given percentage of the width. Quil-specific.
(w-int)
(w-int percentage)
A version of w
that truncates to an int value.
A version of `w` that truncates to an int value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close