FieldTrip-0.2.4: Functional 3D
Source code
Contents
Index
Graphics.FieldTrip.Color
Stability
experimental
Maintainer
conal@conal.net
Description
Color helpers
Synopsis
type
Col
=
Color4
R
rgb
::
Num
s => s -> s -> s ->
Color4
s
rgba
:: s -> s -> s -> s ->
Color4
s
rgb255
::
Fractional
s => s -> s -> s ->
Color4
s
transparent
::
Fractional
s =>
Color4
s
black
::
Fractional
s =>
Color4
s
white
::
Fractional
s =>
Color4
s
red
::
Fractional
s =>
Color4
s
green
::
Fractional
s =>
Color4
s
blue
::
Fractional
s =>
Color4
s
yellow
::
Fractional
s =>
Color4
s
purple
::
Fractional
s =>
Color4
s
class
HasColor
c
where
toColor
:: c ->
Col
data
VC
v c =
VC
!v !c
overC
::
Fractional
s =>
Color4
s ->
Color4
s ->
Color4
s
overPre
::
Fractional
s =>
Binop
(
Color4
s)
overNon
::
Fractional
s =>
Binop
(
Color4
s)
Documentation
type
Col
=
Color4
R
Source
Our color type (with alpha)
rgb
::
Num
s => s -> s -> s ->
Color4
s
Source
rgba
:: s -> s -> s -> s ->
Color4
s
Source
rgb255
::
Fractional
s => s -> s -> s ->
Color4
s
Source
transparent
::
Fractional
s =>
Color4
s
Source
black
::
Fractional
s =>
Color4
s
Source
white
::
Fractional
s =>
Color4
s
Source
red
::
Fractional
s =>
Color4
s
Source
green
::
Fractional
s =>
Color4
s
Source
blue
::
Fractional
s =>
Color4
s
Source
yellow
::
Fractional
s =>
Color4
s
Source
purple
::
Fractional
s =>
Color4
s
Source
class
HasColor
c
where
Source
Methods
toColor
:: c ->
Col
Source
Instances
HasColor
Bool
HasColor
Float
data
VC
v c
Source
Vertex and color
Constructors
VC
!v !c
Instances
(
Vertex
v,
Color
c) =>
Vertex
(
VC
v c)
overC
::
Fractional
s =>
Color4
s ->
Color4
s ->
Color4
s
Source
Overlay (alpha-blend) first color onto the second, accounting for transparency
overPre
::
Fractional
s =>
Binop
(
Color4
s)
Source
overNon
::
Fractional
s =>
Binop
(
Color4
s)
Source
Produced by
Haddock
version 2.4.2