{"id":142,"date":"2015-09-29T05:14:43","date_gmt":"2015-09-29T05:14:43","guid":{"rendered":"http:\/\/www.aaronparsekian.com\/?p=142"},"modified":"2015-09-29T05:15:31","modified_gmt":"2015-09-29T05:15:31","slug":"assignment-3-2","status":"publish","type":"post","link":"http:\/\/www.aaronparsekian.com\/?p=142","title":{"rendered":"Assignment #4"},"content":{"rendered":"<p>This week we learned to use functions. I built the same program as last week, but eliminated almost 100 lines of code!<\/p>\n<p>Most of this was done by putting the ten buttons mouse pressed properties into a for loop, and putting the buttons size and color in a function, then calling those colors to the lines being drawn in the circle.<\/p>\n<p>Here is the program:<\/p>\n<p><a href=\"http:\/\/www.aaronparsekian.com\/projects\/ICMassignment4\" target=\"_blank\">http:\/\/www.aaronparsekian.com\/projects\/ICMassignment4<\/a><\/p>\n<p>And the code:<\/p>\n<div class=\"oembed-gist\"><script src=\"https:\/\/gist.github.com\/aaronparsekian\/b2c00f9263e125517911.js\"><\/script><noscript>View the code on <a href=\"https:\/\/gist.github.com\/aaronparsekian\/b2c00f9263e125517911\">Gist<\/a>.<\/noscript><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This week we learned to use functions. I built the same program as last week, but eliminated almost 100 lines of code! Most of this was done by putting the ten buttons mouse pressed properties into a for loop, and putting the buttons size and color in a function, then calling those colors to the &hellip; <a href=\"http:\/\/www.aaronparsekian.com\/?p=142\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Assignment #4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-icm"],"_links":{"self":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=142"}],"version-history":[{"count":3,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":146,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=\/wp\/v2\/posts\/142\/revisions\/146"}],"wp:attachment":[{"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aaronparsekian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}