wumpus-basic-0.13.0: Common drawing utilities built on wumpus-core.

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

Wumpus.Basic.Shapes.Derived

Description

Simple shapes - rectangle, circle diamond, ellipse.

Synopsis

Documentation

data Rectangle u Source

Instances

rectangle :: (Real u, Floating u) => u -> u -> LocShape u RectangleSource

rectangle : width * height -> shape

rrectangle :: (Real u, Floating u) => u -> u -> u -> LocShape u RectangleSource

rectangle : round_length * width * height -> shape

data Circle u Source

Instances

Eq u => Eq (Circle u) 
Show u => Show (Circle u) 
(Real u, Floating u) => RadialAnchor (Circle u) 
(Real u, Floating u) => CardinalAnchor2 (Circle u) 
(Real u, Floating u) => CardinalAnchor (Circle u) 
(Real u, Floating u) => CenterAnchor (Circle u) 

circle :: (Real u, Floating u) => u -> LocShape u CircleSource

circle : radius -> shape

diamond :: (Real u, Floating u) => u -> u -> LocShape u DiamondSource

diamond : half_width * half_height -> shape

Note - args might change to tull_width and full_height...

rdiamond :: (Real u, Floating u) => u -> u -> u -> LocShape u DiamondSource

rdiamond : round_length * half_width * half_height -> shape

Note - args might change to full_width and full_height...

ellipse :: (Real u, Floating u) => u -> u -> LocShape u EllipseSource

ellipse : x_radii * y_radii -> shape