Liking cljdoc? Tell your friends :D

awb99.shapes.core


abovecljs

(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.
sourceraw docstring

assert-numbercljs

(assert-number message x)
source

assert-number-rangecljs

(assert-number-range message x-min x-max x)
source

bboxcljs

(bbox shape)
source

BBoxcljs

source

besidecljs

(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.
sourceraw docstring

center-pointcljs

(center-point shape)
source

circlecljs

(circle radius)

Returns a circle of radius.

Returns a circle of `radius`.
sourceraw docstring

color-namescljs

Set of valid color names

Set of valid color names
sourceraw docstring

color-swatchescljs

Recognized SVG color keyword names, mapped to their RGB value.

Recognized SVG color keyword names, mapped to their RGB value.
sourceraw docstring

colorizecljs

(colorize color shape)

Return shape with its color set to color.

Return `shape` with its color set to `color`.
sourceraw docstring

colors-namedcljs

(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`
sourceraw docstring

ellipsecljs

(ellipse radius-x radius-y)
source

fillcljs

(fill color shape)

Return shape with its fill set to color.

Return `shape` with its fill set to `color`.
sourceraw docstring

hslcljs

(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.
sourceraw docstring

hslacljs

(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).
sourceraw docstring

IListencljsprotocol

-listencljs

(-listen this listeners)

Attach event listeners to shape.

Attach event listeners to shape.
source

imagecljs

(image src)
(image size src)
(image width height src)

Add an image to the drawing

Add an image to the drawing
sourceraw docstring

layercljs

(layer & shapes)

Returns a new shape with these shapes layered over each other.

Returns a new shape with these `shapes` layered over each other.
sourceraw docstring

listencljs

(listen event listener shape)
(listen event-1 listener-1 event-2 listener-2 & args)
source

max-bboxcljs

(max-bbox boxes)
source

move-pointscljs

(move-points shape new-x new-y)
source

no-fillcljs

(no-fill shape)

Return shape with its fill color turned off.

Return `shape` with its fill color turned off.
sourceraw docstring

no-strokecljs

(no-stroke shape)

Return shape with its stroke color turned off.

Return `shape` with its stroke color turned off.
sourceraw docstring

opacitycljs

(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
sourceraw docstring

points-bboxcljs

(points-bbox pts)
source

polygoncljs

(polygon points)

Create an arbitrary polygon from a sequence of points.

Create an arbitrary polygon from a sequence of `points`.
sourceraw docstring

polylinecljs

(polyline points)

Create an arbitrary polyline from a sequence of points.

Create an arbitrary polyline from a sequence of `points`.
sourceraw docstring

positioncljs

(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`.
sourceraw docstring

rectanglecljs

(rectangle width height)

Returns a rectangle of width and height. See also square.

Returns a rectangle of `width` and `height`. See also `square`.
sourceraw docstring

rescalecljs

(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]
sourceraw docstring

rgbcljs

(rgb red green blue)
source

rgbacljs

(rgba red green blue alpha)
source

rotatecljs

(rotate amount shape)

Return shape with rotated by amount.

Return `shape` with rotated by `amount`.
sourceraw docstring

scalecljs

(scale amount shape)

Return shape scaled by amount.

Return `shape` scaled by `amount`.
sourceraw docstring

scale-pointscljs

(scale-points points factor)

Scale a set of points by factor.

Scale a set of `points` by `factor`.
sourceraw docstring

Shapecljs

source

shape->vectorcljs

(shape->vector shape)
source

squarecljs

(square side)

Returns a square of dimension side.

Returns a square of dimension `side`.
sourceraw docstring

strokecljs

(stroke color shape)

Return shape with its stroke set to color.

Return `shape` with its stroke set to `color`.
sourceraw docstring

stroke-widthcljs

(stroke-width width shape)

Return shape with its stroke set to color.

Return `shape` with its stroke set to `color`.
sourceraw docstring

textcljs

(text the-text)

Add a label containing the-text to a drawing.

Add a label containing `the-text` to a drawing.
sourceraw docstring

to-hiccupcljs

(to-hiccup shape)
source

trianglecljs

(triangle size)

Returns an equilateral triangle with sides of size.

Returns an equilateral triangle with sides of `size`.
sourceraw docstring

value-to-cell!cljs

(value-to-cell! the-cell & cell-path)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close