Working with Processing – Creating random generating circles

Working with processing again, this time generating 10 random circles. These circles had to be random sizes and also random colours. Having limited knowledge on Processing it was pretty hard to start it off, then I remembered everything that we’ve learnt already covered the task.

The main 3 inputs that were needed for the task were:

  • void setup () { }
  • void draw () { }
  • void mouseClicked() { }

This is what I came up with:

Screen Shot 2014-11-09 at 02.21.25
A screen shot of the code used for circles generating.


I programmed so that every time the mouse is clicked different size and colour circles would appear on random spaces within the box.

Screen Shot 2014-11-09 at 02.22.14
Screen shot of random generated circles.






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s