Mercurial > hg > octave-nkf
comparison scripts/image/colormap.m @ 3457:e031284eea27
[project @ 2000-01-19 08:49:56 by jwe]
author | jwe |
---|---|
date | Wed, 19 Jan 2000 08:50:14 +0000 |
parents | f8dde1807dee |
children | d25bc039237b |
comparison
equal
deleted
inserted
replaced
3456:434790acb067 | 3457:e031284eea27 |
---|---|
61 endif | 61 endif |
62 endif | 62 endif |
63 | 63 |
64 if (! isempty (map)) | 64 if (! isempty (map)) |
65 if (columns (map) != 3) | 65 if (columns (map) != 3) |
66 error( "colormap: map must have 3 columns: [R,G,B]." ); | 66 error ("colormap: map must have 3 columns: [R,G,B]."); |
67 endif | 67 endif |
68 if (min (min (map)) < 0 || max (max (map)) > 1) | 68 if (min (min (map)) < 0 || max (max (map)) > 1) |
69 error( "colormap: map must have values in [0,1]." ); | 69 error ("colormap: map must have values in [0,1]."); |
70 endif | 70 endif |
71 ## Set the new color map | 71 ## Set the new color map |
72 __current_color_map__ = map; | 72 __current_color_map__ = map; |
73 endif | 73 endif |
74 | 74 |