Want to keep learning?

This content is taken from the Monash University's online course, Creative Coding. Join the course to learn more.

Skip to 0 minutes and 7 seconds Welcome to week 4 of Creative Coding. We’re now into the second half of the course and this week we’ll be looking at a variety of media elements that go into developing more complex sketches with Processing. First we’ll be looking at colour. We’ve already seen some basic uses of colour in Processing, including greyscale models and colour based on combinations of red, green and blue, or RGB. We’ve also made use of alpha values to control the transparency of graphics objects when they’re drawn. We’ll look at more intuitive models for dealing with colour and discuss ways to work creatively with colour in a sketch. So far, all the images we’ve created have been drawn using

Skip to 0 minutes and 48 seconds Processing’s built-in drawing shapes: lines, ellipses, rectangles and so on. Processing can also deal with images as well. You can read in any digital image, including your own photographs, into Processing and that’s where things can get interesting. An image is just a big array of RGB values ‘ data ‘ so of course you can massage and manipulate that data in your code to get some stunning results. We’ll also show you how to incorporate sound into your processing sketches. The easiest way to do this is to use short, pre-recorded sounds. If you have access to a smartphone or tablet with a built-in microphone you can record your own sounds,

Skip to 1 minute and 24 seconds but if not don’t worry: we’ve provided some simple sounds to get you started. Throughout the course so far, we’ve made use of randomness in a number of sketches. You’re already familiar with the random() function, but there’s a whole lot more to randomness that what we’ve looked at so far. So we’ll look further into other random functions and show how they can be used effectively in your sketches. Beyond random functions its important to look at why and how randomness is so often used. Artists have successfully used randomness and random processes for centuries, from the dice music of Mozart to British artist Tm Knowles’ wonderful drawings made by the random movement of trees in the wind.

Skip to 2 minutes and 4 seconds So we’ll be discussing what might be called the philosophy of randomness and the aesthetics of noise.

Skip to 2 minutes and 12 seconds So if you’re ready’let’s begin!

Introduction to week 4

Watch Jon McCormack introduce week 4 and provide an overview of the themes to be covered - colour, image, sound and noise.

This week we’ll be looking at colour, image, sound and randomness. We’ll look at different colour models beyond the Monochrome and RGB numbers we’ve used so far. We’ll also look at how you can incorporate images and sounds into your Processing sketches. We have two coding challenges for you to try: improving an interface to creatively choose colours and ‘one pixel cinema’ which will challenge you to create an ambient generative animation from image data.

We’ll also look further at random functions and the role randomness and chance plays in art.

Learning outcomes for week 4

At the end of this week you should be able to:

  • Appreciate the use of colour in software art and know how to use different colour modes in Processing;
  • Incorporate images and sounds into your Processing sketches;
  • Understand the basics of random functions in Processing;
  • Have an appreciation of how randomness has been used in a creative practice.

Demonstrate your learning: Complete an exam

Now that you’re half-way through the course you might like to consider demonstrating how much you’ve learned by completing an exam at the end of the course run. If you successfully pass the exam, you’ll be mailed a FutureLearn Statement of Attainment - a university-branded certificate as verified proof of your learning and your score in the exam that you can show your boss, a future employer or your friends and family.

You can complete the exam between 5 October 2015 and 25 October 2015.

Share this video:

This video is from the free online course:

Creative Coding

Monash University

Get a taste of this course

Find out what this course is like by previewing some of the course steps before you join: