Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

after trying a lot of coding around and searching in the web, I am hoping to find an answer here.

My C#/WPF application needs the user to draw lines continuously in different directions, such that each line is connected to the previous one. Now, I have implemented a timer to change the color of the lines every few Milli seconds.

So far, the code is working as expected, except that the colors are changing abruptly. How can I make the lines change color as in a gradient?

I didn't find gradients useful, as I am drawing the lines at run time. Instead, I need to change the individual pixel colors within the timer, but again in a gradual manner.

Any suggestions, please?
Posted
Updated 12-Jun-14 1:20am
v2

1 solution

 
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