Changing colors while drawing

ladynred

Member
Joined
Mar 20, 2006
Messages
5
Programming Experience
Beginner
Hello,
I'm new here and I couldn't find this problem discussed. I am doing a program that involves the user choosing to draw lines, rectangles, or freehand and choose colors and widths. My problem is that when I draw a line in one color and then maybe choose to draw a rectangle in another color, it automatically changes all the lines previously drawn to the last color I choose. How do I get it to keep the colors of the lines already drawn? Also, if I have a rectangle and then choose freehand and then go back to drawing either a line or rectangle, it connects all the paths together.

I am having a terrible time. Any help would be appreciated.
 
Are you storing the information of each drawn shape, then redrawing the shapes?
If you are, then you just have to save the color as well.
 
Back
Top