Same as ShapeSolid but also can render shapes that needs textures
Create TexturedShape from Render
rectangle : Color -> Width -> Height -> TexturedShape
rectangle color w h =
Render.rect color |> TexturedShape.shape w hPut shapes together so you can move and rotate
them as a group. Maybe you want to put a bunch of stars in the sky:
shapes =
[ star
|> move 100 100
|> rotate 5
, star
|> move -120 40
|> rotate 20
, star
|> move 80 -150
|> rotate 32
, star
|> move -90 -30
|> rotate -16
]
star =
group
[ triangle yellow 20
, triangle yellow 20
|> rotate 180
]Create TexturedShape that depend on texture.
Converts
List Shapeto WebGL entities