Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Graph Drawing [1/9]


Graph Drawing

This program draws vertical lines. The lines are 50 pixels apart. Top line ends are at coordinate y = 10, and the other line ends are at y = 710.

Exercise:

Exercise 9 output image

Change the program so that the lines are 8 pixels apart. Also, reduce the sleep time so that the image is drawn faster.

The solution is on the next slide.

Loading...