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: Follow us on Twitter
 
*
Welcome, Guest. Please login or register. March 28, 2024, 03:18:52 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: News from the Mandelbox  (Read 737 times)
0 Members and 1 Guest are viewing this topic.
trafassel
Fractal Bachius
*
Posts: 531


trafassel
« on: January 14, 2017, 12:51:37 AM »

News from the Mandelbox



http://www.fractalforums.com/index.php?action=gallery;sa=view;id=19944

// CenterX=-0.916032152744961 CenterY=0.877148216230017
// CenterZ=11.2158712835104 Radius=0.568000286566819
public override bool GetBool(double x,double y,double z)
{
  for (int i=0;i < 66;  i++)
  {
    x=x%2;
    z=z%2;
    while(Math.Abs(x)>0.5)
    {
      if(x>0.5)x=1-x;
      if(x<-0.5)x=-1-x;
    }
    while(Math.Abs(z)>0.5)
    {
      if(z>0.5)z=1-z;
      if(z<-0.5)z=-1-z;
    }
    double xx=x*x;
    double yy=y*y;
    double zz=z*z;
    double r=xx+yy+zz;
    if(r>0)
    {
      x /=-r;
      y /=-r;
      z /=-r;
      if(r>0.00000000001 && i>2)
      {
        Red+=xx/r;
        Green+=yy/r;
        Blue+=zz/r;
      }
      if(r<0.3)return false;
    }
    x=-x;
    x+=0.02;
    y+=1.925;
    z+=0.95;
  }
  return true;
}
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
A new fractal in the news Mathematics Tglad 10 5619 Last post May 13, 2012, 10:51:14 AM
by jehovajah
chaosTV news #3 chaosTube - News « 1 2 » cKleinhuis 15 5553 Last post September 18, 2012, 03:53:08 AM
by M Benesi
news Discuss Fractal Forums hgjf2 5 1100 Last post April 09, 2013, 08:15:07 AM
by hgjf2
chaosTube news #9 - compo voting period - mexiko 3d axolotl - short news chaosTube - News cKleinhuis 6 10265 Last post June 18, 2013, 07:35:07 PM
by cKleinhuis
chaosTube - news #14 chaosTube - News cKleinhuis 0 6305 Last post May 08, 2016, 07:34:32 PM
by cKleinhuis

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