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 Double) 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 Double) 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.
data CMYK
Line color
data LineColorCMYK
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
.
mkLineColorCMYK :: CMYK -> LineColorCMYK
styleLineColorCMYK :: Setter' (Style v Double) CMYK
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,
is equivalent to fillColorCMYK
c1
. fillColorCMYK
c2 $ d
.
More precisely, the semigroup structure on fill color attributes
is that of lineColorCMYK
c2 $ dLast
.
mkFillColorCMYK :: CMYK -> FillColorCMYK
styleFillColorCMYK :: Setter' (Style v Double) CMYK
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