END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. March 29, 2024, 09:12:27 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: All rgb colors arranged  (Read 1860 times)
0 Members and 1 Guest are viewing this topic.
Mircode
Alien
***
Posts: 37


« on: March 30, 2011, 07:56:03 PM »

Hi!

I always wanted to have a nice reference picture that contains all colors.

The first idea that comes to mind is slicing the rgb cube and tiling the squares together. One example looks like this:


4096x4096: http://dl.dropbox.com/u/11704339/testbilder/rgb_standard.png

But it is pretty boring and does not look like it contains every color to the eye. It seems to me like yellow and gray is missing.
Compare it to this:



This does not contain every color and I did not create it. But it looks much more colorful to me.

Now my idea was, to arrange all colors on a line:
Start with rgb=0x000000 and increase it up to rgb=0xFFFFFF.
Now arrange that line on a level 12 Hilbert curve.



The result looks like this:


4096x4096: http://dl.dropbox.com/u/11704339/testbilder/rgb_hilbert.png

Much more interesting. But still, it looks like it is made of even less colors than the first pic.

And now sit down and grab on to something:
I went through the rgb cube on a 3D Hilbert curve...



and arranged it on a 2D Hilbert curve.
The result looks like this:


4096x4096: http://dl.dropbox.com/u/11704339/testbilder/rgb_superhilbert.png

I think, this looks very interesting and colorful.

And what did I find while I was googling for some Hilbert curve pix to show in this post? It has been done before. Of course.
http://corte.si/posts/code/hilbert/portrait/index.html
http://allrgb.com/hilbert-curve

Still, I think creating a picture that contains all colors (once) and also looks like it contains all colors is a nice challange.
The clou would be to find a picture that is smooth without hard transitions.

I hope I encouraged some people to post their ideas smiley

EDIT: Sometimes life sucks. http://allrgb.com/

Cheers!

« Last Edit: March 30, 2011, 08:18:29 PM by Mircode » Logged
Fractal Ken
Fractal Lover
**
Posts: 246


Proud to be 2D


« Reply #1 on: March 30, 2011, 09:25:18 PM »

Mircode, your color display is a very nice idea, even though it's been done already. Thanks for the link to allrgb.com. I really like the Mandelbrot pic there.
Logged

Fortran will rise again
msltoe
Iterator
*
Posts: 187


« Reply #2 on: March 31, 2011, 12:58:29 AM »

Mircode: Don't despair that you were preceded by two other people, the internet does that. There's a lot of bright minds freely sharing their ideas. One of the two pre-discoverers is a Google company employee. To parallel discover this, you have impressive "company", so to speak.

It looks like the image needs a few orientations to maximize similarity between edges of the squares. Also, another idea comes to mind is self organizing maps where similar pixels group together on the 2D image.

-mike
Logged
cKleinhuis
Administrator
Fractal Senior
*******
Posts: 7044


formerly known as 'Trifox'


WWW
« Reply #3 on: March 31, 2011, 01:27:21 AM »

and this image contains exactly 16,8 millions of different colors ?
i mean is a 12 iteration hilbert curve sufficent to hit each of the 8bit colors ?
havent thought about it before what iteration depth would fit that...
Logged

---

divide and conquer - iterate and rule - chaos is No random!
Mircode
Alien
***
Posts: 37


« Reply #4 on: March 31, 2011, 09:53:25 AM »

Hihi, no need to cheer me up tongue stuck out I am not really moping.

To msltoe:
I will try some reorientations. I think 24 different are possible in general but some of them should look equal due to symmetry. And what could be even more interesting: Rotating not only by 90° but also different angles and still getting all colors with some modulo operations (except there will be rounding errors so some colors will be there twice and some will miss).

EDIT: 48 should be possible. In contrast to a real dice, a theoretical one can be flipped wink

