{"id":1556,"date":"2018-11-01T06:14:37","date_gmt":"2018-11-01T06:14:37","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/cc18\/?p=1556"},"modified":"2018-11-01T06:14:37","modified_gmt":"2018-11-01T06:14:37","slug":"kasper_researchpost5","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/","title":{"rendered":"Kasper_ResearchPost5"},"content":{"rendered":"<p>The p5.Particle is a library which adds particle support to p5.js, created by Robert Cock. The Particle object, which is simply a data definition, and the Fountain object, which encapsulates all the needed properties for creating Particle, can be used to create data-driven effects. In this library, all particles that are defined in the parent Fountain has a common properties, such as gravity. It is easy for user to add per-particle properties, such as color. When a Particle&#8217;s &#8220;location&#8221; is greater than the canvas height, &#8220;life&#8221; is greater than or equal to one, or &#8220;partSize&#8221;\u00a0is less than 0.1 or 3, the Particle will be deallocated.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1557\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/%e8%9e%a2%e5%b9%95%e5%bf%ab%e7%85%a7-2018-11-01-%e4%b8%8a%e5%8d%882-12-49\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.49.png?fit=400%2C378&amp;ssl=1\" data-orig-size=\"400,378\" 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=\"\u87a2\u5e55\u5feb\u7167 2018-11-01 \u4e0a\u53482.12.49\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.49.png?fit=400%2C378&amp;ssl=1\" class=\"alignnone size-medium wp-image-1557\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.49.png?resize=300%2C284&#038;ssl=1\" alt=\"\" width=\"300\" height=\"284\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.49.png?resize=300%2C284&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.49.png?w=400&amp;ssl=1 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1558\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/%e8%9e%a2%e5%b9%95%e5%bf%ab%e7%85%a7-2018-11-01-%e4%b8%8a%e5%8d%882-12-55\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.55.png?fit=399%2C379&amp;ssl=1\" data-orig-size=\"399,379\" 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=\"\u87a2\u5e55\u5feb\u7167 2018-11-01 \u4e0a\u53482.12.55\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.55.png?fit=399%2C379&amp;ssl=1\" class=\"alignnone size-medium wp-image-1558\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.55.png?resize=300%2C285&#038;ssl=1\" alt=\"\" width=\"300\" height=\"285\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.55.png?resize=300%2C285&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.12.55.png?w=399&amp;ssl=1 399w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1559\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/%e8%9e%a2%e5%b9%95%e5%bf%ab%e7%85%a7-2018-11-01-%e4%b8%8a%e5%8d%882-13-05\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.05.png?fit=398%2C377&amp;ssl=1\" data-orig-size=\"398,377\" 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=\"\u87a2\u5e55\u5feb\u7167 2018-11-01 \u4e0a\u53482.13.05\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.05.png?fit=398%2C377&amp;ssl=1\" class=\"alignnone size-medium wp-image-1559\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.05.png?resize=300%2C284&#038;ssl=1\" alt=\"\" width=\"300\" height=\"284\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.05.png?resize=300%2C284&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.05.png?w=398&amp;ssl=1 398w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1560\" data-permalink=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/%e8%9e%a2%e5%b9%95%e5%bf%ab%e7%85%a7-2018-11-01-%e4%b8%8a%e5%8d%882-13-16\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.16.png?fit=393%2C377&amp;ssl=1\" data-orig-size=\"393,377\" 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=\"\u87a2\u5e55\u5feb\u7167 2018-11-01 \u4e0a\u53482.13.16\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.16.png?fit=393%2C377&amp;ssl=1\" class=\"alignnone size-medium wp-image-1560\" src=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.16.png?resize=300%2C288&#038;ssl=1\" alt=\"\" width=\"300\" height=\"288\" srcset=\"https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.16.png?resize=300%2C288&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.courses.tegabrain.com\/cc18\/wp-content\/uploads\/2018\/11\/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7-2018-11-01-%E4%B8%8A%E5%8D%882.13.16.png?w=393&amp;ssl=1 393w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Library Link:\u00a0<a href=\"https:\/\/github.com\/bobcgausa\/cook-js#how-does-this-work\">https:\/\/github.com\/bobcgausa\/cook-js#how-does-this-work<\/a><\/p>\n<p>Code Example:\u00a0<a href=\"http:\/\/jsfiddle.net\/bobcook\/rLvhc8h2\/\">http:\/\/jsfiddle.net\/bobcook\/rLvhc8h2\/<\/a><\/p>\n<p>This example shows generating pattern with rate.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The p5.Particle is a library which adds particle support to p5.js, created by Robert Cock. The Particle object, which is simply a data definition, and the Fountain object, which encapsulates all the needed properties for creating Particle, can be used to create data-driven effects. In this library, all particles that are defined in the parent<a class=\"more-link button\" href=\"https:\/\/www.courses.tegabrain.com\/cc18\/2018\/11\/01\/kasper_researchpost5\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"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":[9],"tags":[],"class_list":["post-1556","post","type-post","status-publish","format-standard","hentry","category-researchpost5"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paeb9f-p6","jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1556","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/comments?post=1556"}],"version-history":[{"count":1,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1556\/revisions"}],"predecessor-version":[{"id":1561,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/posts\/1556\/revisions\/1561"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/media?parent=1556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/categories?post=1556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/cc18\/wp-json\/wp\/v2\/tags?post=1556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}