The-Powder-Toy/build/example.py
2011-02-26 11:49:23 +01:00

12 lines
252 B
Python

import tpt
import random
# example script
def noise(typ,amount=50):
for xx in range(284,316):
for yy in range(184,216):
if(random.randrange(0,100)<amount):
tpt.create(xx,yy,typ)