To cKleinhuis:
One color channel has 2^8 colors. So with three channels there are (2^8)^3=2^24 colors. The nth iteration of the 2D Hilbert curve covers (2^n)^2 points, for 3D (2^n)^3. So for 2D n has to be 12 and for 3D it has to be 8. This results in a 4096x4096px image.
« Last Edit: March 31, 2011, 09:59:24 AM by Mircode » Logged
makc
Strange Attractor
***
Posts: 272



« Reply #5 on: April 01, 2011, 01:54:32 PM »

deja vu
Logged
makc
Strange Attractor
***
Posts: 272



« Reply #6 on: April 01, 2011, 01:58:44 PM »

any way that guy also has an idea to use hilbert-ordered colors for sorting viz, but what if we use it as a palette for classic stuff like mandelbrot? who did that, or who will be 1st to try?
Logged
makc
Strange Attractor
***
Posts: 272



« Reply #7 on: April 01, 2011, 01:59:48 PM »

Mircode, your color display is a very nice idea, even though it's been done already. Thanks for the link to allrgb.com. I really like the Mandelbrot pic there.
FFFUUUUU....
Logged
Mircode
Alien
***
Posts: 37


« Reply #8 on: April 03, 2011, 09:00:52 PM »


I made a new picture. Same idea as the Hilbert thing, just another curve.

For the 2D path I took the H-order curve which I found here:
http://www.win.tue.nl/~hermanh/stack/dagstuhl08-talk.pdf

it looks like this:


And for the rgb cube I tried to recreate the principle of the curve in three dimensions, which looks like this:


Aaaand the result:

Logged
Mircode
Alien
***
Posts: 37


« Reply #9 on: April 03, 2011, 09:20:33 PM »

And here is a video of what happens if you vary the beginning of the 3d curve along... the curve.
<a href="http://www.youtube.com/v/EFKpDoZhn2U&rel=1&fs=1&hd=1" target="_blank">http://www.youtube.com/v/EFKpDoZhn2U&rel=1&fs=1&hd=1</a>
Logged
msltoe
Iterator
*
Posts: 187


« Reply #10 on: April 04, 2011, 02:12:30 AM »

Mircode,
This curve works better. The "mural" could easily be considered modern art. There is a Gestalt mixture of diamonds, triangles, squares.
There are methods for optimizing the position of colors to minimize the distance between neighbors, but this is more aesthetically pleasing.
-mike
Logged
makc
Strange Attractor
***
Posts: 272



« Reply #11 on: April 28, 2011, 10:34:51 PM »

I tried to involve more people into the game, but noone replied sad FWIW here are my stubs:



Amazing thing about all these images is that they all are composed out of same pixels yet look so different color-wise.
Logged
fractalmind
Forums Freshman
**
Posts: 13


« Reply #12 on: April 29, 2011, 07:19:28 AM »

Color contains all the information. Pixels are just building blocks.

What fascinates me about fractals is that when certain formulas and narrow parameters are  selected information is created out of chaos or "empty" ground state.  For example when you zoom out enough out of the mandelbrot set then there is just void.

Mandelbrot set is not chaotic structure. It is highly deterministic but also highly unpredictable. It seems to get more interesting and complicated when you zoom deeper and deeper (and also when the program becomes annoyingly slower and slower no matter how fast computer you have got).
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Newbie: How to map colors in the Mandelbrot set? Programming « 1 2 » iev 23 39242 Last post February 20, 2008, 02:23:55 AM
by Duncan C
Not so impressive video..but why so few colors? Videos mrrgu 5 2122 Last post January 09, 2010, 12:45:21 AM
by mrrgu
Lively Colors FractalForums.com Banner Logos Fractal Ken 0 2157 Last post February 02, 2011, 05:03:53 AM
by Fractal Ken
Guardian of forbidden colors Mandelbulb3D Gallery KRAFTWERK 0 766 Last post September 01, 2011, 06:55:34 AM
by KRAFTWERK
Big Render bug - wrong colors Mandelbulb 3d mondaymorninglunatic 14 2923 Last post September 10, 2011, 10:48:09 AM
by mondaymorninglunatic

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.259 seconds with 23 queries. (Pretty URLs adds 0.008s, 2q)