I would like to have a program made that will draw x amount of lines, in y color, in various directions (up, right, down, left). Here is an example:
If the user inputs
It will then draw 100 random lines, with the same color associated with each movement. That means that (at random) red was made up, green right, black down, blue left. After 100 lines are drawn, it will display a picture (see attachment1 for example).
The attachment isn't an exact example because in photoshop it's hard to make it perfect with layers on top of each other, but it should help you understand what I mean.
The input should be able to handle anywhere from 10 to 100,000 lines, and a total of 8 colors (Blue, Orange, Yellow, Green, Indigo, Violet, Black, Red). Everything should be assigned at random each time it is used, so if I were to select 100 lines and 4 colors again, it would look completely different - different colors assigned to different directions, and lines in a different order, etc.
The drawing should start in the center of the window. When the line is drawn, the next one will start above or off to the side of the previous one. If a line goes Up-Down, Left-Right, etc, then it should overwrite it. The more lines are used, the bigger the drawing space will have to be.