Draw diagonal lines on a picture from top left to bottom right using addLine.
This question can potentially be confusing as it suggests that multiple lines need to be drawn, but does not give precise instructions. To simplify, one can assume that they should draw two lines to get from the top left to bottom right, as below:
```
def lineDiagonal ():
img = makePicture(pickAFile())
midHeight = getHeight(img)/2
midWidth = getWidth(img)/2
addLine(img, 0, 0, midWidth, midHeight)
addLine(img, midWidth, midHeight, getWidth(img), getHeight(img))
show(img)
return img
```
You might also like to view...
Each container can have ________.
a. only one layout manager b. one or more layout managers c. zero or more layout managers d. only one or two layout managers
The check box used to activate/deactivate Widow/Orphan control is in the ________ dialog box
A) Page Setup B) Font C) Paragraph D) Modify Style
If the following sentence is free of errors, choose the answer True. If there are errors in the sentence, choose the answer False and explain how to correct the sentence.How many nations have joined the European Union.?
Answer the following statement true (T) or false (F)
Text flowed onto a curved path often presents kerning challenges.
Answer the following statement true (T) or false (F)