#Turns all mostly-red pixels blue ("mostly-red" means within a distance of 140 of red)
def redtoBlue (pic):
color = getColor(p)
if distance(color, red) < 140:
setColor(p, blue)
def redtoBlue (pic):
color = getColor(p)
if distance(color, red) < 140:
setColor(p, blue)
No comments:
Post a Comment