wumpus-basic-0.11.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.

** WARNING ** - the types of Shapes and Plaintext are not ideal and are pending revision.

Synopsis

Documentation

data Rectangle u Source

Instances

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

rectangle : width * height -> shape

rrectangle :: (Real u, Floating u) => u -> u -> u -> Shape 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 -> Shape u CircleSource

circle : radius -> shape

data Diamond u Source

Instances

diamond :: (Real u, Floating u) => u -> u -> Shape 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 -> Shape 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 -> Shape u EllipseSource

ellipse : x_radii * y_radii -> shape