
Yesterday, I added a first letter filter to my Many Colors Website. https://stubbart.com/computer_consulting/color_themes/color_all.html
Easy enough, right? Just provide a drop-down box of each letter. Then, see if the first letter of the color name matches. Zip! Done!
Last night while I was sleeping, my mind reminded me that some of these colors have multiple names. That's the way they are in the Palettes. For instance there's a color that's called both Storm and Rhino within the same Palette.
The colors with all there info are stored in a 2D Array. So, I added four more columns for other first letters. I just guessed at 4 as a maximum number, that seemed to work for other color attributes. And, it worked.
So, I manually went through and added those letters. Sure, I could have copied the array to another script and checked for all capital letters in a name and then output that. But, this is vanilla javascript - I/O is limited at best. Still, I could have copied it to Excel and Word to do that, perhaps employ some VBA.
Anyway, it's only 1000 colors. It would take me as long to do that s it would to go through it manually.
It's a good thing I did this manually. GarbanzoBean Yellow. To me, GarbanzoBean is one word. I don't really want to add this to the B's. If you're looking Bean colors, you can filter on Food. Or you can do Control+F and find Bean. Also, I enclose some color names in s to add tips (s). So, the first letter is not first. This got to be something that needed some human intuition / judgment. Yes, I want to help people find color names. I don't want to return inappropriate results.
Color your World Many and Various!
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)