| Description |
usage :
map = blue2red;
colormap(blue2red);
Returns a 256x3 array which can be used with colormap.
map(1,:) corresponds to blue color,
map(64,:) corresponds to cyan color,
map(128,:) corresponds to green color,
map(192,:) corresponds to yellow color,
map(256,:) corresponds to red color,
and all indices inbetween are gradient between the 2 extremes colors.
Example
colormap(blue2red); |