%
% Colormap generator: Orange and Blue
%
%
%=============================================================


function cmap = obMap

N_COLORS = 255; % N_COLORS: number of colors in the blue-orange gradient
					% parameter N_COLORS has to be and odd number'
					% parameter N_COLORS has to be less than 256' 
					% parameter N_COLORS has to be greater than 3' 
               
               
halfNColors = (N_COLORS + 1) / 2;

c = ([halfNColors:-1:1]' - 1) / (halfNColors - 1);
orange = [c, c / 2, zeros(halfNColors,1)] ;
blue = [zeros(halfNColors,1), zeros(halfNColors,1), flipud(c)];

cmap = flipud( [orange; blue(2:halfNColors,:)] );