HPDF-1.7: Generation of PDF documents
Copyright(c) 2006-2016 alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.PDF.Colors

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

Instances details
Eq Color Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

(==) :: Color -> Color -> Bool #

(/=) :: Color -> Color -> Bool #

Ord Color Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

compare :: Color -> Color -> Ordering #

(<) :: Color -> Color -> Bool #

(<=) :: Color -> Color -> Bool #

(>) :: Color -> Color -> Bool #

(>=) :: Color -> Color -> Bool #

max :: Color -> Color -> Color #

min :: Color -> Color -> Color #

Functions

setRGBColorSpace :: Draw () Source #

Init the PDF color space to RGB.

fillColor Source #

Arguments

:: MonadPath m 
=> Color

Filling color

-> m () 

Select the filling color

strokeColor Source #

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