From 61cfa2983a0aecf43f2df2af4ef84975663ceeb9 Mon Sep 17 00:00:00 2001 From: Infinitode Date: Sat, 21 Sep 2024 17:24:08 +0200 Subject: [PATCH] Fixed docstring for `generate_random-palette` --- hued/palettes.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/hued/palettes.py b/hued/palettes.py index 3f043b4..4288b28 100644 --- a/hued/palettes.py +++ b/hued/palettes.py @@ -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),