Copyright | (c) 2014 diagrams-lib team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | [email protected] |
Safe Haskell | Safe-Inferred |
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 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
.
Instances
Semigroup LineColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods (<>) :: LineColorCMYK -> LineColorCMYK -> LineColorCMYK # sconcat :: NonEmpty LineColorCMYK -> LineColorCMYK # stimes :: Integral b => b -> LineColorCMYK -> LineColorCMYK # | |
Default LineColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods def :: LineColorCMYK # | |
AttributeClass LineColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK |
getLineColorCMYK :: LineColorCMYK -> CMYK Source #
mkLineColorCMYK :: CMYK -> LineColorCMYK Source #
lineColorCMYK :: HasStyle a => CMYK -> a -> a Source #
Set the line (stroke) color.
lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> a Source #
Apply a lineColorCMYK
attribute.
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
.
Instances
Semigroup FillColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods (<>) :: FillColorCMYK -> FillColorCMYK -> FillColorCMYK # sconcat :: NonEmpty FillColorCMYK -> FillColorCMYK # stimes :: Integral b => b -> FillColorCMYK -> FillColorCMYK # | |
Default FillColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK Methods def :: FillColorCMYK # | |
AttributeClass FillColorCMYK Source # | |
Defined in Diagrams.Backend.Postscript.CMYK |
getFillColorCMYK :: FillColorCMYK -> CMYK Source #
mkFillColorCMYK :: CMYK -> FillColorCMYK 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.