Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Coordinate System Exercises [4/11]

This program draws a green disc.

Exercise Coord 4-1 output image

Exercise 1: Draw a vertical cyan line through the center of the green disc.

Solution 1

line(400, 0, 400, 720, /cyan);
Exercise Coord 4-2 output image

Exercise 2: Draw a horizontal orange line through the center of the green disc.

Solution 2

line(0, 300, 960, 300, /orange);

Loading...