January
---
2010




Wavelength to RGB Colors...

I did a short experiment several years back on Wavelengths and colors. I was working for Beckman Coulter on their latest Flow Cytometer, which involved working with dozens of lasers of different wavelengths. These lasers would be reflected and filtered to obtain different wavelengths and this needed to be displayed to the user in an intuitive UI. Back then, I wrote a little Windows application that would convert the wavelength to RGB colors, for my reference.

I figured I could take the code and make it a Silverlight application and here it is...

As you can see from the code I am using a PolyBezierSegment and modifying the location of the three points of each wave when the trackbar slider is moved.

MainPage.xaml.cs code

MainPage.xaml code


Enjoy!