• October 20, 2021, 03:31:39 AM

Author Topic:  Color gradient applied on the complex plane  (Read 162 times)

0 Members and 1 Guest are viewing this topic.

Offline Microfractal

  • I like deep mandelbrot zooms!
  • Fractal Furball
  • ***
  • Posts: 229
Color gradient applied on the complex plane
« on: October 11, 2021, 11:17:30 PM »
I am currently experimenting with KF color gradients by mixing them into a complex function (Instead of the classic rainbow, a KF color gradient is displayed!)
Image1 Shows the gradient in KF and Image2 shows the same color gradient, only applied to sin(1/z+cos(z)) :D

Linkback: https://fractalforums.org/index.php?topic=4448.0

Offline Microfractal

  • I like deep mandelbrot zooms!
  • Fractal Furball
  • ***
  • Posts: 229
Re: Color gradient applied on the complex plane
« Reply #1 on: October 11, 2021, 11:18:00 PM »
The 1st Image:

Offline Microfractal

  • I like deep mandelbrot zooms!
  • Fractal Furball
  • ***
  • Posts: 229
Re: Color gradient applied on the complex plane
« Reply #2 on: October 12, 2021, 12:29:08 AM »
Another plot: sin(sin(sin(abs(z))))

Offline FractalAlex

  • Perturbation formula helper
  • Fractal Freak
  • **
  • Posts: 690
  • One step closer to victory
Re: Color gradient applied on the complex plane
« Reply #3 on: October 12, 2021, 01:37:21 AM »
Amazing, how did you do that?

Offline Microfractal

  • I like deep mandelbrot zooms!
  • Fractal Furball
  • ***
  • Posts: 229
Re: Color gradient applied on the complex plane
« Reply #4 on: October 12, 2021, 11:31:01 AM »
Instead of the output of: color = atan(Imag/Real) [if Real < 0; 180],
color = color*3. 57

to apply the H value of HSB, this value is then divided by 100 (because H has a range of 0~100)
and multiplied by 1024 (the length of the gradient).
Then applied to the mod operator to avoid negative numbers.
The last thing to do is to apply this value to an array where the colors are stored.

(Is very difficult to explain)


Offline vankessel

  • Fractal Freshman
  • *
  • Posts: 1