Go to the first, previous, next, last section, table of contents.

Some useful picture combinators

Here are some derived picture combinators, see `PicLib.lhs' for the complete list provided:

* line :: Coord -> Coord -> Picture
draw a line between point p1 and p2 using the current pen.
* rline :: Size -> Picture
draw line segment with delta (dx,dy).
* polyline :: [Coord] -> Picture
draw a polyline, connecting the points in the list ls.
* rpolyline :: [Translation] -> Picture
draw a polyline, specified relatively.
* ellipse :: Size -> Picture
* circle :: Unit -> Picture
draw a circle with radius r.
* placeAt :: Coord -> Picture -> Picture
translate Picture pic to position pos.
* square :: Int -> Picture
return a Picture of a square.
* overlayAt :: Coord -> Picture -> Picture -> Picture
translate Picture picA to position pos and overlay with picB.
* noverlay :: [Picture] -> Picture
overlay n Pictures, preserving the ordering of the list.
* coverlay :: Picture -> Picture -> Picture
centre both pictures before overlaying their (new) origins.
* cnoverlay :: [Picture] -> Picture
n-ary version of the above operation.
* beside :: Picture -> Picture -> Picture
construct new picture by horisontally aligning two pictures, centred vertically.
* nbeside :: [Picture] -> Picture
horisontally arrange a collection of Pictures, left to right.
* above :: Picture -> Picture -> Picture
* nabove :: [Picture] -> Picture
same as for beside, this time vertical.
* scale :: Scaling -> Picture -> Picture
* rotate :: Degrees -> Picture -> Picture
* rotate_rad :: Rotation -> Picture -> Picture
* translate :: Translation -> Picture -> Picture
* invisRect :: Size -> Picture
* fillSolid :: Picture -> Picture
* centre :: Picture -> Picture
* centreH :: Picture -> Picture
* centreV :: Picture -> Picture
* moveAnchor :: CompassDirection -> Picture -> Picture
* moveLeft :: Picture -> Picture
* moveRight :: Picture -> Picture
* moveTop :: Picture -> Picture
* moveBottom :: Picture -> Picture
* movePropH :: FUnit -> Picture -> Picture
* movePropV :: FUnit -> Picture -> Picture
* moveProp :: FSize -> Picture -> Picture
* moveNorth,moveNorthEast :: Picture -> Picture
* moveEast, moveSouthEast :: Picture -> Picture
* moveSouth,moveSouthWest :: Picture -> Picture
* moveWest, moveNorthWest :: Picture -> Picture
* flipV,flipH :: Picture -> Picture
-- shortcuts to setting the foreground & bground colours.
* withColour :: Colour -> Picture -> Picture
* withBground :: Colour -> Picture -> Picture
-- font setting shortcuts
* withFont :: [FontAttr] -> Picture -> Picture

Go to the first, previous, next, last section, table of contents.