(animate tiles fps x y)
Loops through a sequence of images, drawing one of them on each draw cycle based on the current time and fps
Loops through a sequence of images, drawing one of them on each draw cycle based on the current time and fps
(background-image file)
Set the given image as background image, filling the entire sketch. Will resize the sketch/applet if necessary to make the aspect ratio match.
Set the given image as background image, filling the entire sketch. Will resize the sketch/applet if necessary to make the aspect ratio match.
(draw-grid size)
Draw a line grid over the complete sketch, with column/row numbers. Meant for identifying tile coordinates in a tile set.
Draw a line grid over the complete sketch, with column/row numbers. Meant for identifying tile coordinates in a tile set.
(load-grid src
{:keys [width height pad-x pad-y scale]
:or {pad-x 0 pad-y 0 scale 1}})
(scale-up-pixels src factor)
Scale an image up by an integer factor, without any blurring/smoothing
Scale an image up by an integer factor, without any blurring/smoothing
(tile-sequence grid tile-spec num)
Slice out a number of left-to-right adjacent tiles out of a tileset
Slice out a number of left-to-right adjacent tiles out of a tileset
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close