Skip to content

Commit

Permalink
Update plot scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Dec 7, 2023
1 parent 7036501 commit 62dedd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/markdown/demos/3d_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h1>ColorAide Color Space Models</h1>
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):
Expand Down Expand Up @@ -526,7 +526,7 @@ <h1>ColorAide Color Space Models</h1>
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:
Expand Down
4 changes: 2 additions & 2 deletions tools/gamut_3d_plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 62dedd0

Please sign in to comment.