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:

Output:

Example of use

color_lava([.33; 0.81])