Module
Hylograph.Isometric.HATS
- Package
- purescript-hylograph-isometric
- Repository
- afcondon/purescript-hylograph-isometric
Drawing what the camera produces as keyed SVG, with HATS.
Everything here is a thin layer over the pure geometry: path data from
projected points, a prism's visible faces as keyed paths, and a scene's
marks joined by key in the painter's order. Because the keys stay the
same as the camera turns, redrawing with a turned camera moves the
elements already there (and puts them in the new order), so a turn can
be animated frame by frame with rerender.
#pointsData Source
pointsData :: Array Point -> StringThe points as an SVG points attribute (for polygon and polyline).
#inPaintersOrder Source
inPaintersOrder :: forall a. String -> ElementType -> Camera -> { footprint :: a -> Outline, key :: a -> String, template :: a -> Tree } -> Array a -> TreeMarks joined by key, in the painter's order for their floor footprints:
each is drawn by template into an element of the given type
(usually a Group).