4 ms·
Server seems unavailable :( There was a challenge a friend of mine and I had a while back: take an image, and represent the entire RGB colorspace within that i
by blhack 13y ago
Server seems unavailable :(
There was a challenge a friend of mine and I had a while back: take an image, and represent the entire RGB colorspace within that image, without reusing any colors.
It was a REALLY fun challenge, and I encourage everybody to try it as well.
The way that I ended up winning (ha) was to represent the RGB colorspace as a 3D array, and then unravel that 3D array into a 1D skip-list.
The script read the pixel value at (n,n) of the image, "decide" where this would exist if RGB was unraveled into 1D, go that that spot, and then either set the color in the "new" image (if that color was unused) the value in the array, or read the "skip" destination: the place where the closest unused color was located.
I believe this was the site that inspired us: http://allrgb.com http://allrgb.com
- devindotcom 13y agoYep, I posted this link downstream a little bit ago. The processes different people use are interesting. What's fun is that we are so tuned to color differences that a slight change in the algorithm — what color it "resorts to" if the desired one is used — might produce a small absolute difference (distance-wise on the table) but a massive perceptual difference, or create a much greater effect far down the line when greens were exhausted early or unused bright reds are speckling a neutral zone. Certainly an interesting exercise!