On this page:
red
orange
yellow
green
blue
purple
black
brown
gray
white
cyan
magenta
light
dark
color/  c
8.15.0.10

9 Color Helpers🔗ℹ

 (require pict/color) package: pict-lib

procedure

(red pict)  pict?

  pict : pict?

procedure

(orange pict)  pict?

  pict : pict?

procedure

(yellow pict)  pict?

  pict : pict?

procedure

(green pict)  pict?

  pict : pict?

procedure

(blue pict)  pict?

  pict : pict?

procedure

(purple pict)  pict?

  pict : pict?

procedure

(black pict)  pict?

  pict : pict?

procedure

(brown pict)  pict?

  pict : pict?

procedure

(gray pict)  pict?

  pict : pict?

procedure

(white pict)  pict?

  pict : pict?

procedure

(cyan pict)  pict?

  pict : pict?

procedure

(magenta pict)  pict?

  pict : pict?
These functions apply appropriate colors to picture p.

Example:
> (red (disk 20))

image

Added in version 1.4 of package pict-lib.

procedure

(light color)  color/c

  color : color/c

procedure

(dark color)  color/c

  color : color/c
These functions produce lighter or darker versions of a color.

Example:
> (hc-append (colorize (disk 20) "red")
             (colorize (disk 20) (dark "red"))
             (colorize (disk 20) (light "red")))

image

Added in version 1.4 of package pict-lib.

This contract recognizes color strings, color% instances, and RGB color lists.

Added in version 1.4 of package pict-lib.