30 lines
No EOL
672 B
JavaScript
30 lines
No EOL
672 B
JavaScript
// colour names drawn from https://simple.wikipedia.org/wiki/Colour
|
|
|
|
const colours = `
|
|
red: #FE2712: 1
|
|
orange: #FF7F00: 1
|
|
yellow: #FEFE33: 1
|
|
green: #008000: 1
|
|
blue: #0247FE: 1
|
|
cyan: #00ffff: 2
|
|
purple: #A020F0: 2
|
|
white: #ffffff: 1
|
|
black: #000000: 1
|
|
brown: #964B00: 2
|
|
magenta: #ff00ff: 2
|
|
tan: #D2B48C: 3
|
|
olive: #808000: 3
|
|
maroon: #800000: 3
|
|
navy: #000080: 3
|
|
aquamarine: #7FFFD4: 4
|
|
turquoise: #40e0d0: 4
|
|
silver: #C0C0C0: 4
|
|
lime: #BFFF00: 4
|
|
teal: #008080: 4
|
|
indigo: #4b0082: 4
|
|
violet: #8601AF: 2
|
|
pink: #FF69B4: 1
|
|
grey: #808080: 2
|
|
`.trim().split('\n').map(l=>{const [name, hex, weight] = l.split(': '); return {name, hex, weight: parseFloat(weight)}});
|
|
|
|
export default colours; |