![]() Set the wavelength corresponding to full red equal to 0, and the far blue end equal to whatever its corresponding hue is. You can get this by basically saying value := MAX_VALUE - value You're going to have to invert your X axis so red is 0 and violet is high. This is a little tricky since the left hand side of your spectrum seems to be the violet, with the red on the right. Once you work out what TColor value goes at a certain position, you can set it with You can use a standard TImage component on a form. :-)ĭisplaying the colors is actually very simple. Getting the right colors would be a really simple task if only you had a model that represents colors in terms of hue and brightness and a way to convert between it and RGB. Well, it looks to me like your wavelengths are hues, and your intensity is another word for brightness.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |