Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- rasterize :: Int -> Int -> Tile a -> [[a]]
- rasterize' :: Int -> Int -> Tile a -> Compose ZipList ZipList a
- toPNG :: Int -> Int -> Tile Color -> Image PixelRGBA8
- empty :: Monoid a => Tile a
- cw :: Tile a -> Tile a
- ccw :: Tile a -> Tile a
- beside :: Tile a -> Tile a -> Tile a
- cols :: Monoid a => [Tile a] -> Tile a
- above :: Tile a -> Tile a -> Tile a
- rows :: Monoid a => [Tile a] -> Tile a
- flipH :: Tile a -> Tile a
- flipV :: Tile a -> Tile a
- quad :: Tile a -> Tile a -> Tile a -> Tile a -> Tile a
- swirl :: Tile a -> Tile a
- behind :: Monoid a => Tile a -> Tile a -> Tile a
- color :: Double -> Double -> Double -> Double -> Tile Color
- haskell :: Tile Color
- sandy :: Tile Color
- spj :: Tile Color
- rgba :: Double -> Double -> Double -> Double -> Color
- invert :: Color -> Color
- mask :: Color -> Color -> Color
- sig :: Sig
- data Tile a
- type Color = PixelRGBA8
- pattern Color :: Double -> Double -> Double -> Double -> Color
Observations
rasterize :: Int -> Int -> Tile a -> [[a]] Source #
Rasterize a Tile
down into a row-major representation of its constituent
"pixels".
:: Int | resulting width |
-> Int | resulting heigeht |
-> Tile a | |
-> Compose ZipList ZipList a | the resulting "pixels" in row-major order |
Like rasterize'
, but with a type more convenient for showing off the
applicative homomorphism.
Generic constructors
Color constructors
Special color constructors
Color operations
QuickSpec signatures
Types
Instances
Functor Tile Source # | |
Applicative Tile Source # | |
Show a => Show (Tile a) Source # | |
Semigroup a => Semigroup (Tile a) Source # | |
Monoid a => Monoid (Tile a) Source # | |
(CoArbitrary a, Arbitrary a) => Arbitrary (Tile a) Source # | |
Observe test outcome [[a]] => Observe (Small Int, Small Int, test) outcome (Tile a) Source # | |
type Color = PixelRGBA8 Source #
Orphan instances
Semigroup Color Source # | |
Monoid Color Source # | |
Arbitrary PixelRGBA8 Source # | |
arbitrary :: Gen PixelRGBA8 # shrink :: PixelRGBA8 -> [PixelRGBA8] # | |
CoArbitrary PixelRGBA8 Source # | |
coarbitrary :: PixelRGBA8 -> Gen b -> Gen b # | |
Observe () Color Color Source # | |