HPDF-1.4.3: Generation of PDF documents

Portabilityportable
Stabilityexperimental
Maintainermisc@NOSPAMalpheccar.org
Safe HaskellNone

Graphics.PDF.Colors

Contents

Description

Colors for a PDF document

Synopsis

Colors

Types

data Color Source

A PDF color

Constructors

Rgb !Double !Double !Double 
Hsv !Double !Double !Double 

Instances

Eq Color 
Ord Color 
PdfObject Color 

Functions

setRGBColorSpace :: Draw ()Source

Init the PDF color space to RGB.

fillColorSource

Arguments

:: MonadPath m 
=> Color

Filling color

-> m () 

Select the filling color

strokeColorSource

Arguments

:: MonadPath m 
=> Color

Drawing color

-> m () 

Select the drawing color

setStrokeAlpha :: Double -> Draw ()Source

Set alpha value for transparency

setFillAlpha :: Double -> Draw ()Source

Set alpha value for transparency

Some colors