luminance-0.3.1.2: Type-safe, dependently-typed 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

class ChannelSize c Source

Minimal complete definition

channelSize

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

class ChannelType t Source

Minimal complete definition

channelType

data CInts Source

Channels are integral values.

Constructors

CInts 

data CUInts Source

Channels are unsigned integral values.

Constructors

CUInts 

Channel shape

data CR a Source

A red channel only.

Constructors

CR 

Instances

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

data CRG a b Source

Rd and green channels.

Constructors

CRG 

Instances

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

data CRGB a b c Source

Red, green and blue channels.

Constructors

CRGB 

Instances

Pixel * RGB32F Source 
Pixel * RGB8UI Source 
Pixel * (Format k * t (CRGB k1 k2 k3 r g b)) => ColorPixel * (Format k * t (CRGB k k k r g b)) Source 
Eq (CRGB k k k a b c) Source 
Ord (CRGB k k k a b c) Source 
Show (CRGB k k k 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 k * t (CRGBA k1 k2 k3 k4 r g b a)) => ColorPixel * (Format k * t (CRGBA k k k k r g b a)) Source 
Eq (CRGBA k k k k a b c d) Source 
Ord (CRGBA k k k k a b c d) Source 
Show (CRGBA k k k k a b c d) Source 

data CDepth a Source

A depth channel.

Constructors

CDepth 

Instances

Pixel format

data Format t c Source

A pixel format.

Constructors

Format 

Instances

Pixel * Depth32F Source 
Pixel * RGBA32F Source 
Pixel * RGB32F Source 
Pixel * RGBA8UI Source 
Pixel * RGB8UI Source 
Pixel * (Format k * t (CRGBA k1 k2 k3 k4 r g b a)) => ColorPixel * (Format k * t (CRGBA k k k k r g b a)) Source 
Pixel * (Format k * t (CRGB k1 k2 k3 r g b)) => ColorPixel * (Format k * t (CRGB k k k r g b)) Source 
Pixel * (Format k * t (CRG k1 k2 r g)) => ColorPixel * (Format k * t (CRG k k r g)) Source 
Pixel * (Format k * t (CR k1 r)) => ColorPixel * (Format k * t (CR k r)) Source 
ChannelType k t => ChannelType * (Format k k t c) Source 
Eq (Format k k t c) Source 
Ord (Format k k t c) Source 
Show (Format k k t c) Source 
Pixel * (Format k * t (CDepth k1 d)) => FramebufferDepthAttachment (Format k * t (CDepth k d)) Source 
ColorPixel * (Format k k1 t c) => FramebufferColorAttachment (Format k k t c) Source 

class Pixel f Source

Minimal complete definition

pixelFormat, pixelIFormat, pixelType

Color pixel

class Pixel p => ColorPixel p Source

Instances

Pixel * (Format k * t (CRGBA k1 k2 k3 k4 r g b a)) => ColorPixel * (Format k * t (CRGBA k k k k r g b a)) Source 
Pixel * (Format k * t (CRGB k1 k2 k3 r g b)) => ColorPixel * (Format k * t (CRGB k k k r g b)) Source 
Pixel * (Format k * t (CRG k1 k2 r g)) => ColorPixel * (Format k * t (CRG k k r g)) Source 
Pixel * (Format k * t (CR k1 r)) => ColorPixel * (Format k * t (CR k r)) Source