Portability | GHC |
---|---|

Stability | highly unstable |

Maintainer | stephen.tetley@gmail.com |

Safe Haskell | Safe-Infered |

Common types and operations.

- data Image u a
- type Graphic u = Image u (UNil u)
- data Query u a
- type DImage a = Image Double a
- type DGraphic = Graphic Double
- runImage :: DrawingContext -> Image u a -> PrimResult u a
- runQuery :: DrawingContext -> Query u a -> a
- stripImage :: Image u a -> Query u a
- liftQuery :: Query u a -> Image u a
- emptyImage :: Monoid a => Image u a
- primGraphic :: CatPrim -> Graphic u
- clipImage :: PrimPath -> Image u a -> Image u a

# Documentation

Decorate Image | |

UConvert Image | |

Monad (Image u) | |

Functor (Image u) | |

Applicative (Image u) | |

DrawingCtxM (Image u) | |

Monoid a => Monoid (Image u a) | |

Rotate a => Rotate (Image u a) | |

(RotateAbout a, InterpretUnit u, ~ * u (DUnit a)) => RotateAbout (Image u a) | |

Scale a => Scale (Image u a) | |

(Translate a, InterpretUnit u, ~ * u (DUnit a)) => Translate (Image u a) |

runImage :: DrawingContext -> Image u a -> PrimResult u aSource

runQuery :: DrawingContext -> Query u a -> aSource

emptyImage :: Monoid a => Image u aSource

Having *empty* at the specific `Image`

type is useful.

primGraphic :: CatPrim -> Graphic uSource

Constructor for Primtive graphics.