wumpus-basic-0.21.0: Basic objects and system code built on Wumpus-Core.

PortabilityGHC
Stabilityhighly unstable
Maintainerstephen.tetley@gmail.com

Wumpus.Basic.Kernel.Objects.Image

Description

Common types and operations.

Synopsis

Documentation

data Image u a Source

Instances

type Graphic u = Image u (UNil u)Source

data Query u a Source

Instances

type DImage a = Image Double aSource

Type specialized version of Image.

type DGraphic = Graphic DoubleSource

Type specialized version of Graphic.

stripImage :: Image u a -> Query u aSource

Strip the graphic content from an Image making a Query.

liftQuery :: Query u a -> Image u aSource

Turn a Query into an Image without graphic content.

emptyImage :: Monoid a => Image u aSource

Having empty at the specific Image type is useful.

primGraphic :: CatPrim -> Graphic uSource

Constructor for Primtive graphics.

clipImage :: PrimPath -> Image u a -> Image u aSource

Clip an Image.