Created
June 15, 2020 20:33
-
-
Save vipulgupta2048/b1c877bcf42b9853f2ec2b9cc6b16f23 to your computer and use it in GitHub Desktop.
party_changer.py (Party of Party Starter)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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