Skip to content

Commit fa4fb46

Browse files
committed
Update example
1 parent ec4c359 commit fa4fb46

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/src/markdown/examples/3d_models.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ <h1>ColorAide Color Space Models</h1>
223223
import math
224224
import plotly.io as io
225225
from coloraide.everything import ColorAll as Color
226-
from coloraide.channels import HUE_DEG
226+
from coloraide.channels import ANGLE_DEG
227227
from coloraide.spaces import HSLish, HSVish, HWBish, Labish, LChish, RGBish
228228
from coloraide import algebra as alg
229229
from coloraide.css.serialize import POSTFIX
@@ -437,7 +437,7 @@ <h1>ColorAide Color Space Models</h1>
437437
# LCh spaces
438438
if flags['is_lchish']:
439439
light, chroma, hue = c._space.indexes()
440-
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != HUE_DEG else c[hue]
440+
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != ANGLE_DEG else c[hue]
441441
a, b = alg.polar_to_rect(c[chroma], h)
442442
x.append(a)
443443
y.append(b)
@@ -446,7 +446,7 @@ <h1>ColorAide Color Space Models</h1>
446446
# HSL, HSV, or HWB spaces
447447
elif flags['is_hslish'] or flags['is_hsvish'] or flags['is_hwbish']:
448448
hue, sat, light = c._space.indexes()
449-
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != HUE_DEG else c[hue]
449+
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != ANGLE_DEG else c[hue]
450450
a, b = alg.polar_to_rect(c[sat], h)
451451
x.append(a)
452452
y.append(b)
@@ -455,7 +455,7 @@ <h1>ColorAide Color Space Models</h1>
455455
# Any other generic cylindrical space that doesn't fit in the categories above.
456456
elif flags['is_cyl']:
457457
hue = c._space.hue_index()
458-
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != HUE_DEG else c[hue]
458+
h = (c[hue] * (360 / c._space.channels[hue].high)) if c._space.channels[hue] != ANGLE_DEG else c[hue]
459459
radius = c._space.radial_index()
460460
a, b = alg.polar_to_rect(c[radius], h)
461461
x.append(a)

0 commit comments

Comments
 (0)