Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create_golden_ratio_pattern(base_radius, num_circles):
- golden_ratio = 1.618
- base_x, base_y = 0, 0 # Starting point for the first circle
- circles = []
- for i in range(num_circles):
- radius = base_radius * (golden_ratio ** i)
- x, y = base_x, base_y # Adjust x, y based on your pattern's requirements
- circles.append((x, y, radius))
- return circles
- # Example usage
- base_radius = 10
- num_circles = 10
- pattern = create_golden_ratio_pattern(base_radius, num_circles)
- # Now you have a list of tuples, each containing the x, y coordinates and radius of each circle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement