Circularmachines commited on
Commit
cf54ad5
·
1 Parent(s): beb3e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- 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
 
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