Skip to content

Instantly share code, notes, and snippets.

@vipulgupta2048
Created June 15, 2020 20:33
Show Gist options
  • Select an option

  • Save vipulgupta2048/b1c877bcf42b9853f2ec2b9cc6b16f23 to your computer and use it in GitHub Desktop.

Select an option

Save vipulgupta2048/b1c877bcf42b9853f2ec2b9cc6b16f23 to your computer and use it in GitHub Desktop.
party_changer.py (Party of Party Starter)
# secret sauce is the RGBA color tuple we are passing
def party_changer(width, height, pixels, secret_sauce):
for x in range(width):
for y in range(height):
if pixels[x, y] != (0, 0, 0, 0):
pixels[x, y] = secret_sauce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment