(center)
Returns the center of the screen as a 2D Vector
Returns the center of the screen as a 2D Vector
(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.
(halfheight)
Returns window.innerHeight * 0.5
Returns window.innerHeight * 0.5
(halfwidth)
Returns window.innerWidth * 0.5
Returns window.innerWidth * 0.5
(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.
(random-height)
Returns a random number between 0-height
Returns a random number between 0-height
(random-point)
Returns a random point in the window as a vector.
Returns a random point in the window as a vector.
(random-width)
Returns a random number between 0-width
Returns a random number between 0-width
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close