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

Copyright(c) Alastair Reid, 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilitynon-portable (requires concurrency)
Safe HaskellNone
LanguageHaskell98

Graphics.HGL.Draw.Brush

Description

Brushes, used for filling shapes.

Synopsis

Documentation

data Brush

createBrush :: RGB -> IO Brush

Create a Brush.

deleteBrush :: Brush -> IO ()

Destroy a Brush created with createBrush.

selectBrush :: Brush -> Draw Brush

Set the Brush for subsequent drawing, returning the previous setting.

mkBrush :: RGB -> (Brush -> Draw a) -> Draw a

Create a Brush locally to a drawing.