{"id":699,"date":"2018-09-27T13:05:20","date_gmt":"2018-09-27T13:05:20","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/cc18\/?page_id=699"},"modified":"2018-09-27T15:30:50","modified_gmt":"2018-09-27T15:30:50","slug":"4b-thurs-sept-27","status":"publish","type":"page","link":"https:\/\/www.courses.tegabrain.com\/cc18\/4b-thurs-sept-27\/","title":{"rendered":"4B &#8211; Thurs Sept 27"},"content":{"rendered":"<p><strong>Introduction to Arrays<\/strong><\/p>\n<ul>\n<li>Declare, fill and use an array.<\/li>\n<li><strong>Living line I:<\/strong> Create a line that connects the past 100 mouse positions.<\/li>\n<li><strong>Living line II:<\/strong> Create a line using the past 100 mouse positions and move an ellipse over the line in cycles.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"714\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/4b-thurs-sept-27\/living\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/living.gif?fit=393%2C395&amp;ssl=1\" data-orig-size=\"393,395\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"living\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/living.gif?fit=298%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/living.gif?fit=393%2C395&amp;ssl=1\" class=\"alignnone wp-image-714 size-full\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/living.gif?resize=393%2C395&#038;ssl=1\" alt=\"\" width=\"393\" height=\"395\" \/><\/p>\n<ul>\n<li><strong>Extension:<\/strong> <strong>Living line III,<\/strong> Create a line using the past 100 mouse positions. Bring your line to life by adding some randomness to each point. The randomness should increase with older mouse positions.<\/li>\n<li>Finish the Claire Evans reading from last lesson.<\/li>\n<\/ul>\n<p><strong>Due next Tuesday:<\/strong><\/p>\n<ul>\n<li>Revise and Prepare for the class quiz. It may cover.\n<ul>\n<li>variables (different types), system variables, difference between global and local variables.<\/li>\n<li>boolean expressions<\/li>\n<li>conditional statements (if, else, else if),<\/li>\n<li>logical operators (&amp;&amp; || !)<\/li>\n<li>events (mousePressed, keyPressed).<\/li>\n<li>map(), constrain(), dist() functions<\/li>\n<li>writing custom functions,<\/li>\n<li>for loops<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>You will be given a cheat sheet that looks like this: <a href=\"https:\/\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/CheatSheet-processingQuiz.pdf\">CheatSheet-processingQuiz<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Arrays Declare, fill and use an array. Living line I: Create a line that connects the past 100 mouse positions. Living line II: Create a line using the past 100 mouse positions and move an ellipse over the line in cycles. Extension: Living line III, Create a line using the past 100 mouse<a class=\"more-link button\" href=\"https:\/\/www.courses.tegabrain.com\/cc18\/4b-thurs-sept-27\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-699","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Paeb9f-bh","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/comments?post=699"}],"version-history":[{"count":7,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/699\/revisions"}],"predecessor-version":[{"id":718,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/pages\/699\/revisions\/718"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/media?parent=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}