Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

color-rgb returns a color made from three components (rgb)

Parameter Description
r Red channel value (0 is black, 255 is maximum red)
g Green channel value (0 is black, 255 is maximum green)
b Blue channel value (0 is black, 255 is maximum blue)

Example

Example 1: Return the solid color Papayawhip (255, 239, 213)

> (define Papayawhip (color-rgba 255 239 213))
> (color-alpha Papayawhip)
255
Clone this wiki locally