Graphics Libraries (HGL package)ContentsIndex
Graphics.HGL.Draw.Picture
Portabilitynon-portable (requires concurrency)
Stabilityprovisional
Maintainerlibraries@haskell.org
Description
Drawing various shapes.
Synopsis
arc :: Point -> Point -> Angle -> Angle -> Graphic
ellipse :: Point -> Point -> Graphic
shearEllipse :: Point -> Point -> Point -> Graphic
line :: Point -> Point -> Graphic
polyline :: [Point] -> Graphic
polygon :: [Point] -> Graphic
polyBezier :: [Point] -> Graphic
Documentation
arc
:: Pointa corner of the rectangle bounding the ellipse.
-> Pointthe opposite corner of the rectangle bounding the ellipse.
-> Anglethe start angle of the arc, measured counter-clockwise from the horizontal.
-> Anglethe extent of the arc, measured counter-clockwise from the start angle.
-> Graphica filled shape
A filled arc from an ellipse.
ellipse
:: Pointa corner of the rectangle bounding the ellipse.
-> Pointthe opposite corner of the rectangle bounding the ellipse.
-> Graphica filled shape
A filled ellipse that fits inside a rectangle defined by two Points on the window.
shearEllipse
:: Pointa corner of the bounding parallelogram.
-> Pointanother corner of the parallelogram, adjacent to the first.
-> Pointanother corner of the parallelogram, adjacent to the first and thus opposite to the second.
-> Graphica filled shape
A filled sheared ellipse that fits inside a parallelogram defined by three Points on the window. This function is implemented using polygons on both Win32 and X11.
line :: Point -> Point -> Graphic
A line between two Points.
polyline :: [Point] -> Graphic
A series of lines through a list of Points.
polygon :: [Point] -> Graphic
A filled polygon defined by a list of Points.
polyBezier :: [Point] -> Graphic
A series of (unfilled) Bezier curves defined by a list of 3n+1 control Points. This function is not supported on X11 (it yields an error message and a polyline).
Produced by Haddock version 0.7