luminance-0.11.0.1: Type-safe, type-level and stateless graphics framework

Copyright(C) 2015, 2016 Dimitri Sabadie
LicenseBSD3
MaintainerDimitri Sabadie <dimitri.sabadie@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.Luminance.Pixel

Contents

Description

 

Synopsis

Channel size

data C8

A 8-bit channel.

Constructors

C8 

data C16

A 16-bit channel.

Constructors

C16 

Instances

data C32

A 32-bit channel.

Constructors

C32 

Channel type

data CInts

Channels are integral values.

Constructors

CInts 

Instances

data CUInts

Channels are unsigned integral values.

Constructors

CUInts 

data CFloats

Channels are floating values.

Constructors

CFloats 

Channel shape

data CR a

A red channel only.

Constructors

CR 

Instances

Eq (CR a) 
Ord (CR a) 
Show (CR a) 
Pixel (Format t (CR r)) => ColorPixel (Format t (CR r)) 

data CRG a b

Rd and green channels.

Constructors

CRG 

Instances

Eq (CRG a b) 
Ord (CRG a b) 
Show (CRG a b) 
Pixel (Format t (CRG r g)) => ColorPixel (Format t (CRG r g)) 

data CRGB a b c

Red, green and blue channels.

Constructors

CRGB 

Instances

Pixel RGB32F 
Pixel RGB8UI 
Pixel (Format t (CRGB r g b)) => ColorPixel (Format t (CRGB r g b)) 
Eq (CRGB a b c) 
Ord (CRGB a b c) 
Show (CRGB a b c) 

data CRGBA a b c d

Red, green, blue and alpha channels.

Constructors

CRGBA 

Instances

Pixel RGBA32F 
Pixel RGBA8UI 
Pixel (Format t (CRGBA r g b a)) => ColorPixel (Format t (CRGBA r g b a)) 
Eq (CRGBA a b c d) 
Ord (CRGBA a b c d) 
Show (CRGBA a b c d) 

data CDepth a

A depth channel.

Constructors

CDepth 

Pixel format

data Format t c

A pixel format.

Constructors

Format 

Instances

class Pixel f

Minimal complete definition

pixelFormat, pixelIFormat, pixelType

Color pixel

class Pixel p => ColorPixel p

Instances

Pixel (Format t (CRGBA r g b a)) => ColorPixel (Format t (CRGBA r g b a)) 
Pixel (Format t (CRGB r g b)) => ColorPixel (Format t (CRGB r g b)) 
Pixel (Format t (CRG r g)) => ColorPixel (Format t (CRG r g)) 
Pixel (Format t (CR r)) => ColorPixel (Format t (CR r))