graycolormap

graycolormap — linear gray colormap

Calling sequence

cmap=graycolormap(n)  

Parameters

n : integer >= 1, the colormap size.
cmap : matrix with 3 columns [R,G,B].

Description

graycolormap computes a colormap with n gray colors varying linearly from black to white.

Examples



xset("colormap",graycolormap(32))
plot3d1() 
 
  

See also

colormap, hotcolormap, xset