Comments (2)
Maybe color(lab 44.36 36.05 -58.99)
is a typo? I always find the CSS spec frustrating as there are always ambiguous things.
I'm curious if you were to use color(lab 1 36.05 -58.99)
would it be lab(100% 36.05 -58.99)
? If so, is 36.05
for a
treated like 100 * 36.05
(which seems wrong)? Or are numbers treated as numbers and only percents get scaled (so a one way conversion)?
I guess to explain it better, 100% will always translate to a float between 0 - 1. But numbers are treated as absolute. When dealing with Lab, whose channel's a
and b
can be between +/-160 (technically can exceed that) 100% doesn't actually translate well to the full range of the channel. So I imagine you wouldn't normally want to use percent there, but are percent channels handled special? Lightness in Lab is clearly a percent, do you scale that to 0 - 1 and not a
and b
? Or do you still scale none in Lab to 0 - 1 and just not use percent in Lab?
from coloraide.
It seems we now have clarification. Percentage only channels will not translate to 0 - 1. So CIE Lab and friends will have 100% equal 100.
from coloraide.
Related Issues (20)
- CSS Hue handling for longer HOT 5
- Serialize alpha as percent HOT 1
- HSL and HWB non-legacy CSS (space format) do not need to be forced to percentage output HOT 1
- Typing deep matrices (tensors)
- Correct negative saturation in HSL HOT 2
- Channel clipping/mapping should be applied to the Gamut mapping space, not origin space HOT 1
- Don't artificially clamp chroma and lightness HOT 5
- Allow controlling the JND of gamut mapping HOT 1
- Tonal Palettes
- Add extended Oklab (if it becomes viable)
- Allow full degree syntax in `color()` functions HOT 1
- Add new GMA algorithm HOT 1
- Maybe make a general ray trace GMA that a user can feed in any LCH space HOT 6
- Should gamut mapping default to ray tracing GMA in the future?
- Should compositing gamut map colors before proceeding?
- Spaces like HCT should respond with their own achromatics
- Should we normalize spaces with viewing conditions? HOT 3
- Unable to convert colors? HOT 4
- How to confine manipulated colors to sRGB space HOT 2
- Improve monochromatic harmony
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coloraide.