Greenfoot: Boids

This is a simulation that explores flocking behaviour. Look here.

Sky

Explain what getBackground().setColor(new Color(188, 164, 255)' does. Try changing the numbers.

What does 'setBackground().fill()' do?

How many boids are added in the default setting? Try changing this number and observe what happens when the program is run.

SmoothActor

What name is given to a section of code like SmoothActor?

Where is the Vector class defined? What does it do?