eventloop-0.2.1.2: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellNone
LanguageHaskell2010

Eventloop.Module.BasicShapes

Documentation

data Shape Source

Constructors

BaseShape Primitive ShapeColor (Maybe Rotation) 
CompositeShape [Shape] (Maybe Translation) (Maybe Rotation)

Should contain atleast 1 shape

Instances

data Primitive Source

Constructors

Rectangle

Translation is upperleftcorner

Circle

Translation is center

Polygon

Translation is center

Text

Translation is center, does not have a boundingbox due to technical limitations

Line 

Fields

point1 :: Point
 
point2 :: Point
 
MultiLine 

Fields

point1 :: Point
 
point2 :: Point
 
otherPoints :: [Point]