JMaio / mandelbrot-maps

🗺 Mandelbrot set and Julia set explorer made with React and WebGL
https://jmaio.github.io/mandelbrot-maps/
GNU General Public License v3.0
18 stars 4 forks source link

Add julia set rotation #26

Closed yonadaaa closed 3 years ago

yonadaaa commented 3 years ago

What

This PR adds functionality to rotate the Julia set viewer.

Why

This PR allows developers to set the rotation for the Julia set, which will then rotate the view. This doesn't include an UI for users to interface with this, so for now this functionality is just for developers.

How

The rotation is accomplished by using a method similar to the Mandelbrot shader, where trigonometric functions are used with the chosen rotation angle to compute the shift for each point.