Color by Wavelength in Wolfram Mathematica: Easy Guide & Tips

  • Context: Mathematica 
  • Thread starter Thread starter Vrbic
  • Start date Start date
  • Tags Tags
    Color Wavelength
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
Vrbic
Messages
400
Reaction score
18
Hello,
I'm wonder if is possible in Wolfram Mathematica to fill some object or just set a color of object by a entering a wavelength, i.e. I write 450 and the line will be blue etc. Please advise me, I didn't find anything useful.
Thank you all.
 
Physics news on Phys.org
DrClaude said:
What you can do is to try and find an algorithm to convert a wavelength to a RGB value.

http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm
https://stackoverflow.com/questions/1472514/convert-light-frequency-to-rgb
http://www.noah.org/wiki/Wavelength_to_RGB_in_Python
http://www.physics.sfasu.edu/astro/color/spectra.html
Ok, thank you. This possibility I took as a last one. I hoped there exists some special function on it. I found this http://reference.wolfram.com/language/guide/ColorSchemes.html , but honestly I don't know what is it for, or how use this "VisibleSpectrum". If there is no other way I will transform wavelength to RGB but it also won't be ease...I guess :-)