Tag Archives: changing colors

Draw a curve with more sharply delineated colors in C#

In the post Draw a curve with sharply delineated colors in C# I mentioned that you could achieve even more sharply defined colors if you use a TextureBrush. Naturally I couldn’t let it reset so here’s an example that does … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , | 1 Comment

Draw a curve with sharply delineated colors in C#

The post Draw a curve with multiple colors in C# shows how you can draw a curve that shades gradually from one color to another as the curve’s Y coordinates change. However, you might not always want the colors to … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , | Leave a comment

Draw a curve with multiple colors in C#

It’s easy enough to draw different lines with different colors but it’s not as easy to draw a single line that uses multiple colors. One way to accomplish that is to make a LinearGradientBrush that defines the colors that you … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , | 1 Comment