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.
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.