Logo by rathinagiri - Contribute your own Logo!

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. April 20, 2024, 12:15:03 PM


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: falling asleep  (Read 606 times)
0 Members and 1 Guest are viewing this topic.
yv3
Conqueror
*******
Posts: 149



WWW
« on: October 09, 2011, 12:11:49 AM »




This is my personal approach to implement the Collatz conjecture into a julia fractal wink.

Code:
	
void yFractal::GetFractalColor66()
{
static double x, y, prev_x, prev_y;
static int n, i;

x=m_StartX;
y=m_StartY;

for(n=0; n<m_Iterations; n++)
{
prev_x=x;
prev_y=y;

x=(prev_x*prev_x) - (prev_y*prev_y) - m_CustomRange4;
y=(2.0 * prev_x * prev_y)           + m_CustomRange2;

i=int(prev_x/prev_y);

if(i%2==0)
{
if(m_CustomRange2!=0.0)
{
x=x/1.4;
y=y/1.4;
}
}
else
{
x*=m_CustomRange3;
x+=m_CustomRange1;
y*=m_CustomRange3;
y+=m_CustomRange1;
}

if( ((x*x)+(y*y)) >= m_Magnitude )
{
m_C=int( float(n) * m_ColorPerIteration ); // Return color index from range 0 to (m_NumColors-1)
return;
}
}

m_C=0;
}

Made with yFract.
Logged

Creator of yFract
eloop001
Guest
« Reply #1 on: October 09, 2011, 12:53:50 PM »

It looks like ice crystals on a window.
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
A Stone is falling, falling... Mandelbulb3D Gallery popol4444 0 680 Last post January 14, 2011, 10:01:48 AM
by popol4444
Falling Grace in Golden Years Images Showcase (Rate My Fractal) playful_geometer 1 1675 Last post February 16, 2011, 11:10:11 PM
by Pauldelbrot
Falling Up Mandelbulb3D Gallery lenord 0 567 Last post March 20, 2011, 06:50:41 PM
by lenord
Lilith falling apart Mandelbulb3D Gallery Tahyon 0 634 Last post November 06, 2011, 09:34:36 AM
by Tahyon
Falling into the Sun remade Mandelbulb3D Gallery Tahyon 0 543 Last post November 15, 2011, 09:32:40 PM
by Tahyon

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.178 seconds with 24 queries. (Pretty URLs adds 0.007s, 2q)