Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 1.51 KB

README.md

File metadata and controls

63 lines (48 loc) · 1.51 KB

❤️‍🔥 Fractal Flame

img.png

Fractal flame is an algorithm proposed by Scott Draves that uses iterated function systems (IFS) to build images.

Due to different seed values for the pseudorandom number generator, many different “pictures” can be obtained. Although fractality is not always visible in them, the results are very interesting.

More info

Features

  • Single-thread and multy-thread image rendering
  • Symmetrical rendering
  • Image transformation types: (Disc, Heart, Linear, Polar, Sinusoidal, Spherical)
  • Image normalization

Build and run

Build program

mvn clean package assembly:single

Generate one image

java -jar target/flame-jar-with-dependencies.jar --generate

Generate many images and get benchmark_report.md

java -jar target/flame-jar-with-dependencies.jar --generate

See other flags

java -jar target/flame-jar-with-dependencies.jar

Image Rendering Benchmark Report

Single-threaded Rendering Multi-threaded Rendering
Average time per image: 30894.8 ms 7091.2 ms

Examples

Disc img_4.png Heart img_2.png Heart-symmetrical img_7.png Linear img_1.png Polar img_5.png Sinusoidal img_3.png Spherical img_6.png Spherical-symmetrical img_8.png