Liking cljdoc? Tell your friends :D

somekit.window


centercljs

(center)

Returns the center of the screen as a 2D Vector

Returns the center of the screen as a 2D Vector
sourceraw docstring

dimensionscljs

(dimensions)
(dimensions n)

Returns dimensions of window as a vector. If argument is given, height and width gets multiplied by argument.

Returns dimensions of window as a vector. If argument is given,
height and width gets multiplied by argument.
sourceraw docstring

halfheightcljs

(halfheight)

Returns window.innerHeight * 0.5

Returns window.innerHeight * 0.5
sourceraw docstring

halfwidthcljs

(halfwidth)

Returns window.innerWidth * 0.5

Returns window.innerWidth * 0.5
sourceraw docstring

heightcljs

(height)
(height n)

Returns window.innerHeight. If argument is given, muliply height by argument.

Returns window.innerHeight. If argument is given,
muliply height by argument.
sourceraw docstring

random-heightcljs

(random-height)

Returns a random number between 0-height

Returns a random number between 0-height
sourceraw docstring

random-pointcljs

(random-point)

Returns a random point in the window as a vector.

Returns a random point in the window as a vector.
sourceraw docstring

random-widthcljs

(random-width)

Returns a random number between 0-width

Returns a random number between 0-width
sourceraw docstring

widthcljs

(width)
(width n)

Returns window.innerWidth. If argument is given, multiply width by argument.

Returns window.innerWidth. If argument is given,
multiply width by argument.
sourceraw docstring

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

× close