Last active
July 10, 2017 16:20
-
-
Save wsricardo/dc5e114737deff552ccdb4d020a2a990 to your computer and use it in GitHub Desktop.
Python Image RGB Matrix
This file contains 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
#!/usr/bin/env python | |
# Python 2 | |
image = lambda m,n: map(lambda k: | |
map(lambda i: {'r':0,'g':0,'b':0}, range(n)), | |
range(m)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment