
The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!
|
|
|
||||||
The Start of Everything | ||||||
Previous Image | Next Image | ||||||
Description: double x=0;double y=0;double z=0;double _yd=1;double _anglex=0;double _angley=0;double _anglez=0;double _scale=1.5;double _size=0.1;double _bailout=5;bool _box=true;public override void Init(){base.Init();if(GetString(\"intern.Formula.TempUpdateVal\")!=\"e5053cdfd33f361a712241759519b5ab\"){SetParameterBulk(\"Formula.Parameters: anglex=22.5 angley=0 anglez=0 bailout=12 box=0 scale=1.4 size=0.4 yd=1 Formula.Static: Cycles=44 Julia=1 jx=0 jy=0 jz=0 Scene: CenterX=-1.35894044903553 CenterY=-0.70061135886748 CenterZ=-0.584705054298299 Radius=2.18571279892118 Transformation.Camera: AngleX=-0.409855217034559 AngleY=-23.3916795219528 AngleZ=112.925482270802 IsometricProjection=0 Position=1 intern.Formula: TempUpdateVal=e5053cdfd33f361a712241759519b5ab\");}if(GetString(\"intern.Formula.TempUpdateVal\")!=\"c474d2f4c5974c6863055df0ecdc78bf\"){SetParameterBulk(\"Formula.Parameters: anglex=22.5 angley=0 anglez=0 bailout=12 box=1 scale=1.25 size=0.5 yd=1 Formula.Static: Cycles=55 Julia=1 jx=0 jy=0 jz=0 Scene: CenterX=-1.31205445279311 CenterY=-0.821247287171884 CenterZ=-0.563560273849805 Radius=3.77691171653579 Transformation.Camera: AngleX=-0.409855217034559 AngleY=-23.3916795219528 AngleZ=112.925482270802 IsometricProjection=0 Position=1 intern.Formula: TempUpdateVal=c474d2f4c5974c6863055df0ecdc78bf\");}_yd=GetOrSetDouble(\"yd\",1);_anglex=Math.PI*GetOrSetDouble(\"anglex\",0)/180.0;_angley=Math.PI*GetOrSetDouble(\"angley\",0)/180.0;_anglez=Math.PI*GetOrSetDouble(\"anglez\",0)/180.0;_size=GetOrSetDouble(\"size\",0.1);_bailout=GetOrSetDouble(\"bailout\",5);_scale=GetOrSetDouble(\"scale\",1.5);_box=GetOrSetBool(\"box\",false);}public override bool GetBool(double x,double y,double z){this.x=x;this.y=y;this.z=z;return GetBool(_cycles);}public bool GetBool(int cycles){if(cycles<=0)return true;x+=_jx;y+=_jy;z+=_jz;double r=x*x+y*y+z*z;if(r>_bailout)return false;if(InSet()){additionalPointInfo.red=0.5;additionalPointInfo.green=0.5;additionalPointInfo.blue=3+0.3*(cycles-_cycles);if(additionalPointInfo.blue<0)additionalPointInfo.blue=0;if(cycles<40){additionalPointInfo.red=40/cycles;additionalPointInfo.green=1-40/cycles;additionalPointInfo.blue=0;}return true;}Scale(_scale);if(_anglex!=0)RotateX(_anglex);if(_angley!=0)RotateY(_angley);if(_anglez!=0)RotateZ(_anglez);double x1=x;double y1=y;double z1=z;y+=_yd;if(GetBool(cycles-1))return true;x=x1;y=y1;z=z1;y-=_yd;if(GetBool(cycles-1))return true;x=x1;y=y1;z=z1;return false;}bool InSet(){if(_box)return InBox();return InSphere();}bool InBox(){if(x*x>_size)return false;if(y*y>_size)return false;if(z*z>_size)return false;return true;}bool InSphere(){if(x*x+y*y+z*z>_size)return false;return true;}void Scale(double scale){x*=scale;y*=scale;z*=scale;}void RotateX(double angle){double re=Math.Cos(angle );double im=Math.Sin(angle );double a=re * y-im * z;z=re * z+im * y;y=a;}void RotateY(double angle){double re=Math.Cos(angle );double im=Math.Sin(angle );double a=re * x-im * z;z=re * z+im * x;x=a;}void RotateZ(double angle){double re=Math.Cos(angle );double im=Math.Sin(angle );double a=re * x-im * y;y=re * y+im * x;x=a;}
Stats: Total Favorities: 0 View Who Favorited Filesize: 175.58kB Height: 1200 Width: 1200 Discussion Topic: View Topic Keywords: SimpleSimple Posted by: trafassel ![]() Rating: Has not been rated yet. Image Linking Codes
|
||||||
0 Members and 1 Guest are viewing this picture. | ||||||
Related Images | ||||||
|
|
Comments (0) ![]() |
Powered by SMF Gallery Pro