boids.flock()
Syntax
flock(n, x, y, w, h)
Description
Returns a new flock consisting of n boids, that are caged in area starting at coordinates x and y and having a width w and height h. The returned flock is a Boids-object which primary method is the update() command.
Example
boids = ximport("boids")
flock = boids.flock(10, 0, 0, WIDTH, HEIGHT)