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

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone

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 

Instances

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 -> aSource

Set the line (stroke) color.

lineColorCMYKA :: HasStyle a => LineColorCMYK -> a -> aSource

Apply a lineColorCMYK attribute.

lcCMYK :: HasStyle a => CMYK -> a -> aSource

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 -> aSource

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 -> aSource

Set the fill color.

fcCMYK :: HasStyle a => CMYK -> a -> aSource

A synonym for fillColorCMYK