ArianeSoft - Programming and development for Windows and Windows Mobile :: Forums :: PPL - Pocket Programming Language :: Code sharing
 
<< Previous thread | Next thread >>
displaying a color spectrum
Moderators: kornalius, bmanske, PointOfLight
Author Post
Tom Paine
Thu Nov 29 2007, 04:01am
Registered Member #438
Joined: Wed May 09 2007, 05:31am
Posts: 16
Don't know if this is of any interest but I thought I'd share it.
Sometimes it can be quite nice to be able to display a color spectrum (ie a rainbow effect) maybe to color a background or as a fancy border round a control . It's quite difficult to smoothly transition through the different colors of the spectrum using the RGB system. It's much easier if you use the HSV color system. I've produced a conversion utility to convert from HSV to RGB and used it to display a scrolling spectrum as a demo. Feel free to rip out the conversion code and use it.
1196326839_438_FT0_rainbow.zip
Back to top
Mike Halliday
Thu Nov 29 2007, 06:11am

Registered Member #671
Joined: Tue Sep 25 2007, 12:22pm
Posts: 400
Very nice routine.

I can see a use in a paint package or in a sprite designer for colour selection

Well done and thanks for sharing.

Editor of \'Voice of the PPL\' the newsletter for the PPL by the PPL!

Still trying to get people to contribute to the newsletter!
Back to top
kornalius
Thu Nov 29 2007, 10:17am


Registered Member #1
Joined: Wed Apr 19 2006, 08:25pm
Posts: 2783
Very nice Tom, thank you for sharing with us! Keep them coming!

Regards,
Alain Deschenes
President and programmer
ArianeSoft Inc. (http://www.arianesoft.ca)
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System