{"id":43,"date":"2011-10-03T03:19:34","date_gmt":"2011-10-03T03:19:34","guid":{"rendered":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/?p=43"},"modified":"2011-10-03T03:19:42","modified_gmt":"2011-10-03T03:19:42","slug":"homework-5","status":"publish","type":"post","link":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/?p=43","title":{"rendered":"homework 5"},"content":{"rendered":"<p>Non code:<\/p>\n<p>take a video of &#8220;real world particles&#8221;<\/p>\n<p>see for example,\u00a0http:\/\/vimeo.com\/28732551<\/p>\n<p>Code:<\/p>\n<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\u2019ll 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 starting positions\/velocities of these objects interesting.\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\u2019t have to be just circles!\u00a0 you can draw them however you want.\u00a0 Can you create an interesting effect with transparency or by using images? \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).\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\u2026<\/p>\n<p>(e) Make a funky, expressive drawing tool with particles.<\/p>\n<p>(f) make a ball droppings clone (see josh nimoy&#8217;s version http:\/\/balldroppings.com\/)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Non code: take a video of &#8220;real world particles&#8221; see for example,\u00a0http:\/\/vimeo.com\/28732551 Code: (a) create a looping fireworks animation (non interactive). You will need to reset or restart particles every so often. (and then we\u2019ll figure out how to save this as a screen saver for your mom!) (b) since you know how to position [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-homework"],"_links":{"self":[{"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=43"}],"version-history":[{"count":3,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":46,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/46"}],"wp:attachment":[{"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teaching.thesystemis.com\/algo11\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}