color_lava
converts fractions to colors using the lava color map
Contents
Syntax
color = color_lava(frac)
Description
converts fractions to colors using the lava color map: black, blue, magenta, red, white
Input:
- frac: n-vector with fractions
Output:
- color: (n,3)-matrix with rgb color settings
Example of use
color_lava([.33; 0.81])