![]() |
IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
|
Calculates a background color based on percentage.
Sqrt improves the color representation, because it makes low values already some color Color formula is:
Definition in file cellcolor.m.
Go to the source code of this file.
Functions | |
function | cellcolor (in n, in ma, in flag_hex) |
function cellcolor | ( | in | n, |
in | ma, | ||
in | flag_hex | ||
) |
n | intensity |
ma | Maximum |
flag_hex | =0. If true, returns hexadecimal strings to insert into HTML code, otherwise returns 3-element vectors containing the RGB intensities. |