Click here to Skip to main content
15,924,195 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello every one,
I've 16 RGB channels in a control card. I want to make a software that's able to generate all possible colors values (2^16) color . I want the conversion from one color to the next be smooth. Any algorithm or aidea for that ?
I use C#.
Posted

1 solution

Any color may be presented as a 3D-vector with the coordinates (R,G,B) :)

A "smoothing" could be a X-steps motion
(in-loop drawing (with Sleep(dwAfterStepSleep)))
at the three ways:

- (R1->R2) with the R-step (R2-R1)/X,
- (G1->G2) with the G-step (G2-G1)/X,
- (B1->B2) with the B-step (B2-B1)/X :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900