(batch-add batch [x y] text)
starting at position 'pos', add all the letters so that the string text appears. Return the next render position for the next character.
starting at position 'pos', add all the letters so that the string text appears. Return the next render position for the next character.
(google [font & rest])
Load in one or more specified google font by name
Load in one or more specified google font by name
(load-font-js-metrics url size)
returns a channel that receives the metrics hashmap once the font is loaded and processed by Font.js. url is either a url to a ttf or otf. Or a system font definition size is in pixels
returns a channel that receives the metrics hashmap once the font is loaded and processed by Font.js. url is either a url to a ttf or otf. Or a system font definition size is in pixels
(make-text font
str
&
{:keys [fill align style weight stroke strokeThickness dropShadow
dropShadowColor dropShadowDistance x y]
:or {dropShadowDistance 5
align "left"
stroke "#ffffff"
dropShadowColor "#444444"
fill "#ffffff"
dropShadow false
style "normal"
weight 400
strokeThickness 0}})
Make a PIXI.Text object using font and string and default settings
Make a PIXI.Text object using font and string and default settings
(render-texture-char! rtex metrics char x y)
render a char at position [x y] onto a RenderTexture. returns that RenderTexture. Mutates RenderTexture
render a char at position [x y] onto a RenderTexture. returns that RenderTexture. Mutates RenderTexture
(x-position metrics row i)
given a string, and the index of the charater to render in the string, return its x position of rendering (by adding up previous characters sizes
given a string, and the index of the charater to render in the string, return its x position of rendering (by adding up previous characters sizes
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close