shady-graphics-0.5.0: Functional GPU programming - DSEL & compiler

Stabilityexperimental
Maintainerconal@conal.net

Shady.Color

Contents

Description

Simple colors

Synopsis

Basics

colorToR4 :: Color -> R4ESource

Representation conversion

r4ToColor :: R4E -> ColorSource

Representation conversion

rgba :: R1 :=> (R1 :=> (R1 :=> (R1 :=> Color)))Source

Color from red, green, blue, alpha components

rgb :: R1 :=> (R1 :=> (R1 :=> Color))Source

Color from red, green, blue components

colorR :: Color -> FloatESource

Extract the red component

colorG :: Color -> FloatESource

Extract the green component

colorB :: Color -> FloatESource

Extract the blue component

colorA :: Color -> FloatESource

Extract the alpha component

Color operations

overC :: Binop ColorSource

Overlay on two colors

over :: Binop (p -> Color)Source

Pointwise overC, e.g., for images.

Some colors

white :: ColorSource

Some colors

gray :: R1 :=> ColorSource

Shade of grey

Conversion to color

class HasColor a whereSource

Methods

toColor :: a -> ColorSource