{"id":937,"date":"2018-10-10T19:04:08","date_gmt":"2018-10-10T19:04:08","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/cc18\/?p=937"},"modified":"2018-10-10T19:46:30","modified_gmt":"2018-10-10T19:46:30","slug":"thurs-10-11","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/10\/10\/thurs-10-11\/","title":{"rendered":"Thurs 10\/11"},"content":{"rendered":"<ul>\n<li>Introduction to classes and objects.<\/li>\n<li>Defining a class:<\/li>\n<\/ul>\n<p><strong>Anatomy of a class (page 124):<\/strong><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"707\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/4b-thurs-sept-27\/screen-shot-2018-09-27-at-9-24-48-am\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?fit=954%2C870&amp;ssl=1\" data-orig-size=\"954,870\" 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=\"Screen Shot 2018-09-27 at 9.24.48 AM\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?fit=954%2C870&amp;ssl=1\" class=\"alignnone wp-image-707 size-full\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?resize=954%2C870&#038;ssl=1\" alt=\"\" width=\"954\" height=\"870\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?w=954&amp;ssl=1 954w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?resize=300%2C274&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.24.48-AM.png?resize=768%2C700&amp;ssl=1 768w\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" \/><\/p>\n<ul>\n<li>Declare and initialize a class (eg. use it in your code)<\/li>\n<li>Writing a class with arguments (p. 132)<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"709\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/4b-thurs-sept-27\/screen-shot-2018-09-27-at-9-27-03-am\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?fit=874%2C602&amp;ssl=1\" data-orig-size=\"874,602\" 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=\"Screen Shot 2018-09-27 at 9.27.03 AM\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?fit=874%2C602&amp;ssl=1\" class=\"alignnone wp-image-709 size-full\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?resize=874%2C602&#038;ssl=1\" alt=\"\" width=\"874\" height=\"602\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?w=874&amp;ssl=1 874w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?resize=300%2C207&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/Screen-Shot-2018-09-27-at-9.27.03-AM.png?resize=768%2C529&amp;ssl=1 768w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/p>\n<p>Exercises:<\/p>\n<ul>\n<li>Read Chapter 8. Still confused? Try these video tutorials from Shiffman <a href=\"https:\/\/www.youtube.com\/playlist?list=PLRqwX-V7Uu6bb7z2IJaTlzwzIg_5yvL4i\">on classes.<\/a><\/li>\n<li>In Learning Processing do exercises: 8.1, 8.2.<\/li>\n<li>Also 8.5: See code for the <a href=\"https:\/\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/09\/bouncing_ball_gravity.zip\">bouncing_ball_gravity<\/a> here. First break draw() out into functions, then add a ball class! Make a sketch with 100 balls of random colors (use an array).<\/li>\n<li>Work on the Visualizing Time project.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to classes and objects. Defining a class: Anatomy of a class (page 124): Declare and initialize a class (eg. use it in your code) Writing a class with arguments (p. 132) Exercises: Read Chapter 8. Still confused? Try these video tutorials from Shiffman on classes. In Learning Processing do exercises: 8.1, 8.2. Also 8.5:<a class=\"more-link button\" href=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/10\/10\/thurs-10-11\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-937","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paeb9f-f7","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/types\/post"}],"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=937"}],"version-history":[{"count":1,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":938,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/937\/revisions\/938"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/media?parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/categories?post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/tags?post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}