| Maintainer | diagrams-discuss@googlegroups.com |
|---|---|
| Safe Haskell | None |
Diagrams.Backend.Postscript.CMYK
Contents
Description
Support for CMYK color attributes in the Postscript backend.
- data CMYK = CMYK {}
- data LineColorCMYK
- getLineColorCMYK :: LineColorCMYK -> CMYK
- mkLineColorCMYK :: CMYK -> LineColorCMYK
- styleLineColorCMYK :: Setter' (Style v) CMYK
- lineColorCMYK :: HasStyle a => CMYK -> a -> a
- lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> a
- lcCMYK :: HasStyle a => CMYK -> a -> a
- data FillColorCMYK
- getFillColorCMYK :: FillColorCMYK -> CMYK
- mkFillColorCMYK :: CMYK -> FillColorCMYK
- styleFillColorCMYK :: Setter' (Style v) CMYK
- recommendFillColorCMYK :: HasStyle a => CMYK -> a -> a
- fillColorCMYK :: HasStyle a => CMYK -> a -> a
- fcCMYK :: HasStyle a => CMYK -> a -> a
CMYK
CMYK colors are represented with four values from 0.0 to 1.0.
Line color
data LineColorCMYK Source
The color with which lines (strokes) are drawn. Note that child
colors always override parent colors; that is, is equivalent to lineColorCMYK c1
. lineColorCMYK c2 $ d.
More precisely, the semigroup structure on line color attributes
is that of lineColorCMYK c2 $ dLast.
styleLineColorCMYK :: Setter' (Style v) CMYKSource
lineColorCMYK :: HasStyle a => CMYK -> a -> aSource
Set the line (stroke) color.
lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> aSource
Apply a lineColorCMYK attribute.
lcCMYK :: HasStyle a => CMYK -> a -> aSource
A synonym for lineColorCMYK.
Fill color
data FillColorCMYK Source
The color with which shapes are filled. Note that child
colors always override parent colors; that is, is equivalent to fillColorCMYK c1
. fillColorCMYK c2 $ d.
More precisely, the semigroup structure on fill color attributes
is that of lineColorCMYK c2 $ dLast.
styleFillColorCMYK :: Setter' (Style v) CMYKSource
recommendFillColorCMYK :: HasStyle a => CMYK -> a -> aSource
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 -> aSource
Set the fill color.
fcCMYK :: HasStyle a => CMYK -> a -> aSource
A synonym for fillColorCMYK