summaryrefslogtreecommitdiff
path: root/build/example.py
diff options
context:
space:
mode:
authorLieuwe <lieuwemo@gmail.com>2011-02-26 10:49:23 (GMT)
committer Lieuwe <lieuwemo@gmail.com>2011-02-26 10:49:23 (GMT)
commit5387f235f909396595f21398be876cc19955826c (patch)
tree37002f27192ec5d44ef1d5154476b629c816154a /build/example.py
parent669a672b3d083af22c6aeb37a636903ce30bcf6c (diff)
downloadpowder-5387f235f909396595f21398be876cc19955826c.zip
powder-5387f235f909396595f21398be876cc19955826c.tar.gz
python console
Diffstat (limited to 'build/example.py')
-rw-r--r--build/example.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/build/example.py b/build/example.py
new file mode 100644
index 0000000..b1ac778
--- /dev/null
+++ b/build/example.py
@@ -0,0 +1,11 @@
+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)
+
+