wumpus-drawing-0.2.0: High-level drawing objects built on Wumpus-Basic.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Drawing.Grids

Description

Drawing grids

Synopsis

Documentation

grid :: Fractional u => (Int, Int) -> u -> LocGraphic uSource

interiorGrid :: RealFrac u => u -> ConnectorGraphic uSource

interiorGrid : increment -> ConnectorGraphic

Draw the interior lines of a grid between the connector points - start point is interpreted as bottom-left, end-point is interpreted as top right.

The interior lines are calculated with repsect to the 0 and the increment, for instance with an increment of 10 but a start point (15,0) lines are drawn from (20,0), (30,0) etc.