Skip to content

Instantly share code, notes, and snippets.

@Denubis
Last active September 30, 2021 00:42
Show Gist options
  • Select an option

  • Save Denubis/0841810c66c038a5962b1544ae63b7ec to your computer and use it in GitHub Desktop.

Select an option

Save Denubis/0841810c66c038a5962b1544ae63b7ec to your computer and use it in GitHub Desktop.
Sample colour-name definition
//thinking about this in terms of triples will probably be a better mapping than a spreadsheet. Just thinking out loud and avoiding FAIMS work, perhaps:
// colorname.io/iscc-nbs/1/4/brown:
{
"colorname-version": "1.0.0",
"colorname": {
"standard": "ISCC",
"standard issuer": "National Bureau of Standards, USA",
"license": "Public Domain",
"identifiers": [
{
"name": "ISCC-NBS Number",
"full rendering": "L1-4",
"components":[
"L1",
"4"
]
},
{
"name": "ISCC-NBS Designation",
"full rendering": "brown",
"abbreviated rendering": "Br",
"components": [
"brown"
]
}
]
},
"color type": "Approximate Centroid",
"numerical colorspaces":{
"xyY": {
"colorspace name": "xyY",
"colorspace issuer": "National Bureau of Standards, USA",
"colorspace abbreviation": "NBS xyY",
"colorspace type": "additive",
//I'm guessing?
"colorspace variables":{
"x": 0.4759,
"y": 0.3794,
"Y": 9.317
}
},
"sRGB": {
"colorspace name": "sRGB",
"colorspace type": "additive",
"colorspace variables":{
"R": 127,
"G": 72,
"B": 41
}
},
"web": {
"colorspace name": "html",
"colorspace type": "additive",
"colorspace variables":{
"hex":"#7F4829"
}
}
},
"relationships":{
"colorspace part of color": null,
"colorspace subcolors": [
"https://colorname.io/iscc-nbs/2/7/brown"
],
"synonym colors":[
"https://colorname.io/munsell/4YR"
],
"adjacent colours":{
"nearest":{
"positive hue": "https://colorname.io/munsell/5YR",
//this is wrong, but I'm not quite sure how this varies by axis
"negative hue": "https://colorname.io/munsell/3YR",
//this is wrong, but I'm not quite sure how this varies by axis
"positive saturation": "https://colorname.io/munsell/5YR",
//this is wrong, but I'm not quite sure how this varies by axis
"negative saturation": "https://colorname.io/munsell/3YR",
//this is wrong, but I'm not quite sure how this varies by axis
"positive luminosity": "https://colorname.io/munsell/5YR",
//this is wrong, but I'm not quite sure how this varies by axis
"negative luminosity": "https://colorname.io/munsell/3YR",
//this is wrong, but I'm not quite sure how this varies by axis
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment