Copyright | (C) 2015 Dimitri Sabadie |
---|---|
License | BSD3 |
Maintainer | Dimitri Sabadie <dimitri.sabadie@gmail.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Graphics.Luminance.Pixel
Description
- class ChannelSize c
- data C8 = C8
- data C16 = C16
- data C32 = C32
- class ChannelType t
- data CInts = CInts
- data CUInts = CUInts
- data CFloats = CFloats
- data CR a = CR
- data CRG a b = CRG
- data CRGB a b c = CRGB
- data CRGBA a b c d = CRGBA
- data CDepth a = CDepth
- data Format t c = Format
- class Pixel f
- type RGB8UI = Format CUInts (CRGB C8 C8 C8)
- type RGBA8UI = Format CUInts (CRGBA C8 C8 C8 C8)
- type RGBA8F = Format CFloats (CRGBA C8 C8 C8 C8)
- type RGB32F = Format CFloats (CRGB C32 C32 C32)
- type RGBA32F = Format CFloats (CRGBA C32 C32 C32 C32)
- type Depth32F = Format CFloats (CDepth C32)
- class Pixel p => ColorPixel p
Channel size
A 8-bit channel.
Constructors
C8 |
A 16-bit channel.
Constructors
C16 |
A 32-bit channel.
Constructors
C32 |
Channel type
class ChannelType t Source
Minimal complete definition
channelType
Instances
ChannelType * CFloats Source | |
ChannelType * CUInts Source | |
ChannelType * CInts Source | |
ChannelType k t => ChannelType * (Format k k t c) Source |
Channels are integral values.
Constructors
CInts |
Channels are unsigned integral values.
Constructors
CUInts |
Channels are floating values.
Constructors
CFloats |
Channel shape
A red channel only.
Constructors
CR |
Rd and green channels.
Constructors
CRG |
Red, green and blue channels.
Constructors
CRGB |
Red, green, blue and alpha channels.
Constructors
CRGBA |
A depth channel.
Constructors
CDepth |
Pixel format
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 |
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 |