Copyright | (c) 2006-2016 alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
PDF shading
Synopsis
- data PDFShading
- paintWithShading :: PDFShading -> Draw a -> Draw ()
- applyShading :: PDFShading -> Draw ()
- createFunction1Object :: (ColorTuple a, Result e) => Function1 Global a e -> PDF (FunctionObject (PDFFloat -> a) (ExprFloat -> e))
- createFunction2Object :: (ColorTuple a, Result e) => Function2 Global a e -> PDF (FunctionObject (PDFFloat -> PDFFloat -> a) (ExprFloat -> ExprFloat -> e))
Shading
Type
data PDFShading Source #
A shading
FunctionalShading Matrix ColorFunction2 | |
AxialShading PDFFloat PDFFloat PDFFloat PDFFloat ColorFunction1 | |
RadialShading PDFFloat PDFFloat PDFFloat PDFFloat PDFFloat PDFFloat ColorFunction1 |
Instances
Eq PDFShading Source # | |
Defined in Graphics.PDF.Draw (==) :: PDFShading -> PDFShading -> Bool # (/=) :: PDFShading -> PDFShading -> Bool # | |
Ord PDFShading Source # | |
Defined in Graphics.PDF.Draw compare :: PDFShading -> PDFShading -> Ordering # (<) :: PDFShading -> PDFShading -> Bool # (<=) :: PDFShading -> PDFShading -> Bool # (>) :: PDFShading -> PDFShading -> Bool # (>=) :: PDFShading -> PDFShading -> Bool # max :: PDFShading -> PDFShading -> PDFShading # min :: PDFShading -> PDFShading -> PDFShading # |
:: PDFShading | Shading |
-> Draw a | Shape to paint |
-> Draw () |
applyShading :: PDFShading -> Draw () Source #
Fill clipping region with a shading
createFunction1Object :: (ColorTuple a, Result e) => Function1 Global a e -> PDF (FunctionObject (PDFFloat -> a) (ExprFloat -> e)) Source #
createFunction2Object :: (ColorTuple a, Result e) => Function2 Global a e -> PDF (FunctionObject (PDFFloat -> PDFFloat -> a) (ExprFloat -> ExprFloat -> e)) Source #