Skip to content

Commit

Permalink
Fix regression in 3D model demo
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 15, 2024
1 parent a89166b commit 186e407
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/markdown/demos/3d_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ <h1>ColorAide Color Space Models</h1>
# Ensure colors fit in output color gamut.
s = c.convert('srgb')
if not s.in_gamut():
s.fit(method=gmap)
s.fit(**gmap)
else:
s.clip()
cmap.append(s.to_string(hex=True))
Expand Down Expand Up @@ -541,7 +541,7 @@ <h1>ColorAide Color Space Models</h1>
# Adjust gamut to fit the display space
s = c.convert('srgb')
if not s.in_gamut():
s.fit(method=gmap)
s.fit(**gmap)
else:
s.clip()

Expand Down Expand Up @@ -588,7 +588,7 @@ <h1>ColorAide Color Space Models</h1>
# Fit colors to output gamut
s = t.convert('srgb')
if not s.in_gamut():
s.fit(method=gmap)
s.fit(**gmap)
else:
s.clip()
cmap.append(s.to_string(hex=True))
Expand Down Expand Up @@ -817,7 +817,7 @@ <h1>ColorAide Color Space Models</h1>
l = len(gamut_mapping)
for i, c in enumerate(gamut_mapping + non_mapped):
c1 = Color(c)
c2 = Color(c).fit(gamut, method=gmap)
c2 = Color(c).fit(gamut, **gmap)
c1.convert(space, in_place=True)
c2.convert(space, in_place=True)
x = []
Expand Down

0 comments on commit 186e407

Please sign in to comment.