Copyright | (c) 2006-2016 alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PDF Patterns
Synopsis
- 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
Instances
Enum TilingType Source # | |
Defined in Graphics.PDF.Pattern succ :: TilingType -> TilingType # pred :: TilingType -> TilingType # toEnum :: Int -> TilingType # fromEnum :: TilingType -> Int # enumFrom :: TilingType -> [TilingType] # enumFromThen :: TilingType -> TilingType -> [TilingType] # enumFromTo :: TilingType -> TilingType -> [TilingType] # enumFromThenTo :: TilingType -> TilingType -> TilingType -> [TilingType] # | |
Eq TilingType Source # | |
Defined in Graphics.PDF.Pattern (==) :: TilingType -> TilingType -> Bool # (/=) :: TilingType -> TilingType -> Bool # |
data PDFColoredPattern Source #
data PDFUncoloredPattern Source #
A PDF Pattern
:: 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
createUncoloredTiling Source #
:: 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