Skip to content

Instantly share code, notes, and snippets.

@kylekyle
Last active October 28, 2016 19:47
Show Gist options
  • Save kylekyle/4d5d7e6bb05d9d7de7c3e35e81c59c0e to your computer and use it in GitHub Desktop.
Save kylekyle/4d5d7e6bb05d9d7de7c3e35e81c59c0e to your computer and use it in GitHub Desktop.
def cropPicture(picture):
smallPic = makeEmptyPicture(186,100)
smallX = 0
smallY = 0
for x in range(59,244):
smallX +=1
smallY = 0
for y in range(25,125):
pixel = getPixel(picture,x,y)
smallPicPixl = getPixel(smallPic,smallX,smallY)
setColor(smallPicPixl,getColor(pixel))
smallY +=1
return smallPic
def splashYellow(picture):
for pixel in getPixels(picture):
if getBlue(pixel) < 100:
setColor(pixel,yellow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment