04.04.2013 Views

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

left squares<br />

fill(255, 120, 0);<br />

rect(spacing, spacing, w, h);<br />

fill(swatch);<br />

rect(spacing+w/3, spacing+h/3, w/3, h/3);<br />

//right squares<br />

fill(45, 140, 255);<br />

rect(w+spacing, spacing, w, h);<br />

fill(swatch);<br />

rect(w+spacing+w/3, spacing+h/3, w/3, h/3);<br />

Figure 10-1. Color Shift sketch<br />

Color theory<br />

For those of you with degrees in art, the preceding example will look familiar. To those of<br />

you who escaped the torture of cutting out hundreds of little pieces of colored paper<br />

while squinting <strong>and</strong> gluing your fingers together, this sketch illustrates an exercise for<br />

studying the relativity of color, specifically color interaction. Two important artists <strong>and</strong><br />

teachers, Josef Albers <strong>and</strong> Johannes Itten, formalized the modern study of color for artists.<br />

Their artwork <strong>and</strong> writings led to the creation of color theory foundation courses in<br />

Western art curricula throughout the world. The sketch illustrates a classic exercise in<br />

which two identical small swatches of color are placed on two larger sheets of differing<br />

colors. The problem involves trying to make the smaller swatches appear to be two different<br />

colors, by substituting different colors behind the swatches. This <strong>and</strong> similar studies<br />

developed by Albers, Itten, <strong>and</strong> others reveal interesting <strong>and</strong> unexpected color phenomena,<br />

including color <strong>and</strong> value shifts, afterimages, scale distortions, <strong>and</strong> even 3D spatial<br />

movements—sometimes referred to as “push-pull,” a term coined by another major artist/<br />

colorist/educator, Hans Hofmann.<br />

COLOR AND IMAGING<br />

401<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!