Skip to content

Instantly share code, notes, and snippets.

@GrahamDumpleton
Created August 9, 2012 12:02
Show Gist options
  • Save GrahamDumpleton/3303627 to your computer and use it in GitHub Desktop.
Save GrahamDumpleton/3303627 to your computer and use it in GitHub Desktop.
Application of of resin adjust.
w,h = new_img.size
for x in range(0, w):
adjuster = ResinAdjust()
for y in range(0, h):
p = new_img.getpixel((x, y))
new_p = adjuster(p)
new_img.putpixel((x, y), new_p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment