Logo by Pauldelbrot - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 19, 2024, 07:34:08 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: coloring by closest approach distance  (Read 11335 times)
Description: coloring formula
0 Members and 1 Guest are viewing this topic.
Khashishi
Forums Freshman
**
Posts: 13


« on: June 18, 2017, 08:30:21 PM »

I made a coloring formula for escape time fractals which is very simple but I think it looks pretty. It works for both inside and outside points. I wouldn't be surprised if someone did this before.

Basically, for each pixel, we calculate the orbit and keep track of the minimum distance between the orbit and the origin, and the minimum distance between the orbit and the axes (the lines x=0 and y=0). Then we choose a color based on some linear combination of the two distances. If you only use the distance to the origin, you get these circular halos around each minibrot bulb. If you only use the distance to the axes, you get these stalks coming from the bulbs. With the sum of both, you get these horns coming out of each part, and it looks pretty.

I'm new to this forum, so I don't know if this image will work. I think I originally calculated this image in Fractint, but I lost the Fractint files. It's a mandelbrot fractal. The outside coloring was as above. The inside coloring was bof61.

https://www.dropbox.com/s/5vffg35gzlqai0t/Orixes%20Mandelbrot.png?dl=0

It's best to set the bailout to a high number; otherwise, the horns get truncated.
I implemented it in ChaosPro as a color formula file. The formula is called Orixes.

Code:
Orixes
{
parameter real axis_scale;
parameter real origin_scale;
real axis_d;
real origin_d;

void init(void)
{
axis_d=9e99;
origin_d=9e99;
}
void loop(void)
{
if (cabs(z)<origin_d)
{
origin_d=cabs(z);
}
if (abs(real(z))<axis_d)
{
axis_d=abs(real(z));
}
if (abs(imag(z))<axis_d)
{
axis_d=abs(imag(z));
}
}
void final(void)
{
index=axis_d*axis_scale+origin_d*origin_scale;
}
void description(void)
{
this.title = "Origin and Axis distances";

axis_scale.caption="Axis distance scaling";
axis_scale.default = 0.7;
axis_scale.hint = "Color scaling for distance between orbit and either axis";

origin_scale.caption="Origin distance scaling";
origin_scale.default = 0.3;
origin_scale.hint = "Color scaling for distance between orbit and origin";
}
}
Logged
quaz0r
Fractal Molossus
**
Posts: 652



« Reply #1 on: June 18, 2017, 11:06:17 PM »

 afro

https://en.wikipedia.org/wiki/Pickover_stalk
Logged
Khashishi
Forums Freshman
**
Posts: 13


« Reply #2 on: June 21, 2017, 06:16:14 PM »

I see. I knew I didn't come up with it first cool
Logged
quaz0r
Fractal Molossus
**
Posts: 652



« Reply #3 on: June 21, 2017, 11:39:24 PM »

regardless, still always fun to discover something on your own   cheesy
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
What is the general approach to threading for 2d plotting Programming jwm-art 8 10250 Last post February 20, 2010, 04:11:35 AM
by Duncan C
On Approach 1 Mandelbulb3D Gallery MarkJayBee 0 1820 Last post May 17, 2010, 08:22:11 PM
by MarkJayBee
Approach 2 Images Showcase (Rate My Fractal) yv3 0 1015 Last post July 20, 2011, 08:53:08 PM
by yv3
Novice approach to non-m like colouring formula Other types simon.snake 3 12907 Last post March 25, 2015, 03:50:58 PM
by simon.snake
How to approach ro object without cutting it? Mandelbulb 3d « 1 2 » crunchy 23 10299 Last post June 09, 2012, 04:59:11 PM
by Jesse

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.177 seconds with 27 queries. (Pretty URLs adds 0.01s, 2q)