Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Very simple image algebra, as in Pan
Synopsis
- type R2 = R :* R
- type Angle = R
- type Transform = Unop R2
- rotateP :: Angle -> Transform
- translateP :: R2 -> Transform
- scaleP :: R2 -> Transform
- uniform :: (R2 -> a) -> R -> a
- uscaleP :: R -> Transform
- type Image c = R2 -> c
- type ImageC = Image Color
- type Region = Image Bool
- type Filter c = Unop (Image c)
- toImageC :: ToColor c => (p -> c) -> p -> Color
- toPImageC :: ToColor c => (a -> p -> c) -> a -> p -> Color
- translate :: R2 -> Filter c
- scale :: R2 -> Filter c
- uscale :: R -> Filter c
- rotate :: R -> Filter c
- complementR :: Applicative f => Unop (f Bool)
- intersectR :: Applicative f => Binop (f Bool)
- unionR :: Applicative f => Binop (f Bool)
- xorR :: Applicative f => Binop (f Bool)
- diffR :: Applicative f => Binop (f Bool)
- nothing :: a -> Bool
- everything :: a -> Bool
- xPos :: Region
- xyPos :: Region
- udisk :: Region
- disk :: R -> Region
- disk' :: R -> Region
- annulus :: R -> R -> Region
- checker :: Region
- frac :: RealFrac a => a -> a
- woobly :: Region
Documentation
translateP :: R2 -> Transform Source #
complementR :: Applicative f => Unop (f Bool) Source #
intersectR :: Applicative f => Binop (f Bool) Source #
everything :: a -> Bool Source #