diagrams-postscript-1.4: Postscript backend for diagrams drawing EDSL

Copyright(c) 2014 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Backend.Postscript.CMYK

Contents

Description

Support for CMYK color attributes in the Postscript backend.

Synopsis

CMYK

CMYK colors are represented with four values from 0.0 to 1.0.

data CMYK #

Constructors

CMYK 

Instances

Eq CMYK # 

Methods

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

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

Show CMYK # 

Methods

showsPrec :: Int -> CMYK -> ShowS #

show :: CMYK -> String #

showList :: [CMYK] -> ShowS #

Line color

data LineColorCMYK #

The color with which lines (strokes) are drawn. Note that child colors always override parent colors; that is, lineColorCMYK c1 . lineColorCMYK c2 $ d is equivalent to lineColorCMYK c2 $ d. More precisely, the semigroup structure on line color attributes is that of Last.

lineColorCMYK :: HasStyle a => CMYK -> a -> a #

Set the line (stroke) color.

lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> a #

Apply a lineColorCMYK attribute.

lcCMYK :: HasStyle a => CMYK -> a -> a #

A synonym for lineColorCMYK.

Fill color

data FillColorCMYK #

The color with which shapes are filled. Note that child colors always override parent colors; that is, fillColorCMYK c1 . fillColorCMYK c2 $ d is equivalent to lineColorCMYK c2 $ d. More precisely, the semigroup structure on fill color attributes is that of Last.

recommendFillColorCMYK :: HasStyle a => CMYK -> a -> a #

Set a "recommended" fill color, to be used only if no explicit calls to fillColor (or fc, or fcA) are used.

fillColorCMYK :: HasStyle a => CMYK -> a -> a #

Set the fill color.

fcCMYK :: HasStyle a => CMYK -> a -> a #

A synonym for fillColorCMYK