Copyright | (c) Fumiaki Kinoshita 2014 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- class Functor p => Affine p where
- class Affine p => Picture2D p where
- newtype Picture a = Picture {
- runPicture :: forall m. (Applicative m, Monad m, Picture2D m) => m a
Documentation
class Affine p => Picture2D p where Source
The class of types that can be regarded as a kind of picture.
bitmap :: Bitmap -> p () Source
bitmapOnce :: Bitmap -> p () Source
Same as bitmap
, but it does not create a cache.
polygon :: [Vec2] -> p () Source
polygonOutline :: [Vec2] -> p () Source
circle :: Double -> p () Source
circleOutline :: Double -> p () Source
thickness :: Float -> p a -> p a infixr 5 Source