Stuart Axon
2009-08-31 04:56:30 UTC
If you run this simple example
http://www.multiply.org/notebook/archives/2008/08/processing-and.html
(in filestructure and older branch)
Shoebot complains that 'w' is not in the namespace ('w' is in the code) -- Heres the example code:
sizeheight = 600
sizewidth = 600
def background (w,h):
size(w, h)
fill(.7, .7, .7)
rect(0, 0, w, h)
background(sizewidth, sizeheight)
for i in range(20):
fill(i*40/255.0, i*40/255.0, i*40/255.0)
stroke(i*20/255.0, i*20/255.0, i*20/255.0)
rect(i*40, i*40, 40, 40)
http://www.multiply.org/notebook/archives/2008/08/processing-and.html
(in filestructure and older branch)
Shoebot complains that 'w' is not in the namespace ('w' is in the code) -- Heres the example code:
sizeheight = 600
sizewidth = 600
def background (w,h):
size(w, h)
fill(.7, .7, .7)
rect(0, 0, w, h)
background(sizewidth, sizeheight)
for i in range(20):
fill(i*40/255.0, i*40/255.0, i*40/255.0)
stroke(i*20/255.0, i*20/255.0, i*20/255.0)
rect(i*40, i*40, 40, 40)