7 ms·
Show HN: Experimental “Text-To-Color” engine I wrote for fun
- onion2k 11y agoI typed "Cerulean" (a shade of blue) and didn't get anything.
- TheBerkin 11y agoI've never heard that word before in my life. Will add!
- comboy 11y agoYou could try to automate, get some images from a search engine for given phrase and try to average the color. I would probably do an average and then for each image cut off say 20% colors that are most away from the average, and then average that.
- TheBerkin 11y agoThat's a cool idea, though I don't know any search engine APIs that don't have a ton of restrictions on them. Google used to have a wonderful image search API, but it's either deprecated/discontinued by now. I'll keep looking around, though.
- cobalt 11y agoheres a decent list: https://msdn.microsoft.com/en-us/library/system.drawing.color%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 https://msdn.microsoft.com/en-us/library/system.drawing.colo... (other than R, G, B, A)
- deleted 11y ago[deleted]
- batrat 11y agoAlso no burgundy, blonde and many more.
- tychuz 11y agoTyped azure, got no result either.
- TheBerkin 11y agoAdded.
- redwall_hp 11y agoI tried puce, mauve, aqua and got nothing for them.
- Yver 11y agoI expected something that would extract a color off Google Images in the background.
- TheBerkin 11y agoThat was the plan at first, but I wanted even oddly specific requests to return something somewhat reasonable, so I went with a word analysis method that associates certain words with filters that are added from right to left. Not nearly as neat or all-encompassing as something like what you describe, but it does allow me a bit more control over how different words affect the output.
- motyar 11y agoCheck a very simple one http://output.jsbin.com/vufetemozi http://output.jsbin.com/vufetemozi
- Aardwolf 11y agoWould be cool to support other spoken languages too, or otherwise if it doesn't recognize a word, take the nearest word it knows :)
- TheBerkin 11y agoGreat idea. I only speak English and (some) German, but I'll see what I can do to accommodate color names in other popular languages.
- syllogism 11y agoA quick idea to improve coverage using word vectors, with my NLP library spaCy ( http://spacy.io http://spacy.io ): https://gist.github.com/honnibal/664cf54cb30c48c0c977 https://gist.github.com/honnibal/664cf54cb30c48c0c977 Example output: aquamarine umber turquoise red-orange coppery malachite ochre russet blue-violet fuchsia butterscotch lilac tortoiseshell mother-of-pearl I thought it'd be fun to see whether I could get the shade of the color from the vectors, but so far no luck. Probably vectors trained for image captioning would work, though.
- tux21b 11y ago"evil minions" are not yellow. Did you know that? :D
- Gys 11y agoOr you could try to relate text to emotion and then the emotion to color. If speech to text is more evolving this project could constantly display a color to express the emotion of people. Very expressive and cool, I think. Needs some research, yes :-) But I am pretty sure that if you crack this, its something you can make good money from.
- StringyBob 11y agoCould this use http://blog.xkcd.com/2010/05/03/color-survey-results/ http://blog.xkcd.com/2010/05/03/color-survey-results/ as a dataset to turn text-to-color?
- TheBerkin 11y agoThis was actually the inspiration for the project.
- buro9 11y agoI tried vermilion and got nothing, so googled to check my spelling was correct and came across Wikipedia colour descriptions: https://en.wikipedia.org/wiki/Vermilion https://en.wikipedia.org/wiki/Vermilion You might wish to make the corpus self-expanding, and for a given word do Wikipedia (or other source) lookups to see whether structured information on the colour exists. There are whole lists of colours on there: https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F Of course, it would require the addition of attribution for wherever you obtained the data. Oh, and welcome to subjectivity... battleship grey, it's changed over the years but the commonly accepted one is the WW2 era grey which featured a touch more blue and is RAL 7031 ( http://www.ralcolor.com/ http://www.ralcolor.com/ - which btw, is another source ). PS: And it doesn't know the difference between blood and dried blood.
- TheBerkin 11y agoThanks, this is really helpful. Looks like I'll be adding a lot of new filters. It's not just a simple color mixer; it's actually a "filter compositing engine". I write rules for each keyword by hand, currently. It gives me more control over how different words affect the final color. (I'll add a rule for dried blood)
- kalleboo 11y ago> You might wish to make the corpus self-expanding, and for a given word do Wikipedia (or other source) lookups to see whether structured information on the colour exists. One interesting method would be to google image search the keyword, and see if the focus of the majority of the images (center of image maybe?) have the same color and pick that
- amelius 11y agoYou might also want to have a look at the file /etc/X11/rgb.txt
- gopowerranger 11y agoIt doesn't know chartreuse. Well, OK, but it doesn't know lime or lemon either.
- fit2rule 11y agoI tried my standard 'goto' for color tests: "baby shit". WTF, it worked?! Amazing.
- TheBerkin 11y agoThe modifiers are abundant. Also try the "dog", "alien", "old", "dark", and "rotten" varieties. That's just scratching the surface. Those modifiers work on any other base colors, as well. They even stack. Want "old dog shit"? I have just what you need.
- sakopov 11y agoI tried shit and it worked. Tried baby shit expecting same color and it was different. I like attention to detail here :)
- petercooper 11y agoApologies if this causes any offence, but I was intrigued to find "semen" and "jizz" result in two different colors. I suspect investigating similar differences would be a way to reverse engineer the technique.
- puredemo 11y agoNo taupe? No periwinkle? Teal isn't teal? Pls.
- jbrooksuk 11y agoBeige doesn't work.
- iamthepieman 11y agodidn't get chartreuse, tangerine or rust
- yusufu 11y agoAt least poo works.
- design 11y agoI have a similar engine up at http://joelcalifa.com/colors http://joelcalifa.com/colors Mine can also do colors like "banana" or "bubblegum". Pretty simple to put together actually. Rather than manually putting together a list of colors, I just use the ColourLovers API. You can also use up and down arrows to move between results or the return key to "make a poem," which I fully agree was a weird feature to add.
- GnarfGnarf 11y agoStill can't handle "ochre".
- sinaa 11y agoWould be great if you could add an auto-complete on the supported keywords. This way the user could explore and not get disappointed if his/her keywords aren't supported.
- hendekagon 11y ago"the complement of red" - red
- chanux 11y agoShameless plug: Nothing like this but something I made that spews colors according to text. You can play with it for 12 seconds and forget it :) https://github.com/chanux/summershades https://github.com/chanux/summershades
- Bill_Dimm 11y agoNeat. It would be helpful if you could go in the opposite direction (enter RGB values and get the name of the closest color). I find that when I'm making a chart or graph and I cook up some color in GIMP, I don't know how to refer to that color in the text of the document that references the chart.
- magic_beans 11y agoChartreuse isn't there...
- jordank 11y agoCool idea. Tried Crimson and Sage but didn't see results
- sakopov 11y agoTried "shit" and got exactly the color I expected lmao. Cool project.
- svram 11y agonice, maybe users can submit a word, say "fucked up" and a related color value to add to your database