Skip to content

Commit

Permalink
Fixed docstring for generate_random-palette
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinitode committed Sep 21, 2024
1 parent a29a8fb commit 61cfa29
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hued/palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,18 @@ def remove_color(self, rgb_color):
self.palette.remove(rgb_color)

def generate_random_palette(self):
"""Generates a random base color and its associated palettes."""
"""
Generates a random base color and its associated palettes.
Returns:
dict: A dictionary containing the following keys:
- 'Base Color' (tuple): The randomly generated RGB base color, e.g., (R, G, B).
- 'Complementary Palette' (list): A list of colors in the complementary palette.
- 'Analogous Palette' (list): A list of colors in the analogous palette.
- 'Triadic Palette' (list): A list of colors in the triadic palette.
- 'Monochromatic Palette' (list): A list of colors in the monochromatic palette.
"""

# Generate a random RGB color
base_color = (
random.randint(0, 255),
Expand Down

0 comments on commit 61cfa29

Please sign in to comment.