Homework Assignment 2


Code i created, also took some parts from other codes and changed some parts

-Created a serious of scaled rectangles that got rotated and translated, then i added a code to make them “jiggle” or rotate from left to right on a 180 degree axis, not completely around

-Added a color to the background, changed color of box infill, also put in a border color around the rectangle

-Also Added Text into the Box


Images above show rotation




This is the Same code as Above, but in this one i inserted the “for” variable from the example and changed some of the parameters, with this variable added into the code i was able to set control speeds onto my objects, i was able to control how fast or slow they rotate around and then restart from where they left the screen or its boundaries.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s