Rectangles
Version: 8 20051227
How is this version different than version 7?
This application/applet effectively does the exact same thing as version 7; but,
the code is more object oriented. And we get the benefits of maintaining object oriented code.
The two rectangles are object instances of the RectangleSprite class.
The RectangleSprite class has methods (functions) and attributes.
Data variables are now tied to the object they belong to.
Now I can remove the phrase "RectangleOne" and "RectangleTwo" from the variable names
and instead use the "dot" operator to connect an object with its data member.
Renamed the variable fRectangleYPosition to fYCurrentPosition and placed it into the RectangleSprite class.
Created the new RectangleSprite class variable named fStrokeWeight to hold the stroke weight.
Source code: rectangles_v080_20051227
Built with Processing