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

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

Wumpus.Basic.Shapes.Base

Contents

Description

Common core for shapes

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

Synopsis

Documentation

data Shape u t Source

Instances

(Real u, Floating u) => Rotate (Shape u sh) 
(Real u, Floating u) => RotateAbout (Shape u sh) 
Num u => Scale (Shape u sh) 
Num u => Translate (Shape u sh) 

type LocShape u t = Point2 u -> Shape u tSource

makeShape :: Num u => (ShapeCTM u -> Path u) -> (ShapeCTM u -> t u) -> LocShape u tSource

type ShapeConstructor u t = ShapeCTM u -> t uSource

borderedShape :: Num u => Shape u t -> Image u (t u)Source

filledShape :: Num u => Shape u t -> Image u (t u)Source

strokedShape :: Num u => Shape u t -> Image u (t u)Source

ShapeCTM

data ShapeCTM u Source

Instances

Eq u => Eq (ShapeCTM u) 
Ord u => Ord (ShapeCTM u) 
Show u => Show (ShapeCTM u) 
Rotate (ShapeCTM u) 
(Real u, Floating u) => RotateAbout (ShapeCTM u) 
Num u => Scale (ShapeCTM u) 
Num u => Translate (ShapeCTM u)