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

data SpikeShape

A needle tapers to a point; a bar keeps its width.

Constructors

Instances

#Spike Source

newtype Spike

Constructors

Instances

#spikeOutline Source

spikeOutline :: Camera -> Spike -> Array Point

The spike as drawn: a triangle or a rectangle across the line of sight.

#shadowOutline Source

shadowOutline :: Camera -> Spike -> Array Point

The 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 -> Outline

What the painter's order should take a lone spike to cover on the floor.