justgook/webgl-shape/3.0.0

WebGL.Shape2d.Util

size : Texture -> Vec2

Get texture size as Math.Vec2

Text printing

{ charW : Float
, charH : Float
, src : key
, getIndex : Char -> Int
}
-> Vec3
-> String
-> TexturedShape key

Create text from individual tiles

Float
-> { src : key
, getIndex :
Char
-> Maybe
{ c | uv : Vec4, w : Width, h : Height, x : Float, y : Float }
}
-> Vec3
-> String
-> TexturedShape key

Multi-channel signed distance field atlas generator

https://github.com/Chlumsky/msdf-atlas-gen