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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

or possibly even a complete crash of your program. You’ll experiment with these properties<br />

in later chapters. For now, there are two simple curves worth looking at that will help<br />

you code organic motion—one describes acceleration <strong>and</strong> the other deceleration.<br />

Figures 4-8 <strong>and</strong> 4-9 show an acceleration curve <strong>and</strong> a deceleration curve, with time on the<br />

x-axis <strong>and</strong> distance on the y, as in the previous linear example.<br />

Figure 4-8. Acceleration curve<br />

Figure 4-9. Deceleration curve<br />

COMPUTER GRAPHICS, THE FUN, EASY WAY<br />

127<br />

4

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

Saved successfully!

Ooh no, something went wrong!