brighten

Purpose

Brighten or darken colormap.

Synopsis

brighten(beta)
map = brighten(beta)
newmap = brighten(cmap,beta)

Description

brighten(beta) replaces the current colormap with a brighter or darker map of essentially the same colors. The modified colormap is brighter if 0 < beta < 1 and darker if-1 < beta < 0.

brighten(beta), followed by brighten(-beta) restores the original map.

map = brighten(beta) returns a brighter or darker version of the current colormap without changing the display.

newmap = brighten(cmap,beta) returns a brighter or darker version of the colormap cmap without changing the display.

See Also

colormap, rgbplot

(c) Copyright 1994 by The MathWorks, Inc.