Pages Menu
TwitterRssFacebook
Categories Menu

Posted by on 18th January, 2010

Wavelength to Colors

Wavelength to 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 same approach 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. The corresponding wavelength in nano meters corresponds to the actual color of the light wavelength. The watermarked curves mark the margins of the visible spectrum. Go ahead and move the slider below: mainpage.xaml.cs using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using...

Read More