Commit
·
cf54ad5
1
Parent(s):
beb3e34
Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,14 @@ with Image.open("kitty.jpeg") as img:
|
|
7 |
draw = ImageDraw.Draw(img)
|
8 |
|
9 |
def get_ellipse_coords(point: tuple[int, int]) -> tuple[int, int, int, int]:
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
|
19 |
|
20 |
# Draw an ellipse at each coordinate in points
|
|
|
7 |
draw = ImageDraw.Draw(img)
|
8 |
|
9 |
def get_ellipse_coords(point: tuple[int, int]) -> tuple[int, int, int, int]:
|
10 |
+
center = point
|
11 |
+
radius = 10
|
12 |
+
return (
|
13 |
+
center[0] - radius,
|
14 |
+
center[1] - radius,
|
15 |
+
center[0] + radius,
|
16 |
+
center[1] + radius,
|
17 |
+
)
|
18 |
|
19 |
|
20 |
# Draw an ellipse at each coordinate in points
|