source icon indicating copy to clipboard operation
source copied to clipboard

Add RGB to spectrum functions

Open CnlPepper opened this issue 9 years ago • 1 comments

It would be useful to have a set of function that generate spectra that correspond to particular sRGB/CIE XYZ values. This will be a useful shorthand way of generating arbitrary colour specta for testing.

CnlPepper avatar May 25 '16 17:05 CnlPepper

Well , I can't give you the exact function because the language may vary , but you can check out my stuff on a python script called Rgb to rainbow.py . It will clearly explain the algorithm of converting between rgb to spectra and vice versa , by making an image of the spectra using rgb values , I think my program will help you . Just search it at my place . All rgb values can't be converted to spectra by the way .

cab-1729 avatar Jan 24 '20 11:01 cab-1729