concat-graphics-0.1.0.0: Graphics via compiling-to-categories
Maintainerconal@conal.net
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

ConCat.Graphics.Color

Description

Colors

Synopsis

Basics

data Color Source #

Color

Instances

Instances details
Monoid Color Source # 
Instance details

Defined in ConCat.Graphics.Color

Semigroup Color Source # 
Instance details

Defined in ConCat.Graphics.Color

HasRep Color Source # 
Instance details

Defined in ConCat.Graphics.Color

Associated Types

type Rep Color Source #

OkCAR Color => GenBuses Color Source # 
Instance details

Defined in ConCat.Graphics.Color

ToColor Color Source # 
Instance details

Defined in ConCat.Graphics.Color

Methods

toColor :: Color -> Color Source #

(OkCAR Color, IfCat (:>) (Rep Color)) => IfCat (:>) Color Source # 
Instance details

Defined in ConCat.Graphics.Color

Methods

ifC :: IfT (:>) Color Source #

type Rep Color Source # 
Instance details

Defined in ConCat.Graphics.Color

type Rep Color = (R, R, R, R)

rgba :: R -> R -> R -> R -> Color Source #

Color from red, green, blue, alpha components

rgb :: R -> R -> R -> Color Source #

Color from red, green, blue components

colorR :: Color -> R Source #

Extract the red component

colorG :: Color -> R Source #

Extract the green component

colorB :: Color -> R Source #

Extract the blue component

colorA :: Color -> R Source #

Extract the alpha component

Color operations

overC :: Binop Color Source #

Overlay on two colors

over :: Binop (p -> Color) Source #

Pointwise overC, e.g., for images.

Some colors

black :: Color Source #

Some colors

white :: Color Source #

Some colors

red :: Color Source #

Some colors

green :: Color Source #

Some colors

blue :: Color Source #

Some colors

clear :: Color Source #

Some colors

grey :: R -> Color Source #

Shade of grey

gray :: R -> Color Source #

Shade of grey

Conversion to color

class ToColor a where Source #

Methods

toColor :: a -> Color Source #

Instances

Instances details
ToColor R Source # 
Instance details

Defined in ConCat.Graphics.Color

Methods

toColor :: R -> Color Source #

ToColor Color Source # 
Instance details

Defined in ConCat.Graphics.Color

Methods

toColor :: Color -> Color Source #

ToColor Bool Source # 
Instance details

Defined in ConCat.Graphics.Color

Methods

toColor :: Bool -> Color Source #