height / width fix

adjust for percentage canvas height / width values
constant for rainbow wavelength