comparison scripts/image/winter.m @ 14640:b9c02ee24de1

new colormap options * colormap.m: New options, list, register, and unregister. * NEWS: Note new colormap options. * autumn.m, bone.m, cool.m, copper.m, flag.m, gmap40.m, gray.m, hot.m, hsv.m, jet.m, lines.m, ocean.m, pink.m, prism.m, rainbow.m, spring.m, summer.m, winter: Always size and return 0x3 when size < 1. Include PKD_ADD and PKG_DEL commands to register and unregister colormap funtions.
author Carnë Draug <carandraug+dev@gmail.com>
date Wed, 16 May 2012 16:52:08 -0400
parents f205d0074687
children 5f1d4def40e1
comparison
equal deleted inserted replaced
14639:87a50e7cec7a 14640:b9c02ee24de1
24 ## If unspecified, the length of the current colormap, or 64, is used. 24 ## If unspecified, the length of the current colormap, or 64, is used.
25 ## @seealso{colormap} 25 ## @seealso{colormap}
26 ## @end deftypefn 26 ## @end deftypefn
27 27
28 ## Author: Kai Habel <kai.habel@gmx.de> 28 ## Author: Kai Habel <kai.habel@gmx.de>
29
30 ## PKG_ADD: colormap ("register", "winter");
31 ## PKG_DEL: colormap ("unregister", "winter");
29 32
30 function map = winter (n) 33 function map = winter (n)
31 34
32 if (nargin == 0) 35 if (nargin == 0)
33 n = rows (colormap); 36 n = rows (colormap);