Skip to content

Commit

Permalink
🤡 chore:cluster and point drawing functions to use larger default radius
Browse files Browse the repository at this point in the history
  • Loading branch information
NTGNguyen committed Sep 9, 2024
1 parent 1beb076 commit ec79873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GUI/coordinate_system/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, canvas: tk.Canvas):
# List to keep track of cluster IDs and their positions
self.clusters: list[Cluster] = []

def draw_cluster(self, x, y, color, radius=5):
def draw_cluster(self, x, y, color, radius=20):
"""Draws a cluster (circle) at (x, y) with the given radius and color."""
cluster_id = self.canvas.create_oval(
x - radius, y - radius, x + radius, y + radius, outline="black", fill=color)
Expand Down
2 changes: 1 addition & 1 deletion src/GUI/coordinate_system/points.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def __init__(self, canvas):
self.canvas = canvas
self.points = []

def draw_point(self, x, y, color: str = 'blue', radius=10):
def draw_point(self, x, y, color: str = 'blue', radius=40):
"""Draws a point (larger circle) at (x, y) with the given radius and color."""
point_id = self.canvas.create_oval(
x - radius, y - radius, x + radius, y + radius, outline=color, fill=color)
Expand Down

0 comments on commit ec79873

Please sign in to comment.