rgb

Synopsis

(rgb red green blue)

Parameters

  • red
  • green
  • blue

Description

Side Effects

Return Value

The RGB pixel value is returned.

Example

> (pp rgb)
(lambda (red green blue)
 (+ (* red 256 256) (* green 256) blue))
ok
> (rgb 1 2 3)
66051
> (define cm (colormap-create 200 100))
cm
> (colormap-setpixel! cm 199 99 (rgb 1 2 3))
ok
>