color rgbf - part-cw/lambdanative GitHub Wiki
(color-rgbf r g b)
color-rgbf returns a color made from three floating point components (rgb)
Parameter | Description |
---|---|
r | Red channel value (0 is black, 1 is maximum red) |
g | Green channel value (0 is black, 1 is maximum green) |
b | Blue channel value (0 is black, 1 is maximum blue) |
Example
Example 1: Return the solid color Papayawhip (255, 239, 213)
> (define Papayawhip (color-rgbf 1.0 0.937 0.835))
> (color-alpha Papayawhip)
255