imj-base-0.1.0.2: Game engine with geometry, easing, animated text, delta rendering.

Safe HaskellNone
LanguageHaskell2010

Imj.Graphics.UI.Colored

Contents

Synopsis

Documentation

data Colored a Source #

Constructors

Colored 

Instances

Show a => Show (Colored a) Source # 

Methods

showsPrec :: Int -> Colored a -> ShowS #

show :: Colored a -> String #

showList :: [Colored a] -> ShowS #

DiscreteColorableMorphing a => DiscreteDistance (Colored a) Source #

Interpolates the color and morphs the Colorable at the same time.

HasLayeredColor (Colored a) Source # 
Colorable a => Drawable (Colored a) Source #

Colored can wrap a Colorable, to give it a notion of color.

Methods

draw :: (Draw e, MonadReader e m, MonadIO m) => Colored a -> m () Source #

DiscreteColorableMorphing a => DiscreteMorphing (Colored a) Source #

Colored can wrap a DiscreteColorableMorphing, to make a DiscreteMorphing.

Interpolates the color and morphs the Colorable at the same time.

Methods

drawMorphing :: (Draw e, MonadReader e m, MonadIO m) => Colored a -> Colored a -> Int -> m () Source #

drawMorphingSuccessive :: (Draw e, MonadReader e m, MonadIO m) => Successive (Colored a) -> Int -> m () Source #

Reexports

class Colorable a where Source #

A Colorable is a colourless graphical element.

Minimal complete definition

drawUsingColor

Methods

drawUsingColor :: (Draw e, MonadReader e m, MonadIO m) => a -> LayeredColor -> m () Source #

To draw a Colorable, we need to pass a LayeredColor.