{"id":45,"date":"2015-06-15T03:40:39","date_gmt":"2015-06-14T23:40:39","guid":{"rendered":"http:\/\/courses.haigarmen.com\/creativecoding\/?p=45"},"modified":"2015-06-15T03:40:39","modified_gmt":"2015-06-14T23:40:39","slug":"review-1","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/creativecoding\/review-1\/","title":{"rendered":"Review 1"},"content":{"rendered":"<p><strong>The color() function<\/strong> is used to create a variable of the type color. This is handy if you need to create colors you can use anywhere in your sketch. In this example, I&#8217;ve declared a color variable named c, before the setup() function.<\/p>\n<p><strong>The fill() function<\/strong> is used to set the fill color of the shape you&#8217;re about to draw. It can be used with one to four parameters. You can also use a color variable for this.<\/p>\n<p><strong>The noFill() function<\/strong> is used to disable the fill before you draw a shape to the screen.<\/p>\n<p><strong>The stroke()<\/strong> is similar to the fill() function, but sets the color for the stroke of the shape you want to draw.<\/p>\n<p><strong>The noStroke() function<\/strong> is used to disable the stroke before you draw a shape to the screen.<\/p>\n<p><strong>The background() function<\/strong> is used to set the background color. This will usually be the first function you&#8217;ll use inside the draw() function, as it will clear the screen. You can&#8217;t use transparent colors with this function. If you do, the alpha value will be ignored.<\/p>\n<p>The first parameter in <strong>colorMode()<\/strong> is used to set the color mode. This can be either RGB or HSB. The default color mode is RGB, with values between 0 and 255.<\/p>\n<p>You can use colorMode( RGB, 1.0 ) to use values between 0 and 1 for the color<br \/>\ncomponents. If you want to use HSB colors, you&#8217;ll usually use colorMode( HSB,<br \/>\n360, 100, 100 ), as these numbers are used in most graphics applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The color() function is used to create a variable of the type color. This is handy if you need to create colors you can use anywhere in your sketch. In this example, I&#8217;ve declared a color variable named c, before the setup() function. The fill() function is used to set the fill color of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-reading"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":1,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/posts\/45\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/creativecoding\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}