Skip to content

Commit

Permalink
Don't cache coercion to RGB and remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 26, 2024
1 parent 383a1fb commit 920313a
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion coloraide/__meta__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@ def parse_version(ver: str) -> Version:
return Version(major, minor, micro, release, pre, post, dev)


__version_info__ = Version(3, 0, 0, "final")
__version_info__ = Version(3, 0, 1, "final")
__version__ = __version_info__._get_canonical()
2 changes: 0 additions & 2 deletions coloraide/gamut/fit_lch_raytrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@ class LChRayTrace(OkLChRayTrace):

NAME = 'lch-raytrace'
SPACE = "lch-d65"
MAX_LIGHTNESS = 100
MIN_LIGHTNESS = 0
2 changes: 0 additions & 2 deletions coloraide/gamut/fit_oklch_raytrace.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ class OkLChRayTrace(Fit):

NAME = "oklch-raytrace"
SPACE = "oklch"
MAX_LIGHTNESS = 1
MIN_LIGHTNESS = 0
TRACES = 3
BACKOFF_MAP = {
1: [0.99],
Expand Down
5 changes: 5 additions & 0 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.0.1

- **FIX**: Don't cache coercion of non-RGB space to RGB space in ray tracing gamut mapping algorithm as the underlying
color object could change underneath.

## 3.0

- **BREAK**: The CSS HDR spec now defines the polar spaces such as JzCzhz `color()` with hue channels that support
Expand Down
2 changes: 1 addition & 1 deletion docs/src/markdown/demos/3d_models.html
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ <h1>ColorAide Color Space Models</h1>
let colorSpaces = null
let colorGamuts = null
let lastModel = null
let package = 'coloraide-3.0-py3-none-any.whl'
let package = 'coloraide-3.0.1-py3-none-any.whl'
const defaultSpace = 'lab'
const defaultGamut = 'srgb'
const exceptions = new Set(['hwb', 'ryb', 'ryb-biased'])
Expand Down
2 changes: 1 addition & 1 deletion docs/src/markdown/demos/colorpicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ <h1>ColorAide Color Picker</h1>
let pyodide = null
let webspace = ''
let initial = 'oklab(0.69 0.13 -0.1 / 0.85)'
let package = 'coloraide-3.0-py3-none-any.whl'
let package = 'coloraide-3.0.1-py3-none-any.whl'

const base = `${window.location.origin}/${window.location.pathname.split('/')[1]}/playground/`
package = base + package
Expand Down
2 changes: 1 addition & 1 deletion docs/src/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ extra_css:
- assets/coloraide-extras/extra.css
extra_javascript:
- https://unpkg.com/mermaid@10.6.1/dist/mermaid.min.js
- playground-config-ec9e7aa7.js
- playground-config-c62f9f9b.js
- https://cdn.jsdelivr.net/pyodide/v0.24.1/full/pyodide.js
- assets/coloraide-extras/extra-notebook.js

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var colorNotebook = {
"playgroundWheels": ['Pygments-2.16.1-py3-none-any.whl', 'coloraide-3.0-py3-none-any.whl'],
"notebookWheels": ['pyyaml', 'Markdown-3.5.1-py3-none-any.whl', 'pymdown_extensions-10.5-py3-none-any.whl', 'Pygments-2.16.1-py3-none-any.whl', 'coloraide-3.0-py3-none-any.whl'],
"playgroundWheels": ['Pygments-2.16.1-py3-none-any.whl', 'coloraide-3.0.1-py3-none-any.whl'],
"notebookWheels": ['pyyaml', 'Markdown-3.5.1-py3-none-any.whl', 'pymdown_extensions-10.5-py3-none-any.whl', 'Pygments-2.16.1-py3-none-any.whl', 'coloraide-3.0.1-py3-none-any.whl'],
"defaultPlayground": "import coloraide\ncoloraide.__version__\nColor('red')"
}

0 comments on commit 920313a

Please sign in to comment.