{"id":1528,"date":"2014-12-09T19:19:57","date_gmt":"2014-12-09T19:19:57","guid":{"rendered":"http:\/\/astoryisnotatree.net\/?p=1528"},"modified":"2020-04-22T21:32:56","modified_gmt":"2020-04-22T21:32:56","slug":"bw-exercise-4-weak-forces","status":"publish","type":"post","link":"https:\/\/astoryisnotatree.net\/?p=1528","title":{"rendered":"Games from Nothing: Black &#038; White Exercise #4 \u2014 Weak Forces"},"content":{"rendered":"<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/simple_shower.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1529 size-full\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/simple_shower.png\" alt=\"simple_shower\" width=\"726\" height=\"753\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/simple_shower.png 726w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/simple_shower-289x300.png 289w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/simple_shower-624x647.png 624w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/a><\/p>\n<p>My particle system started as a simple shower of colorful circles. After that was done, I tried to get the circles to react to the cursor\/mouse position. \u00a0I basically wanted a gravity well to be located where the mouse was, but I had a hard time figuring out just how to code that. \u00a0After some fiddling with it, though, I did manage to get a satisfactory reaction from the circles.<\/p>\n<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/weak_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1530 size-full\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/weak_1.png\" alt=\"weak_1\" width=\"724\" height=\"751\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/weak_1.png 724w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/weak_1-289x300.png 289w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/weak_1-624x647.png 624w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/a><\/p>\n<p>The forces are fairly weak, and therefore hard to present through static images, but notice the tendency toward the large white circle (the indicator for the cursor).<\/p>\n<p>If you hold the mouse button down\/hold your finger to the tablet, the colors, become slightly brighter, and the force applied to each circle is doubled.<\/p>\n<p><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1531 size-full\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_1.png\" alt=\"stronger_1\" width=\"726\" height=\"753\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_1.png 726w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_1-289x300.png 289w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_1-624x647.png 624w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/a> <a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1532 size-full\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_2.png\" alt=\"stronger_2\" width=\"726\" height=\"753\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_2.png 726w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_2-289x300.png 289w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2014\/12\/stronger_2-624x647.png 624w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/a><\/p>\n<p>Overall an interesting little intro into the world of particle systems. \u00a0I still am quite interested in learning how to properly code a gravity well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My particle system started as a simple shower of colorful circles. After that was done, I tried to get the circles to react to the cursor\/mouse position. \u00a0I basically wanted a gravity well to be located where the mouse was,&#8230;<\/p>\n","protected":false},"author":16,"featured_media":1529,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[16,90],"class_list":["post-1528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-games-from-nothing","tag-black-white-exercises","tag-particle-systems","wpcat-5-id"],"_links":{"self":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1528"}],"version-history":[{"count":6,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions"}],"predecessor-version":[{"id":13809,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions\/13809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/media\/1529"}],"wp:attachment":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}