spectrum_lib.gle
Library by Jan Soubusta
from 350 nm to 800 nm
gray_factor = 0 ... Colored
= 1 ... Grayscale
Plots rainbow to a graph with xaxis in nanometers.
visible colors are between 350-800 nm
It is placed above or below x_axis.
sy = width e.g. -.2 plotted below x_axis
.2 plotted abowe x_axis
po = step in nanometers
Six color palettes with rainbow colors
The values are mapped to the interval of variable z from 0 to 1.
nm = from BLUE to RED, THz = from RED to BLUE
lin = linear mapping, quad and sqrt = pushed to sides.
Two parameters: z (0-1, color), k (0-1, color-gray)