HGL-3.2.0.5: A simple graphics library based on X11 or Win32

Portabilitynon-portable (requires concurrency)
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellNone

Graphics.HGL.Draw.Picture

Description

Drawing various shapes.

Synopsis

Documentation

arcSource

Arguments

:: Point

a corner of the rectangle bounding the ellipse.

-> Point

the opposite corner of the rectangle bounding the ellipse.

-> Angle

the start angle of the arc, measured counter-clockwise from the horizontal.

-> Angle

the extent of the arc, measured counter-clockwise from the start angle.

-> Graphic

a filled shape

A filled arc from an ellipse.

ellipseSource

Arguments

:: Point

a corner of the rectangle bounding the ellipse.

-> Point

the opposite corner of the rectangle bounding the ellipse.

-> Graphic

a filled shape

A filled ellipse that fits inside a rectangle defined by two Points on the window.

shearEllipseSource

Arguments

:: Point

a corner of the bounding parallelogram.

-> Point

another corner of the parallelogram, adjacent to the first.

-> Point

another corner of the parallelogram, adjacent to the first and thus opposite to the second.

-> Graphic

a 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 -> GraphicSource

A line between two Points.

polyline :: [Point] -> GraphicSource

A series of lines through a list of Points.

polygon :: [Point] -> GraphicSource

A filled polygon defined by a list of Points.

polyBezier :: [Point] -> GraphicSource

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).