Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

Types point2D and colorA [6/8]

This program draws a simple shape in one stroke of pen.

After running the program, try modifying the initial value of variables size and lineWidth.

Then, try to figure out the meaning of variables x1, x2, y1, y2. Also, you can try changing them to some concrete numbers.

Then, try changing the value of variable p1 in the initializer. Use some concrete numbers.

Loading...