{"id":777,"date":"2014-09-25T11:51:28","date_gmt":"2014-09-25T18:51:28","guid":{"rendered":"http:\/\/www.imaginary-institute.com\/blog\/?p=777"},"modified":"2014-09-25T11:52:25","modified_gmt":"2014-09-25T18:52:25","slug":"field-masking-in-action","status":"publish","type":"post","link":"https:\/\/www.imaginary-institute.com\/blog\/2014\/09\/25\/field-masking-in-action\/","title":{"rendered":"Field Masking in Action"},"content":{"rendered":"<p><a href=\"http:\/\/www.imaginary-institute.com\/blog\/wp-content\/uploads\/2014\/09\/Sept23c2014.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft  wp-image-778\" src=\"http:\/\/www.imaginary-institute.com\/blog\/wp-content\/uploads\/2014\/09\/Sept23c2014.gif\" alt=\"Sept23c2014\" width=\"287\" height=\"287\" \/><\/a>Here&#8217;s an animation I made using the new <code>AUMultiField<\/code> masking call. This is an animated gif that I drew and saved one frame at a time.<\/p>\n<p>I first drew a big white circle on a black background, and saved that in an <code>AUField<\/code>. That was my mask.<\/p>\n<p>To draw each frame, I first drew the checkerboard full-screen and saved it in an <code>AUField<\/code> (I could have also drawn it into an offscreen <code>PGraphics<\/code> buffer). Then I cleared the screen to white, drew the outer circle, then the checkerboard <strong>with the mask<\/strong>, so it didn&#8217;t clobber my existing background and circle, and then finally drew the red dot on top.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s an animation I made using the new AUMultiField masking call. This is an animated gif that I drew and saved one frame at a time. I first drew a big white circle on a black background, and saved that in an AUField. That was my mask. To draw each frame, I first drew the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":10,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/posts\/777\/revisions\/788"}],"wp:attachment":[{"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/categories?post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imaginary-institute.com\/blog\/wp-json\/wp\/v2\/tags?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}