Module
Hylograph.Isometric.Spike
- Package
- purescript-hylograph-isometric
- Repository
- afcondon/purescript-hylograph-isometric
Spikes: a thin upright mark standing on a point, whose height (and the colour a caller gives it) encodes a value. A spike always faces the camera, so it reads the same from every side; its drop shadow lies on the plane it stands on.
#SpikeShape Source
#spikeOutline Source
spikeOutline :: Camera -> Spike -> Array PointThe spike as drawn: a triangle or a rectangle across the line of sight.
#shadowOutline Source
shadowOutline :: Camera -> Spike -> Array PointThe spike's shadow on the plane it stands on, cast away from a light over
the viewer's left shoulder (the light Prism.lightness uses), half as
long as the spike is tall.
#spikeFootprint Source
spikeFootprint :: Spike -> OutlineWhat the painter's order should take a lone spike to cover on the floor.