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

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

Graphics.Luminance.Pixel

Contents

Description

 

Synopsis

Channel size

data C8 Source

A 8-bit channel.

Constructors

C8 

data C16 Source

A 16-bit channel.

Constructors

C16 

data C32 Source

A 32-bit channel.

Constructors

C32 

Channel type

data CInts Source

Channels are integral values.

Constructors

CInts 

data CUInts Source

Channels are unsigned integral values.

Constructors

CUInts 

data CFloats Source

Channels are floating values.

Constructors

CFloats 

Channel shape

data CR a Source

A red channel only.

Constructors

CR 

Instances

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

data CRG a b Source

Rd and green channels.

Constructors

CRG 

Instances

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

data CRGB a b c Source

Red, green and blue channels.

Constructors

CRGB 

Instances

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

data CRGBA a b c d Source

Red, green, blue and alpha channels.

Constructors

CRGBA 

Instances

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

data CDepth a Source

A depth channel.

Constructors

CDepth 

Pixel format

class Pixel f Source

Minimal complete definition

pixelFormat, pixelIFormat, pixelType

Color pixel

class Pixel p => ColorPixel p Source

Instances

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