colour
colour copied to clipboard
Implement support for "NCS" colour notation system.
References
- http://www.ncscolour.com/
I sent them an email to know if there are any papers supporting the conversion, we will see what they reply.
By the mean time I found the following implementation: http://jsfiddle.net/jdias/b3hEa/
I don't know if its correct though.
Here is another implementation: http://people.sc.fsu.edu/~jburkardt/f_src/colors/colors.html
Warning: Don't use the jsfiddle code linked above (http://jsfiddle.net/jdias/b3hEa/). It is WRONG.
There is no simple way to calculate HSV or RGB values from NCS color codes. NCS (Natural Color System) fits to the human perception of color. It is derived from a large number of color perception tests with human subjects.
Therefore the conversion to the (technical) RGB or HSV color codes is complicated and needs large conversion tables and/or subtle functions.
The best way is to use the conversion of the NCS authors, but you have to pay for it: http://www.ncscolour.com/en/design-architecture/work-digitally-with-ncs/ncs-navigator/
This article might be relevant: http://onlinelibrary.wiley.com/doi/10.1002/col.5080060303/abstract
There seems to be a few formulas in the blurred preview of the paper. That issue is not really a priority anyway for now I guess.
Relevant literature found by @bottosson:
- https://www.researchgate.net/publication/312218589_%27NCS_and_the_Hering_heritage_Colour_research_marketing_and_scientific_responsibility
- https://www.researchgate.net/publication/354403259_NCS_from_concept_to_research_and_applications_Part_1
- https://www.researchgate.net/publication/239083887_NCS_natural_color_systemFrom_concept_to_research_and_applications_Part_II
Thank you for the literature references. It is worthwhile for anyone who wants to dive in.
There has been work to transform NCS to the CIELAB color system, from where you can go to RGB or other color representations. But as the abstract says "The data show that no simple relationship exists between the NCS and CIELAB systems."
"Transformation of NCS data into CIELAB colour space" https://onlinelibrary.wiley.com/doi/epdf/10.1002/col.5080110211
The paper is available online, but you have to pay for it or access it thru an universities library.