Use the methods in the Picture class to draw a rainbow.
Note: One could make use of arc as in drawRainbow or circle (with part offscreen or “erased”) as in drawRainbow2 for the smile.
```
def drawRainbow():
canvas = makeEmptyPicture(100,100)
canvas.addArcFilled(red, 0, 50, 100, 80, 0, 180)
canvas.addArcFilled(orange, 5, 55, 90, 70, 0, 180)
canvas.addArcFilled(yellow, 10, 60, 80, 60, 0, 180)
canvas.addArcFilled(green, 15, 65, 70, 50, 0, 180)
canvas.addArcFilled(blue, 20, 70, 60, 40, 0, 180)
canvas.addArcFilled(makeColor(255, 0, 255), 25, 75, 50, 30, 0, 180)
canvas.addArcFilled(white, 30, 80, 40, 20, 0, 180)
canvas.show()
def drawRainbow2():
canvas = makeEmptyPicture(100,100)
canvas.addOvalFilled(red, 0, 50, 100, 100)
canvas.addOvalFilled(orange, 5, 55, 90, 90)
canvas.addOvalFilled(yellow, 10, 60, 80, 80)
canvas.addOvalFilled(green, 15, 65, 70, 70)
canvas.addOvalFilled(blue, 20, 70, 60, 60)
canvas.addOvalFilled(makeColor(255, 0, 255), 25, 75, 50, 50)
canvas.addOvalFilled(white, 30, 80, 40, 40)
canvas.show()
```
You might also like to view...
Percentages displayed with data labels on a pie chart are NEVER rounded
Indicate whether the statement is true or false.
Answer the following statements true (T) or false (F)
1. Each phase of the instruction cycle can be decomposed into a sequence of elementary micro-operations. 2. For the control unit to perform its function it must have inputs that allow it to determine the state of the system and outputs that allow it to control the behavior of the system. 3. The control unit is the engine that runs the entire computer. 4. The use of common data paths simplifies the interconnection layout and the control of the processor. 5. The number of machine cycles for an instruction depends on the number of times the processor must communicate with internal devices.