Copyright | (c) 2014 diagrams-lib team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | None |
Language | Haskell2010 |
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) CMYK Source
lineColorCMYK :: HasStyle a => CMYK -> a -> a Source
Set the line (stroke) color.
lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> a Source
Apply a lineColorCMYK
attribute.
lcCMYK :: HasStyle a => CMYK -> a -> a Source
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) CMYK Source
recommendFillColorCMYK :: HasStyle a => CMYK -> a -> a Source
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 Source
Set the fill color.
fcCMYK :: HasStyle a => CMYK -> a -> a Source
A synonym for fillColorCMYK