BRIGHTEN

Purpose:

Brightens or darkens an image.

Syntax:

BRIGHTEN(beta, cmap)

beta

-

Optional. A real, -1 <= beta <= 1. Default 0.5.

cmap

-

Optional. A series, the colormap. Defaults to current colormap.

Returns:

A new colormap or alters the current colormap.

Example:

W1: rainbow();showcmap()

brighten(.5)

 

brightens the rainbow colormap.

Example:

brighten(-.5)

 

restores the brightened colormap to the original colors for the example above.

Remarks:

For beta > 0, the color map is brightened. If beta < 0, the colormap is darkened.

See Also:

GETCOLORMAP

SHOWCMAP

SETCOLORMAP