10 ms·
All RGB colors in one image
- GuiA 13y agoThe SE thread linked in the post is really worth the read: http://codegolf.stackexchange.com/questions/22144/images-with-all-colors http://codegolf.stackexchange.com/questions/22144/images-wit...
- nwh 13y agoSite is 508'ing. Here's a partial mirror. http://archive.is/nZwxl http://archive.is/nZwxl Embedded youtube video: https://www.youtube.com/watch?v=OuvFsB4SLhA https://www.youtube.com/watch?v=OuvFsB4SLhA
- pipeep 13y agoI was able to get it to load, and pull it down. Here's a temporary mirror on my own webserver: http://b.enjam.info/rgb http://b.enjam.info/rgb
- devindotcom 13y agoThere's actually a community of all-RGB pic creators: http://allrgb.com/ http://allrgb.com/
- nwh 13y agoThis is one of the most bizarre things I've seen in a long time.
- vezzy-fnord 13y agoVery psychedelic, I'd say.
- Edmond 13y agohaha..years ago when I used to do Win32/MFC development I was in the habit of writing code that painted random pixel colors on my windows desktop...you get the psychedelic effect if you don't do bit-block transfers but paint directly to the screen...it was always a fun time wasting activity.
- 7schlaefer 13y agoI sometimes like to violate the browser canvas element in my spare time: Chromium Version: http://webspekt.de/paintgen-client http://webspekt.de/paintgen-client node.js Version: http://webspekt.de/paintgen-server http://webspekt.de/paintgen-server My Server is pretty bad, so when in doubt, don't click.
- userbinator 13y agoBizarre and very interesting. A lot of those look like an extreme version of dithering.
- blt 13y agoWould be cool to re-apply all the algorithms to HSV space and see what comes out.
- jacobolus 13y agoHSV is just a straight-forward transformation of RGB https://en.wikipedia.org/wiki/File:Hsl-and-hsv.svg https://en.wikipedia.org/wiki/File:Hsl-and-hsv.svg The set of “all colors” is exactly the same. (Note, HSL/HSV are not suitable representations for almost any purpose, especially not for human user interfaces; it’s a tragedy that they are in such wide use.)
- TylerE 13y agoWhjy do you say that? I find them much more intuitive. For example, getting actually brown browns with RGB is tricky...with HSV it's trivial.
- nitrogen 13y agoA rule of thumb if you have to find brown in RGB: use a bit of red, slightly less green, then a tiny bit of blue.
- andrewflnr 13y agoThat kind of proves the point. How many of those rules of thumb are you going to have to formulate to express in RGB what's trivial to find in HSV?
- nitrogen 13y agoUnfortunately I've already formulated them after working so much with RGB in low-level graphics code, pre-hsv() CSS, and some image editing software. Actually, that sounds kind of like a fun challenge game: name a color, then try to guess RGB values for that color.
- shocks 13y agoEek, looks like this one is crumbling under our load too!
- ivanca 13y agoGod dammit! We kill every site we stumble upon; maybe there should be a delay to show links/comments based on time-zones, that way we don't DDOS any site by mistake.
- roryokane 13y agoThis solution proposed by jcs would work: https://lobste.rs/s/g0nxrf/we_have_the_ability_to_cache_and_display_story_text_should_we/comments/jomkmf https://lobste.rs/s/g0nxrf/we_have_the_ability_to_cache_and_.... (He’s not talking about HN, but it would work equally well for HN.) The idea is to use the free CoralCDN (http://www.coralcdn.org/ http://www.coralcdn.org/). HN could solve site-killing by prefetching every link with CoralCDN, so that the CDN would cache a version of the page. Then, if HN detects that a site (e.g. http://allrgb.com/ http://allrgb.com/) is down, it would link to the Coral version (e.g. http://allrgb.com.nyud.net/ http://allrgb.com.nyud.net/) until it’s up again. Or alternatively, instead of detecting when sites are down, it could show a control to replace any given link with the CoralCDN version and ask the user to toggle it if the link doesn’t work at first.
- shocks 13y agoVery cool suggestion!
- antihero 13y agoWould a really simple way to do this be to make a 4096x4096 square image, with 0,0,0 at the top left and 255,255,255 at the bottom right, then just go along from left to right incrementing by one (in base-256, essentially)?
- recursify 13y agoI'm getting a 508 error... But somewhat related, and I think was on HN at some point: http://corte.si/%2Fposts/code/hilbert/portrait/index.html http://corte.si/%2Fposts/code/hilbert/portrait/index.html
- gabipurcaru 13y agoIt's very interesting how our eyes and brain processes colors differently -- for example, I see a lot of green and blue, but less red (though this is probably due to having a mild case of Protanomaly I suppose).
- dfc 13y agoYou think the fact that you see less red is probably due to having a genetic defect that results in poor red–green hue discrimination?
- ars 13y agoSuch an image is smaller than you might think. Uncompressed it's 50.33MB. It's time to move to 48 bit images.
- hrayr 13y agoHow well will it compress if every pixel in the image is used only once and is different?
- brigade 13y agoPretty well if it's a regular layout, depending on algorithm, since almost every successive pixel is different from the last by exactly one level in one channel.
- mutagen 13y agoSounds like another fun bit of code golf if some of the more aggressive compression algorithms aren't already picking up on the bit level changes (I believe they do).
- dfbrown 13y agowith PNG it's 59kb: https://upload.wikimedia.org/wikipedia/commons/c/c4/All_24-bit_RGB_colors.png https://upload.wikimedia.org/wikipedia/commons/c/c4/All_24-b...
- shultays 13y agoYou can use the program that generated the image as a "decompresser". Only 100kb but takes 4 days!
- blhack 13y agoServer 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!
- 80 13y agoWhile the site's down, here's all the RGB colors in one book: http://i.imgur.com/kae66HY.jpg http://i.imgur.com/kae66HY.jpg ('RGB Colorspace Atlas' by Tauba Auerbach)
- moon_princess 13y agoyou actually can depict all colors in a gif, you just have to redefine the palette for sub-images a lot.
- lelandbatey 13y agoMan, that video was really cool! I wish the author had released the source code for this though, I'd love to know how this was made.
- seanalltogether 13y agoThe source code was posted here. http://code.google.com/p/joco-tools/source/browse/RGBGenerator http://code.google.com/p/joco-tools/source/browse/RGBGenerat...
- lelandbatey 13y agoOh, awesome, thank you for posting the link! I missed it because I didn't look past the "TODO"... Whoops.
- jonomw 13y agoServer seems to be down but found the Google cached version: http://webcache.googleusercontent.com/search?q=cache:ghZGR0R_23sJ:joco.name/2014/03/02/all-rgb-colors-in-one-image/+&cd=1&hl=en&ct=clnk&gl=us http://webcache.googleusercontent.com/search?q=cache:ghZGR0R...
- headShrinker 13y agoSome of these images in their most basic form are strikingly beautiful. It reminds me of some algorithmic art Joshua Davis produces. ( http://www.joshuadavis.com http://www.joshuadavis.com ) The OP might consider a more art based context with a potential for high priced prints and gallery showings.
- userbinator 13y agoReminds me of some of the art in demoscene productions too. Since each image containing all RGB colours is just a different permutation of the same pixels, it might make for an interesting effect to animate pixel-swapping to transform one into another. Unfortunately at present there's no single monitor that can show all the pixels of a 4096x4096 image individually...
- hk__2 13y agoI’m wondering how much of the visible color space is represented here. 100%? 80% 50%?
- ars 13y ago35.9% - look up sRGB for more info. (!00% of what a monitor can do, but 35.9% of what the human eye can see - especially greens are lacking.) Have a look: http://www.skytopia.com/project/illusion/2illusion.html http://www.skytopia.com/project/illusion/2illusion.html
- BrandonY 13y agoI remember being in a computer vision class some years ago where the professor was explaining to us how RGB fails to capture a wide range of colors. I was annoyed that his presentation didn't show any examples of these other colors, and then I realized how I was an idiot.
- bcoates 13y agoIf your school had invested in compatible projectors, he could have just installed the plugin: http://www.negativland.com/archives/015squant/plugin.html http://www.negativland.com/archives/015squant/plugin.html
- vacri 13y agoA professor can provide materials beyond that displayable on a computer screen.
- foolrush 13y agoAlmost on. Given that the RGB image is likely not tagged with colorspace information, the colors represented are a direct byproduct of the primaries of whatever display you view them on. That is, if your display happened to have the original CIE RGB color primaries, the 3D volume of colors would cover a greater volume. Of course, this too ignores the "stepping" between colors (bit depth) and also ignores the wider luminance gamut that a standard observer is capable of seeing. So the slightly more accurate answer to the original question is "Depends on what the primaries are of your display. Typically this is roughly sRGB, but if you are on a wide gamut display or projector, it will be larger."
- leberwurstsaft 13y agoThere's this iOS app that generates very similar images, but with some interactivity. https://itunes.apple.com/app/rgb-petri/id423126001?mt=8 https://itunes.apple.com/app/rgb-petri/id423126001?mt=8
- gavanwoolery 13y agoLooks the OP used Diffusion Limited Aggregation (DLA)?
- antihero 13y agoIf we could make this as a square, could we not create transforms to perfectly replicate any filter e.g Instagram, as a map of colours?
- jeremyawon 13y agothe growth process is similar to something i hit upon a while ago, although i wasn't trying to present all possible colors: https://vimeo.com/699396 https://vimeo.com/699396 implementing it was kind of my new language self challenge, so i ended up putting it in the appstore while learning objective-c: http://itunes.apple.com/us/app/rgb-petri/id423126001?mt=8&ls=1 http://itunes.apple.com/us/app/rgb-petri/id423126001?mt=8&ls...
- pattle 13y agoI was worried my head might explode with a colour overload, but in the end I was fine. Pretty cool though
- dlsym 13y agoYou might also like: http://www.reddit.com/r/glitch_art http://www.reddit.com/r/glitch_art