1. colors & words, take three (digression)

    March 3, 2008 by pierre

    hello Jérôme, hello blog

    there is a game popular (= I stumbled across things like this on programming.reddit some times) among (some) programmers that consist of writing programs to find all the hexadecimal strings that are english words, “hexword”, #cafebabe, #deadbeef or using l337 spelling, #ba5eba11, #ca55e77e… you see the thing.

    One usual way of encoding color is by using hex triplets. All the words that you form using the technique described in the previous paragraph can be associated to a color, cf. http://members.shaw.ca/peanutgnome/hexwords/

    whex_colors.jpg


  2. another way to associate colors with words

    by pierre

    Description : http://nodebox.net/code/index.php/Prism

    Code: http://nodebox.net/code/index.php/Colors

    “The colors algorithm matches a color palette to any given subject. [...] Prism has no fixed database of words linked to colors, but rather uses the internet as its data mine. It builds on Google (using the NodeBox code package with the same name) and regards the internet as an infinite database of fuzzy and subjective knowledge, filled with information that is very hard to grasp for any computer algorithm. Prism doesn’t actually understand what it’s doing when it cross- indexes green to apple on the internet – again, these are just words. Rather, it puts its trust in the collective effort of millions of people around the world all filling the internet with data. It is my assumption that any large or infinite system of data tends to evolve to natural order and entropy. Bluntly stated: there will likely be more webpage texts on the internet that contain the words green and apple close together, than there will be webpages with the words pink and apple close together. Therefore, humans most likely think of apples being green. Therefore, Prism assumes that apples must be green. [...] A second problem Prism tackles is the question of exactly what shade of a color to apply. There is dark green, and there is light green. For this, Prism has a language to HSB library called Shades that matches formal parameters like dark and bright to hue/ saturation/brightness color values.”

    By the creators of NodeBox, Tom De Smedt and Frederik De Bleser