Get cultural meanings from all around the world. Based on the excellent work of David McCandless.
var ColoursInCulture = require("colours-in-culture");
var result = ColoursInCulture.getCultureColorFeelings("#7c7b7a", "japanese");
console.log(result);
/**
* Outputs :
*
* {
* closestColor: {
* hex: "#7c7b7a",
* name: "grey"
* },
* cultureFeelings: [
* "staid,
* "intelligence",
* "reliability",
* "old age",
* "conservative",
* "modesty"
* ]
* }
*/
- API
- .getColorList
- .getClosestColor
- .searchByColor
- .getCultureList
- .searchByCulture
- .getConceptList
- .searchByConcept
- .getDominantColorByConcept
- OR
- get("color")
- search("color", "blue")
- getClosestColor("#000")
- getDominantColorByConcept("culture")
Return list of all colors in database
Sorted by count of associated concepts in all cultures
api.getColorList() -> ["color"]
// Example
// api.getColorList() = ["blue", "red", "green", ...];
Return closest color found in database from a given hex
Sorted by count of associated concepts in all cultures
api.getClosestColor("hex") -> "color"
// Example
// api.getClosestColor("mourning") = [{"westernAmerican": ["blue", "red"]}];
Return list of cultures and their associated concepts
Sorted by count of associated concepts in all cultures
api.searchByColor("color") -> [{"culture": ["concept"]}];
// Example
// api.searchByColor("blue") = [{"westernAmerican": ["mourning", "glory"]}];
Return list of all cultures in database
Sorted by count of associated concepts for all colors
// sort by : nombre de concepts associés toutes cultures confondues
api.getCultureList() -> ["culture"]
// Example
// api.getCultureList() = ["westernAmerican", "asian"];
Return list of colors and their associated concepts
Sorted by count of associated concepts for all colors
api.searchByCulture("culture") -> [{"color": ["concept"]} | null
// Example
// api.searchByColor("westernAmerican") = [{"blue": ["mourning", "glory"]}];
Return list of all concepts in database
Sorted by count of associated colors for all cultures
api.getConceptList() -> ["concept"]
// Example
// api.getConceptList() = ["love", "passion"]
Return list of cultures and their associated colors
Sorted by count of associated concepts for all colors
api.searchByCulture("concept") -> [{"culture": ["color"]} | null
// Example
// api.searchByColor("mourning") = [{"westernAmerican": ["blue", "red"]}];
Return Color that is massively associated to a given concept
api.getDominantColorByConcept("concept") -> "color" | null
// Example
// api.getDominantColorByConcept("mourning") = [{"westernAmerican": ["blue", "red"]}];
- The original image
- The original data sheet
- Pantone: Communicating With Colour
- John Gage: Color and Meaning: Art, Science, and Symbolism
- ColorMatters
- BrandCurve
- About
Feel free to send me an e-mail or submit a pull request. To be validated, please consider adding some sources to your additionnal informations.
Released under the MIT License