-
-
Notifications
You must be signed in to change notification settings - Fork 35
Conversation
eth-wallpaper-gen/main.py
Outdated
"top-left": [(0.498, 0.183), (0.393, 0.445), (0.498, 0.538), (0.498, 0.183)], | ||
"top-right": [(0.498, 0.183), (0.604, 0.445), (0.498, 0.538), (0.498, 0.183)], | ||
"bottom-left": [(0.392, 0.472), (0.498, 0.567), (0.498, 0.697), (0.392, 0.472)], | ||
"bottom-right": [(0.605, 0.472), (0.498, 0.567), (0.498, 0.697), (0.605, 0.472)], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're wondering what these magic numbers are, they are just polygon vertice points (relative to image dimensions).
@@ -0,0 +1,70 @@ | |||
import sys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you modify this to be an executable python script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
eth-wallpaper-gen/main.py
Outdated
"bottom-right": "top-left", | ||
} | ||
|
||
im = Image.open(sys.argv[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to organize all of this logic into methods and implement a main
method that calls the specific functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
left some comments back on the issue itself |
|
No description provided.