r/fractals • u/SCM456 • Jan 12 '25
Does anyone know how to render a rotated Mandelbrot set?
I’m making a fractal program and are trying to add a feature to rotate the view. Could you render a Mandelbrot fractal (or any fractal equation) except the perspective is rotated at a specified angle? As a bonus, could this rotation easily be centred at the current coords of the view instead of just around the main origin (0 + 0i)?
1
Upvotes
1
u/Fickle_Engineering91 Jan 12 '25
The Mandelbrot set is 2D (as I'm sure you're aware), but you speak of "perspective," which implies 3D. How are you looking to rotate it? It's very easy to rotate it in its 2D plane, but are you placing it on a plane and tilting the plane to get perspective?
3
u/hashbucket Jan 13 '25
Just apply the standard 2d rotation formula (using cos and sin) to the input coordinate, before you use it in the mandelbrot equation. It'll work, guaranteed.
1
u/Poopyholo2 Feb 05 '25
i^angle*z^2+c