| Copyright | (c) 2006-2012, alpheccar.org |
|---|---|
| License | BSD-style |
| Maintainer | misc@NOSPAMalpheccar.org |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell98 |
Graphics.PDF.Pattern
Contents
Description
PDF Patterns
- data TilingType
- data PDFColoredPattern
- data PDFUncoloredPattern
- createColoredTiling :: PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> TilingType -> Draw a -> PDF (PDFReference PDFColoredPattern)
- createUncoloredTiling :: PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> PDFFloat -> TilingType -> Draw a -> PDF (PDFReference PDFUncoloredPattern)
- setColoredFillPattern :: PDFReference PDFColoredPattern -> Draw ()
- setColoredStrokePattern :: PDFReference PDFColoredPattern -> Draw ()
- setUncoloredFillPattern :: PDFReference PDFUncoloredPattern -> Color -> Draw ()
- setUncoloredStrokePattern :: PDFReference PDFUncoloredPattern -> Color -> Draw ()
Pattern
data TilingType Source
Tiling type
Constructors
| ConstantSpacing | |
| NoDistortion | |
| ConstantSpacingAndFaster |
Instances
data PDFColoredPattern Source
data PDFUncoloredPattern Source
A PDF Pattern
Arguments
| :: PDFFloat | Left |
| -> PDFFloat | Bottom |
| -> PDFFloat | Right |
| -> PDFFloat | Top |
| -> PDFFloat | Horizontal step |
| -> PDFFloat | Vertical step |
| -> TilingType | |
| -> Draw a | Drawing commands |
| -> PDF (PDFReference PDFColoredPattern) |
Create a colored tiling pattern
Arguments
| :: PDFFloat | Left |
| -> PDFFloat | Bottom |
| -> PDFFloat | Right |
| -> PDFFloat | Top |
| -> PDFFloat | Horizontal step |
| -> PDFFloat | Vertical step |
| -> TilingType | |
| -> Draw a | Drawing commands |
| -> PDF (PDFReference PDFUncoloredPattern) |
Create an uncolored tiling pattern
setColoredFillPattern :: PDFReference PDFColoredPattern -> Draw () Source
Set the fill pattern
setColoredStrokePattern :: PDFReference PDFColoredPattern -> Draw () Source
Set the stroke pattern
setUncoloredFillPattern :: PDFReference PDFUncoloredPattern -> Color -> Draw () Source
Set the fill pattern
setUncoloredStrokePattern :: PDFReference PDFUncoloredPattern -> Color -> Draw () Source
Set the stroke pattern