- data RGB = RGB {}
- rgb :: ImportColorCoordinates c => RSdouble -> RSdouble -> RSdouble -> c
- rgb256 :: (ImportColorCoordinates c, Integral i) => i -> i -> i -> c
- grayscale :: ImportColorCoordinates c => RSdouble -> c
- greyscale :: ImportColorCoordinates c => RSdouble -> c
- grayscale256 :: (Integral i, ImportColorCoordinates c) => i -> c
- greyscale256 :: (Integral i, ImportColorCoordinates c) => i -> c
- mapRGB :: (RSdouble -> RSdouble) -> RGB -> RGB
- zipRGB :: (RSdouble -> RSdouble -> RSdouble) -> RGB -> RGB -> RGB
- zipRGB3 :: (RSdouble -> RSdouble -> RSdouble -> RSdouble) -> RGB -> RGB -> RGB -> RGB
Documentation
A color in the red-green-blue color space.
rgb :: ImportColorCoordinates c => RSdouble -> RSdouble -> RSdouble -> cSource
Construct a color from an RGB triple in the range [0.0..1.0].
rgb256 :: (ImportColorCoordinates c, Integral i) => i -> i -> i -> cSource
Construct a color from an RGB triple in the range [0..255].
grayscale :: ImportColorCoordinates c => RSdouble -> cSource
Construct a gray color from a value in the range [0.0..1.0].
greyscale :: ImportColorCoordinates c => RSdouble -> cSource
grayscale256 :: (Integral i, ImportColorCoordinates c) => i -> cSource
Construct a gray color from a value in the range [0..255].
greyscale256 :: (Integral i, ImportColorCoordinates c) => i -> cSource