NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

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)