How to generate spectrum color palettes

Posted by ddimitrov on Stack Overflow See other posts from Stack Overflow or by ddimitrov
Published on 2008-10-21T23:47:22Z Indexed on 2010/04/08 7:03 UTC
Read the original article Hit count: 288

Filed under:
|

Is there an easy way to convert between color models in Java (RGB, HSV and Lab).

Assuming RGB color model:

  • How do I calculate black body spectrum color palette? I want to use it for a heatmap chart.
  • How about single-wavelength spectrum?

Edit: I found that the ColorSpace class can be used for conversions between RGB/CIE and many other color models.

© Stack Overflow or respective owner

Related posts about colors

Related posts about java