Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Graph Drawing [5/9]

The line function has the form:
line(x1, y1, x2, y2)

Exercises:

1. Change the program so that the lines are 1 pixel apart instead of 8 pixels.
[Run the program]

Exercise 12 output image

2. Position the second line ends at coordinate y = i .
[Run the program]

3. Make the image be drawn even faster.
[Run the program]

The solution is on the next slide.

Loading...