Comments (3)
I'm not keen on the details of this specific conversion method which you have presented, but I was under the impression that translation from RGB to CMYK was in general not a good idea—or at the very least, not so simple. The reason for this being that the total spectrum of color represented in each space is not the same. In other words, there are colors which may be represented with RGB, but which cannot be represented with CMYK—and vice versa. The simplicity of the function above suggests that this consideration has not been taken into account, or that the results may be skewed, or that the results may be otherwise incorrect. It seems like there must be some case where the result would have to be undefined, or an exception would need to be raised.
For now, I don't think I am confident enough to implement such a conversion strategy to a degree of quality which would be satisfactory.
I'm happy to hear more thoughts on this, however—maybe I'm wrong.
from paleta.
@jordanstephens this can probably be closed.
from paleta.
Cool, I will close this for now.
from paleta.
Related Issues (10)
- Is this gem maintained? HOT 4
- generating a palette sometimes creates invalid negative numbers for lightness HOT 3
- Support three character hex codes HOT 3
- You must install RMagick to use Palette.generate(:from => :image, ...) HOT 2
- NoMethodError: private method `fit' called for #<Paleta::Palette:0x007febcd8215e8> HOT 7
- Handle optional RMagick dependency more gracefully HOT 3
- rmagick_available? HOT 1
- Similarity doesn't work properly HOT 1
- RGB colors does not seem right HOT 2
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 paleta.