Visualize Mandlebrot Set and Julia Set using Elixir with Scenic library.
Configuration is maintained in config/config.exs
file.
The following can be configured by modifying values in the config file:
Under config :scenic_test, :viewport
:
- size - screen size in pixels. Higher the resolution, longer it will take to render.
Under config :scenic_test, :config
:
- step_size - resolution for the visualization. Higher numbers result in slower render.
- clip_start - exclude rendering points with steps lower or equal to this value. White.
- clip_end - exclude rendering points with steps higher or equal to this value. Black.
- zoom - zoom factor.
- render_steps - split the rendering into number of steps to allow visualizing partial sets while render progresses.
- offset - offset in pixels along
X
andY
coordinates. - julia_coord - coordinates from
Julia Set
to visualize. - render_julia - when
true
, renderJulia Set
, otherwise, renderMandelbrot Set
.
Ensure you have Elixir OTP installed and mix
is accessible in the PATH
environment.
From the project folder, run the following commands:
mix deps.get
iex -S mix
({-0.8,-0.156})