This week has been learning about object-orientating programming in processing. the first time is definitely ABSTRACT. but after i had about 10 different analogies explained to me (cookies, bikes, factories, people, sheep), I came up with one that would be the most familiar to me. the prefab dwelling. a class is like the design for a prefab home that doesn’t yet physically exist but for which all the properties have already been defined in the blueprints. along comes a potential owner who buys the design and hires contractors to build the house (aka the object) which in processing is like using the constructor to create an instance of an object of the class House. phew..
and now for some prefabricated goodness. thanks to robert and john for their help and trigonometry refresher. click on picture below to go to sketch, and refresh to change colors and orbs.