From 62dedd076d3208d59a113aaca8157ad1472fb08e Mon Sep 17 00:00:00 2001 From: facelessuser Date: Thu, 7 Dec 2023 08:46:28 -0700 Subject: [PATCH] Update plot scripts --- docs/src/markdown/demos/3d_models.html | 4 ++-- tools/gamut_3d_plotly.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/markdown/demos/3d_models.html b/docs/src/markdown/demos/3d_models.html index d8a05cb5c..e8ee07c3e 100644 --- a/docs/src/markdown/demos/3d_models.html +++ b/docs/src/markdown/demos/3d_models.html @@ -224,7 +224,7 @@

ColorAide Color Space Models

from coloraide.spaces.hsl import hsl_to_srgb, srgb_to_hsl FORCE_OWN_GAMUT = {'ryb', 'ryb-biased'} -CYL_GAMUT = {'hpluv',} +CYL_GAMUT = {'hpluv', 'okhsl', 'okhsv'} def create_custom_hsl(gamut): @@ -526,7 +526,7 @@

ColorAide Color Space Models

fig.add_traces(trace) # Generate tops for spaces that do not normally get tops automatically. - if is_hwbish or space in ('hpluv',): + if is_hwbish or space in CYL_GAMUT: fig.add_traces(cyl_disc(ColorCyl, space, gamut_space, 'top', resolution, opacity, edges)) if is_cyl and not is_labish and not is_lchish: diff --git a/tools/gamut_3d_plotly.py b/tools/gamut_3d_plotly.py index 5dac25a4c..41bba271a 100644 --- a/tools/gamut_3d_plotly.py +++ b/tools/gamut_3d_plotly.py @@ -19,7 +19,7 @@ from coloraide.spaces.hsl import hsl_to_srgb, srgb_to_hsl # noqa: E402 FORCE_OWN_GAMUT = {'ryb', 'ryb-biased'} -CYL_GAMUT = {'hpluv',} +CYL_GAMUT = {'hpluv', 'okhsl', 'okhsv'} def create_custom_hsl(gamut): @@ -325,7 +325,7 @@ def render_space_cyl(fig, space, gamut, resolution, opacity, edges): fig.add_traces(trace) # Generate tops for spaces that do not normally get tops automatically. - if is_hwbish or space in ('hpluv',): + if is_hwbish or space in CYL_GAMUT: fig.add_traces(cyl_disc(ColorCyl, space, gamut_space, 'top', resolution, opacity, edges)) if is_cyl and not is_labish and not is_lchish: