{"id":20,"date":"2010-09-29T15:32:14","date_gmt":"2010-09-29T15:32:14","guid":{"rendered":"http:\/\/teaching.thesystemis.com\/classes\/algo\/?p=20"},"modified":"2010-09-29T15:32:14","modified_gmt":"2010-09-29T15:32:14","slug":"homework-5","status":"publish","type":"post","link":"http:\/\/teaching.thesystemis.com\/classes\/algo\/?p=20","title":{"rendered":"homework 5"},"content":{"rendered":"<p>(a) create a looping fireworks animation (non interactive). You will need to reset or restart particles every so often.<br \/>\n(and then we\u00e2\u20ac\u2122ll figure out how to save this as a screen saver for your mom!)<\/p>\n<p>(b) since you know how to position things in a circle using the formula:<br \/>\nx = x_orig + radius * cos (angle);<br \/>\ny = y_orig + radius * sin (angle);<br \/>\nthink about how you could use sinusoidal information to start all the particles with some interesting positions \/ velocities. Instead of using random, use sinusoidal information (in any way you want) to make the sarting positions\/velocities of these objects interesting.\u00c2\u00a0 can you use sin\/cos to make the movement or drawing of the particle more interesting?<\/p>\n<p>(c) Besides evidence to the contrary, particles don\u00e2\u20ac\u2122t have to be just circles!\u00c2\u00a0 you can draw them however you want.\u00c2\u00a0 Can you create an interesting effect with transparency or by using images? \u00c2\u00a0 Can you use parameters, like velocity to control the way these objects are drawn (like, they get smaller as they slow down, or more transparent, using angle of the velocity to rotate, etc).\u00c2\u00a0 Think about trying to create a natural phenomenon or make something really nice looking.<\/p>\n<p>advanced:<\/p>\n<p>(d) hook up the drawing code (from the lissajous example) to a particle so that the particle draws a trail of where it has been. see if you can make this trail fade out (like a comet) : ) Use alpha or some other method\u00e2\u20ac\u00a6<\/p>\n<p>(e) Make a funky, expressive drawing tool with particles.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(a) create a looping fireworks animation (non interactive). You will need to reset or restart particles every so often. (and then we\u00e2\u20ac\u2122ll figure out how to save this as a screen saver for your mom!) (b) since you know how to position things in a circle using the formula: x = x_orig + radius * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-homework"],"_links":{"self":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":0,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"wp:attachment":[{"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/classes\/algo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}