Main building block
rectangle : Vec3 -> Float -> Float -> Shape2d
rectangle color width height =
Shape2d
{ x = 0
, y = 0
, a = 0
, sx = 1
, sy = 1
, o = 1
, form = Form width height (Render.rect color)
}Render is part of Shape2d that converts Shape2d into Entity
rect : Vec3 -> Render
rect color uP uT opacity =
WebGL.entity
Shader.vertNone
Shader.fragFill
Shader.mesh
{ color = setAlpha color opacity
, uP = uP
, uT = uT
}Vec4 representing part of transform matrix
| x y 0 |
| z w 0 |
| 0 0 1 |Vec2 representing part of transform matrix
| 1 0 x |
| 0 1 y |
| 0 0 1 |
Converts shapes to WebGL entities and
Setof missing texture filenames