Copyright | (c) 2014 diagrams-lib team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | None |
Language | Haskell2010 |
Diagrams.Backend.Postscript.CMYK
Contents
Description
Support for CMYK color attributes in the Postscript backend.
Synopsis
- 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.
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
.
Instances
Semigroup LineColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods (<>) :: LineColorCMYK -> LineColorCMYK -> LineColorCMYK # sconcat :: NonEmpty LineColorCMYK -> LineColorCMYK # stimes :: Integral b => b -> LineColorCMYK -> LineColorCMYK # | |
Default LineColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods def :: LineColorCMYK # | |
AttributeClass LineColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK |
getLineColorCMYK :: LineColorCMYK -> CMYK #
mkLineColorCMYK :: CMYK -> LineColorCMYK #
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
.
Instances
Semigroup FillColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods (<>) :: FillColorCMYK -> FillColorCMYK -> FillColorCMYK # sconcat :: NonEmpty FillColorCMYK -> FillColorCMYK # stimes :: Integral b => b -> FillColorCMYK -> FillColorCMYK # | |
Default FillColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods def :: FillColorCMYK # | |
AttributeClass FillColorCMYK # | |
Defined in Diagrams.Backend.Postscript.CMYK |
getFillColorCMYK :: FillColorCMYK -> CMYK #
mkFillColorCMYK :: CMYK -> FillColorCMYK #
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