diagrams-postscript-1.3.0.1: Postscript backend for diagrams drawing EDSL

Copyright(c) 2014 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.Backend.Postscript.CMYK

Contents

Description

Support for CMYK color attributes in the Postscript backend.

Synopsis

CMYK

CMYK colors are represented with four values from 0.0 to 1.0.

data CMYK Source

Constructors

CMYK 

Line color

data LineColorCMYK Source

The color with which lines (strokes) are drawn. Note that child colors always override parent colors; that is, lineColorCMYK c1 . lineColorCMYK c2 $ d is equivalent to lineColorCMYK c2 $ d. More precisely, the semigroup structure on line color attributes is that of Last.

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, fillColorCMYK c1 . fillColorCMYK c2 $ d is equivalent to lineColorCMYK c2 $ d. More precisely, the semigroup structure on fill color attributes is that of Last.

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