"""Génère une grille artistique des couleurs utilisées."""

from pathlib import Path

from lib.plots.colors_grid import plot_colors_grid


PARTS_PATH = Path("data/intermediate/parts_filtered.csv")
COLORS_PATH = Path("data/raw/colors.csv")
PARTS_CATALOG_PATH = Path("data/raw/parts.csv")
DESTINATION_PATH = Path("figures/step12/colors_grid.png")
MINIFIG_DESTINATION_PATH = Path("figures/step12/colors_grid_minifigs.png")


def main() -> None:
    """Construit les visuels des palettes de couleurs utilisées."""
    plot_colors_grid(PARTS_PATH, COLORS_PATH, PARTS_CATALOG_PATH, DESTINATION_PATH, minifig_only=False)
    plot_colors_grid(PARTS_PATH, COLORS_PATH, PARTS_CATALOG_PATH, MINIFIG_DESTINATION_PATH, minifig_only=True)


if __name__ == "__main__":
    main()
