Default { void init(void) { // place initialization here } void loop(void) { // place code to be executed in every iteration loop here } void final(void) { // final code... index=0.01*numiter; } void description(void) { this.title = "UltraFractal - None"; } } OrbitStar { parameter double Threshold; parameter double Rays; parameter double Brightness; parameter double Rate; parameter double alphacap; double d; double agl; double agl2; void init(void) { pixelcolor=rgba(0,0,0,0); // place initialization here } void loop(void) { agl2=atan2(z); agl = abs(agl2%(2*pi/Rays)); if (agl > pi/Rays) { agl = abs(agl-2*pi/Rays); } d = agl*cabs(z); alpha = (Threshold/((maxiter/Brightness)*(d+Threshold)))*(1-alpha); if (alpha > alphacap) { alpha = alphacap; } pixelcolor = blend(pixelcolor,gradient(Rate*agl*Rays/pi),alpha); } void final(void) { agl = abs(atan2(z)%(2*pi/Rays)); if (agl > pi/Rays) { agl = abs(agl-2*pi/Rays); } d = agl*cabs(z); alpha = (Threshold/((maxiter/Brightness)*(d+Threshold)))*(1-alpha); if (alpha > alphacap) { alpha = alphacap; } pixelcolor = blend(pixelcolor,gradient(Rate*agl*Rays/pi),alpha); } void description(void) { this.title = "Orbit Trap Star"; this.helpfile = "ChaosPro.chm"; this.helptopic = "Coloring Formula"; Threshold.caption = "Threshold"; Threshold.default = 1; Threshold.hint= "This is the modifier for the\ndistance attenuation from the trap"; Rays.caption = "Rays"; Rays.default = 4; Rays.hint = "Number of rays of the trap"; Brightness.caption = "Brightness"; Brightness.default = 100; Rate.caption="Color Rate"; Rate.default = 1; Rate.hint = "Rate of color change"; alphacap.caption="Alpha Cap"; alphacap.default = 1.3; alphacap.hint="Max alpha for overexposure - use with caution"; } } Smooth { double sum; double a; parameter double rate; void init(void) { sum=0; } void loop(void) { a = 1/(cabs(z)+1); sum = sum+a; } void final(void) { // final code... index=rate*sum%1+1; } void description(void) { this.title = "Smooth General"; this.helpfile = "ChaosPro.chm"; this.helptopic = "Coloring Formula"; rate.caption="Color Rate"; rate.default=1; } }