Question: Hints: - Use an iteration counter to decide which type of line segment to draw in each iteration. - Import the module time and include
Hints: - Use an iteration counter to decide which type of line segment to draw in each iteration. - Import the module time and include the command time.sleep(0.75) at the end of the loop in order to suspends execution for the given number of seconds (0.75 second). This gives you time to see the lines drawn one after the other. Figure 1. Multicolor Squared Spiral To do: 1. Write a Python Program that reads form an input text file (e.g. 'colors1.txt) the colour 2. Create a new text file (for example, 'colors1 Out.txt) containing the following data values in each components, Red, Green and Blue and then draw the squared spiral form in question, as described in the objective section. The spiral forms should look like the ones shown in Figures 1, 2, 3 and 4 of its lines: Red: the red colour component value. Green: the green colour component value. Blue: the blue colour component value. Min: the minimum value among Red, Green and Blue. Max: the maximum value among Red, Green and Blue. Mean: the average value of red, green and blue values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
