Fun Programming

In this episode we learn how we can use the if() statement to execute some code conditionally. That means the code is not executed always, but only if certain condition is met. In our example, the condition is that the circle has moved too far to the right. In that case, we bring the circle back to the left border of the screen.
We also see how to animate two objects at different speeds, and how each object can have a different color.

# vimeo.com/69758865 Uploaded 1,344 Plays / / 0 Comments Watch in Couch Mode

Follow

Fun Programming

Abe Pazos Plus

Learn creative programming using Processing, SuperCollider and other Free Software. Meant for people of all ages who are curious about what programming is. We focus on creating interesting visual and sound effects. More playing than theory.

You can find more videos at funprogramming.org

Browse This Channel

Shout Box

  • Abe Pazos

    I'm wondering if this funprogramming Vimeo channel could replace the Facebook page and the Google+... This is easy to follow, it has RSS feed if you want to subscribe, and the best part is that I wouldn't have to log in into any social networks :)

    by Abe Pazos

  • Abe Pazos

    Hello channel :) I wonder how this message will look like and who will read it :)

    by Abe Pazos

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels. Channels