Draw horizontal and vertical lines on a picture with 10 pixels between the lines.

This is simple enough to do as it simply means taking Program 87 and changing both 5’s to 10’s. Like so:

```
def lineExample ():
img = makePicture(pickAFile())
verticalLines(img)
horizontalLines(img)
show(img)
return img
def horizontalLines(src):
for x in range(0,getHeight(src),10):
for y in range(0,getWidth(src)):
setColor(getPixel(src,y,x),black)
def verticalLines(src):
for x in range(0,getWidth(src),10):
for y in range(0,getHeight(src)):
setColor(getPixel(src,x,y),black)
```

Computer Science & Information Technology

You might also like to view...

Even though many proper names are spelled correctly, the Spell Check feature will often ________—or highlight—them as potential misspellings

Fill in the blank(s) with correct word

Computer Science & Information Technology

The ________ keyword instructs the query to use an inner join between two tables

Fill in the blank(s) with correct word

Computer Science & Information Technology