├── LICENSE ├── README.md ├── colors.html ├── index.html └── rhill-voronoi-core.min.js /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2022 Anthony Lieuallen 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | See it at https://arantius.github.io/web-color-wheel/ 2 | -------------------------------------------------------------------------------- /colors.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |This "color wheel" arrangement is a compact and visual way to represent a whole range of colors. I was reminded of the named/web colors by a recent Hacker News comment thread, and thought again of arranging them into a color wheel.
361 |So here it is: a color wheel, with only "web colors" on it. Each color is placed on the wheel, then grown to a polygon to fill the wheel with a Voronoi diagram.
362 |Hover colors to see their name (plus extra preview color swatch and hex code). Click one to "lock" it. The idea is when picking colors for a design, choose visually here from these few (139 distinct) colors, rather than trying to choose from the millions that are actually available. And you can refer to them by name in your CSS!
363 |The arrangement of the wheel has been tweaked from a pure HSV interpretation, to make sure all names have a distinct location. List of colors from Mozilla documentation.
364 |0){if(a>e){return false}if(a>f){f=a
93 | }}}c=i.xr-b;if(k===0&&c<0){return false}a=c/k;if(k<0){if(a>e){return false}if(a>f){f=a}}else{if(k>0){if(a