Liking cljdoc? Tell your friends :D

infinitelives.pixi.sprite


get-poscljs

(get-pos sprite & [offset-x offset-y])

return the position of sprite as a vec2. optionally pass in an x and y offset to add to the returned vector

return the position of sprite as a vec2.
optionally pass in an x and y offset to add
to the returned vector
sourceraw docstring

get-xcljs

(get-x sprite)
source

get-xycljs

(get-xy sprite)
source

get-ycljs

(get-y sprite)
source

make-pointcljs

(make-point x y)

Make a PIXI Point from x and y

Make a PIXI Point from x and y
sourceraw docstring

make-spritecljs

(make-sprite
  texture
  &
  {:keys [x y xhandle yhandle scale alpha interactive mousedown rotation tint
          tiling tiling-width tiling-height visible]
   :or
     {x 0 y 0 xhandle 0.5 yhandle 0.5 scale 1 alpha 1 rotation 0 tiling false}})

construct a sprite by its texture. optionally pass in other things

construct a sprite by its texture. optionally pass in other things
sourceraw docstring

set-alpha!cljs

(set-alpha! sprite alpha)
source

set-anchor!cljs

(set-anchor! sprite x y)
source

set-pivot!cljs

(set-pivot! sprite x y)
source

set-pos!cljs

(set-pos! sprite pos)
(set-pos! sprite x y)
source

set-rotation!cljs

(set-rotation! sprite theta)
source

set-scale!cljs

(set-scale! sprite s)
(set-scale! sprite sx sy)
source

set-texture!cljs

(set-texture! sprite tex)
source

set-visible!cljs

(set-visible! sprite visibility)
source

set-x!cljs

(set-x! sprite x)
source

set-y!cljs

(set-y! sprite y)
source

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

× close