I was creating a program with multiple images and it was working fine then i opened it on another computer and I keep getting a nonetype object has no attribute resize.
This is my code, Im very lost. Thank you
size(800,800)
global deadpool, mom, woc, shark, vj, baby, cat, liger, sad, teenmom, mom, dolphin,beard,mus
deadpool = loadImage("data/deadpool.jpg")
mom = loadImage("data/mom.jpg")
woc = loadImage("data/woc.jpg")
shark = loadImage("data/shark.jpg")
vj = loadImage("data/vj.jpg")
baby = loadImage("data/baby.jpg")
cat = loadImage("data/cat.jpg")
liger = loadImage("data/liger.jpg")
sad = loadImage("data/sad.jpg")
teenmom = loadImage("data/teenmom.jpg")
mom = loadImage("data/mom.jpg")
dolphin = loadImage("data/dolphin.jpg")
beard = loadImage("data/beard.jpg")
mus = loadImage("data/mus.png")
def border():
y=0
x=0
for x in range(0,800,20):
line(x,y,x,y+20)
line(x,y+780,x,y+800)
for y in range(0,800,20):
line(x,y,x+20,y)
line(x-780,y,x-760,y)
def DeadPool(img):
img.resize(200,200)
for x in range(0, len(img.pixels)):
r = red(img.pixels[x])
g = green(img.pixels[x])
b = blue(img.pixels[x])
img.pixels[x] = color(r,0,0)
image(img,0,0)
border()
DeadPool(deadpool)
I was creating a program with multiple images and it was working fine then i opened it on another computer and I keep getting a nonetype object has no attribute resize. This is my code, Im very lost. Thank you size(800,800)
global deadpool, mom, woc, shark, vj, baby, cat, liger, sad, teenmom, mom, dolphin,beard,mus deadpool = loadImage("data/deadpool.jpg") mom = loadImage("data/mom.jpg") woc = loadImage("data/woc.jpg") shark = loadImage("data/shark.jpg") vj = loadImage("data/vj.jpg") baby = loadImage("data/baby.jpg") cat = loadImage("data/cat.jpg") liger = loadImage("data/liger.jpg") sad = loadImage("data/sad.jpg") teenmom = loadImage("data/teenmom.jpg") mom = loadImage("data/mom.jpg") dolphin = loadImage("data/dolphin.jpg") beard = loadImage("data/beard.jpg") mus = loadImage("data/mus.png") def border(): y=0 x=0 for x in range(0,800,20): line(x,y,x,y+20) line(x,y+780,x,y+800) for y in range(0,800,20): line(x,y,x+20,y) line(x-780,y,x-760,y) def DeadPool(img): img.resize(200,200) for x in range(0, len(img.pixels)): r = red(img.pixels[x]) g = green(img.pixels[x]) b = blue(img.pixels[x]) img.pixels[x] = color(r,0,0) image(img,0,0) border() DeadPool(deadpool)