- a regular grid
- a sack of beans
- bottle caps or portion cups, one per termite
- one die per termite (or use the simulator)
- Draw or make a large regular grid of 2"x2" cells
n=3 | |
c=7 | |
def setup(): | |
background(0) | |
size(600,600) | |
def draw(): | |
global a,n | |
a = n * 137.5 |
# Python Flowfield example | |
# Doug Goodwin | |
# Example derived from Daniel Shiffman's "Nature of Code" | |
# http:#natureofcode.com | |
# Flow Field Following | |
class FlowField(object): | |
def __init__(self,r): | |
# A flow field is a two dimensional array of PVectors |