nanovg-0.5.2.0: Haskell bindings for nanovg

Safe HaskellNone
LanguageHaskell2010

NanoVG.Internal.Color

Synopsis

Documentation

rgb :: CUChar -> CUChar -> CUChar -> Color Source #

Returns a color value from red, green, blue values. Alpha will be set to 255 (1.0f).

rgbf :: CFloat -> CFloat -> CFloat -> Color Source #

Returns a color value from red, green, blue values. Alpha will be set to 1.0f.

rgba :: CUChar -> CUChar -> CUChar -> CUChar -> Color Source #

Returns a color value from red, green, blue and alpha values.

rgbaf :: CFloat -> CFloat -> CFloat -> CFloat -> Color Source #

Returns a color value from red, green, blue and alpha values.

lerpRGBA :: Color -> Color -> CFloat -> Color Source #

Linearly interpolates from color c0 to c1, and returns resulting color value.

transRGBA :: Color -> CUChar -> Color Source #

Sets transparency of a color value.

transRGBAf :: Color -> CFloat -> Color Source #

Sets transparency of a color value.

hsl :: CFloat -> CFloat -> CFloat -> Color Source #

Returns color value specified by hue, saturation and lightness. HSL values are all in range [0..1], alpha will be set to 255.

hsla :: CFloat -> CFloat -> CFloat -> CUChar -> Color Source #

Returns color value specified by hue, saturation and lightness and alpha. HSL values are all in range [0..1], alpha in range [0..255]