Skip to content

Commit 1e68306

Browse files
committed
Update helmlab to latest
1 parent fb0ff9d commit 1e68306

File tree

8 files changed

+356
-364
lines changed

8 files changed

+356
-364
lines changed

coloraide/spaces/helmlab.py

Lines changed: 321 additions & 321 deletions
Large diffs are not rendered by default.

docs/src/markdown/colors/helmlab.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ The string representation of the color object and the default string output use
5555
`#!css-color color(--helmlab l a b / a)` form.
5656

5757
```py play
58-
Color("helmlab", [0.7867, 0.52648, -0.20295])
59-
Color("helmlab", [0.97103, 0.50434, 0.27591]).to_string()
58+
Color("helmlab", [0.61752, 0.58275, -0.20187])
59+
Color("helmlab", [0.87013, 0.49555, 0.29624]).to_string()
6060
```
6161

6262
## Registering
-3.63 KB
Loading
-3.31 KB
Loading
-382 Bytes
Loading
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
var colorNotebook = {
2-
<<<<<<<< HEAD:docs/theme/playground-config-3ba60a2e.js
32
"playgroundWheels": ['micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.8.1-py3-none-any.whl'],
43
"notebookWheels": ['pyyaml', 'markdown-3.10.1-py3-none-any.whl', 'pymdown_extensions-10.20-py3-none-any.whl', 'micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.8.1-py3-none-any.whl'],
5-
|||||||| parent of c12ed5ab (Add Helmlab, Helmgen, and Helmgenlch color spaces (#510)):docs/theme/playground-config-191ce1a5.js
6-
"playgroundWheels": ['micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.7-py3-none-any.whl'],
7-
"notebookWheels": ['pyyaml', 'markdown-3.10.1-py3-none-any.whl', 'pymdown_extensions-10.20-py3-none-any.whl', 'micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.7-py3-none-any.whl'],
8-
========
9-
"playgroundWheels": ['micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.8-py3-none-any.whl'],
10-
"notebookWheels": ['pyyaml', 'markdown-3.10.1-py3-none-any.whl', 'pymdown_extensions-10.20-py3-none-any.whl', 'micropip', 'pygments-2.19.2-py3-none-any.whl', 'coloraide-8.8-py3-none-any.whl'],
11-
>>>>>>>> c12ed5ab (Add Helmlab, Helmgen, and Helmgenlch color spaces (#510)):docs/theme/playground-config-eec35f0d.js
124
"defaultPlayground": "import coloraide\ncoloraide.__version__\nColor('red')"
135
}

tests/test_distance.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -651,25 +651,25 @@ def test_delta_e_hct(self, color1, color2, value):
651651
'color1,color2,value',
652652
[
653653
('red', 'red', 0),
654-
('red', 'orange', 0.2701),
655-
('red', 'yellow', 0.3326),
656-
('red', 'green', 0.3518),
657-
('red', 'blue', 0.3649),
658-
('red', 'indigo', 0.3085),
659-
('red', 'violet', 0.277),
660-
('red', 'white', 0.3029),
661-
('red', 'black', 0.3478),
662-
('red', 'gray', 0.2831),
663-
('red', 'red', 0),
664-
('orange', 'red', 0.2701),
665-
('yellow', 'red', 0.3326),
666-
('green', 'red', 0.3518),
667-
('blue', 'red', 0.3649),
668-
('indigo', 'red', 0.3085),
669-
('violet', 'red', 0.277),
670-
('white', 'red', 0.3029),
671-
('black', 'red', 0.3478),
672-
('gray', 'red', 0.2831)
654+
('red', 'orange', 0.2818),
655+
('red', 'yellow', 0.3395),
656+
('red', 'green', 0.3559),
657+
('red', 'blue', 0.3239),
658+
('red', 'indigo', 0.3024),
659+
('red', 'violet', 0.2801),
660+
('red', 'white', 0.3214),
661+
('red', 'black', 0.3355),
662+
('red', 'gray', 0.2939),
663+
('red', 'red', 0),
664+
('orange', 'red', 0.2818),
665+
('yellow', 'red', 0.3395),
666+
('green', 'red', 0.3559),
667+
('blue', 'red', 0.3239),
668+
('indigo', 'red', 0.3024),
669+
('violet', 'red', 0.2801),
670+
('white', 'red', 0.3214),
671+
('black', 'red', 0.3355),
672+
('gray', 'red', 0.2939)
673673
]
674674
)
675675
def test_delta_e_helmlab(self, color1, color2, value):

tests/test_helmlab.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ class TestHelmlab(util.ColorAssertsPyTest):
99
"""Test Helmlab."""
1010

1111
COLORS = [
12-
('red', 'color(--helmlab 0.7867 0.52648 -0.20295)'),
13-
('orange', 'color(--helmlab 0.97103 0.50434 0.27591)'),
14-
('yellow', 'color(--helmlab 1.0591 0.1304 0.49885)'),
15-
('green', 'color(--helmlab 0.55229 -0.14689 0.4932)'),
16-
('blue', 'color(--helmlab 0.54113 -0.37993 -0.80738)'),
17-
('indigo', 'color(--helmlab 0.42572 -0.06253 -0.31316)'),
18-
('violet', 'color(--helmlab 0.95228 0.03627 -0.36351)'),
19-
('white', 'color(--helmlab 1.1436 0 0)'),
20-
('gray', 'color(--helmlab 0.73661 0.00001 0)'),
12+
('red', 'color(--helmlab 0.61752 0.58275 -0.20187)'),
13+
('orange', 'color(--helmlab 0.87013 0.49555 0.29624)'),
14+
('yellow', 'color(--helmlab 0.9855 0.16195 0.50526)'),
15+
('green', 'color(--helmlab 0.50464 -0.11043 0.55474)'),
16+
('blue', 'color(--helmlab 0.47312 -0.15706 -0.4441)'),
17+
('indigo', 'color(--helmlab 0.35922 -0.01904 -0.3189)'),
18+
('violet', 'color(--helmlab 0.8309 0.09765 -0.37128)'),
19+
('white', 'color(--helmlab 1.0894 0 0)'),
20+
('gray', 'color(--helmlab 0.66349 0.00001 0)'),
2121
('black', 'color(--helmlab 0 0 0)'),
22-
('color(srgb 1.01 1.01 1.01)', 'color(--helmlab 1.1489 0 0)'),
23-
('color(srgb 1e-3 1e-3 1e-3)', 'color(--helmlab 0.02563 0.02551 -0.00179)'),
22+
('color(srgb 1.5 1.5 1.5)', 'color(--helmlab 1.3392 -0.02214 0.00215)'),
23+
('color(srgb 1e-3 1e-3 1e-3)', 'color(--helmlab 0.02807 0.02767 -0.00283)'),
2424
# Test color
2525
('color(--helmlab 0.5 0.1 -0.1)', 'color(--helmlab 0.5 0.1 -0.1)'),
2626
('color(--helmlab 0.5 0.1 -0.1 / 0.5)', 'color(--helmlab 0.5 0.1 -0.1 / 0.5)'),
27-
('color(--helmlab 50% 50% -50% / 50%)', 'color(--helmlab 0.57181 0.5 -0.5 / 0.5)'),
27+
('color(--helmlab 50% 50% -50% / 50%)', 'color(--helmlab 0.54468 0.5 -0.5 / 0.5)'),
2828
('color(--helmlab none none none / none)', 'color(--helmlab none none none / none)'),
2929
# Test percent ranges
3030
('color(--helmlab 0% 0% 0%)', 'color(--helmlab 0 0 0)'),
31-
('color(--helmlab 100% 100% 100%)', 'color(--helmlab 1.1436 1 1)'),
32-
('color(--helmlab -100% -100% -100%)', 'color(--helmlab -1.1436 -1 -1)')
31+
('color(--helmlab 100% 100% 100%)', 'color(--helmlab 1.0894 1 1)'),
32+
('color(--helmlab -100% -100% -100%)', 'color(--helmlab -1.0894 -1 -1)')
3333
]
3434

3535
@pytest.mark.parametrize('color1,color2', COLORS)

0 commit comments

Comments
 (0)