IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
enlighten_colors.m
Go to the documentation of this file.
1 %>@ingroup graphicsapi
2 %>@file
3 %>@brief Enlightens all colors in the COLORS global
4 %
5 %> @param factor=1.5 Multiplier
6 function enlighten_colors(factor)
7 
8 if nargin < 1 || isempty(factor)
9  factor = 1.5;
10 end;
11 
12 fig_assert();
13 global COLORS;
14 COLORS = cellfun(@(x) iif(any(x > 1), min(x*factor, 255), min(x*1.45, 1)), COLORS, 'UniformOutput', 0);
function iif(in cond, in x1, in x2)
function enlighten_colors(in factor)
function fig_assert()