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

Stability | highly unstable |

Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |

Common core for shapes

- type LocShape u a = LocCF u (a, Path u)
- intoLocShape :: LocCF u a -> LocCF u (Path u) -> LocCF u (a, Path u)
- strokedShape :: Num u => LocShape u a -> LocImage u a
- filledShape :: Num u => LocShape u a -> LocImage u a
- borderedShape :: Num u => LocShape u a -> LocImage u a
- roundCornerShapePath :: (Real u, Floating u, FromPtSize u) => [Point2 u] -> CF (Path u)
- data ShapeCTM u
- makeShapeCTM :: Num u => Point2 u -> ShapeCTM u
- ctmCenter :: ShapeCTM u -> Point2 u
- ctmAngle :: ShapeCTM u -> Radian
- projectPoint :: (Real u, Floating u) => Point2 u -> ShapeCTM u -> Point2 u

# Documentation

strokedShape :: Num u => LocShape u a -> LocImage u aSource

filledShape :: Num u => LocShape u a -> LocImage u aSource

borderedShape :: Num u => LocShape u a -> LocImage u aSource

roundCornerShapePath :: (Real u, Floating u, FromPtSize u) => [Point2 u] -> CF (Path u)Source

Draw the shape path with round corners.

makeShapeCTM :: Num u => Point2 u -> ShapeCTM uSource