(above & shapes)
Return shapes
with their positions adjusted so they're stacked above one another.
Return `shapes` with their positions adjusted so they're stacked above one another.
(beside & shapes)
Return shapes
with their positions adjusted so they're lined up beside one another.
Return `shapes` with their positions adjusted so they're lined up beside one another.
(circle radius)
Returns a circle of radius
.
Returns a circle of `radius`.
Recognized SVG color keyword names, mapped to their RGB value.
Recognized SVG color keyword names, mapped to their RGB value.
(colorize color shape)
Return shape
with its color set to color
.
Return `shape` with its color set to `color`.
(colors-named s)
Subset of color-names
whose names include the given String s
Subset of `color-names` whose names include the given String `s`
(fill color shape)
Return shape
with its fill set to color
.
Return `shape` with its fill set to `color`.
(hsl hue saturation lightness)
Returns a color of hue
(a number between 0-359 representing an angle on the color wheel), saturation
percentage and lightness
percentage.
Returns a color of `hue` (a number between 0-359 representing an angle on the color wheel), `saturation` percentage and `lightness` percentage.
(hsla hue saturation lightness alpha)
Returns a color of hue
(a number between 0-359 representing an angle on the color wheel)/saturation
(percentage)/lightness
(percentage)/alpha
(0.0-1.0).
Returns a color of `hue` (a number between 0-359 representing an angle on the color wheel)/`saturation` (percentage)/`lightness` (percentage)/`alpha` (0.0-1.0).
(-listen this listeners)
Attach event listeners to shape.
Attach event listeners to shape.
(image src)
(image size src)
(image width height src)
Add an image to the drawing
Add an image to the drawing
(layer & shapes)
Returns a new shape with these shapes
layered over each other.
Returns a new shape with these `shapes` layered over each other.
(no-fill shape)
Return shape
with its fill color turned off.
Return `shape` with its fill color turned off.
(no-stroke shape)
Return shape
with its stroke color turned off.
Return `shape` with its stroke color turned off.
(opacity o shape)
Set the opacity of the shape to o
, which should be a decimal number between 0 and 1.0
Set the opacity of the shape to `o`, which should be a decimal number between 0 and 1.0
(polygon points)
Create an arbitrary polygon from a sequence of points
.
Create an arbitrary polygon from a sequence of `points`.
(polyline points)
Create an arbitrary polyline from a sequence of points
.
Create an arbitrary polyline from a sequence of `points`.
(position x y shape)
Return shape
with its x and y positions set to x
and y
.
Return `shape` with its x and y positions set to `x` and `y`.
(rectangle width height)
Returns a rectangle of width
and height
. See also square
.
Returns a rectangle of `width` and `height`. See also `square`.
(rescale value old-min old-max new-min new-max)
Rescales value from range [old-min, old-max] to [new-min, new-max]
Rescales value from range [old-min, old-max] to [new-min, new-max]
(rotate amount shape)
Return shape
with rotated by amount
.
Return `shape` with rotated by `amount`.
(scale amount shape)
Return shape
scaled by amount
.
Return `shape` scaled by `amount`.
(scale-points points factor)
Scale a set of points
by factor
.
Scale a set of `points` by `factor`.
(square side)
Returns a square of dimension side
.
Returns a square of dimension `side`.
(stroke color shape)
Return shape
with its stroke set to color
.
Return `shape` with its stroke set to `color`.
(stroke-width width shape)
Return shape
with its stroke set to color
.
Return `shape` with its stroke set to `color`.
(text the-text)
Add a label containing the-text
to a drawing.
Add a label containing `the-text` to a drawing.
(triangle size)
Returns an equilateral triangle with sides of size
.
Returns an equilateral triangle with sides of `size`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close