Inital Commit (Creates Graphs)
This commit is contained in:
commit
435a2a453a
30 changed files with 348 additions and 0 deletions
8
cords.py
Normal file
8
cords.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
def center_on(image, location):
|
||||
h = image.size[0]
|
||||
w = image.size[1]
|
||||
|
||||
return (int(location[0] - (0.5 * h)),int(location[1] - (0.5 * w)))
|
||||
|
||||
def scale(image, amount):
|
||||
return image.resize((int(image.size[0] * amount), int(image.size[1] * amount)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue