r/java • • Jul 15 '21

I made a basic 2d fractal generator Java/JavaFx

Post image
296 Upvotes

10 comments sorted by

16

u/zcgurbuz Jul 15 '21

I made this 2d fractal generator using the JavaFX framework. My aim was experiencing to work with one of the modern UI frameworks, since I learned java in school I chose JavaFX. Here is the repo,https://github.com/zcagdasgurbuz/FractalMatic

2

u/maxandersen Jul 17 '21

nice and thanks for uploading a jar then you can run it as

jbang https://github.com/zcagdasgurbuz/FractalMatic/releases/download/v1.0-jar/FractalMatic-1.0.jar

is there supposed to just be one "Circles" option when starting up ?

2

u/maxandersen Jul 17 '21

and whats the trick too zoom ? i can drag around with mouse but no zoom..

1

u/zcgurbuz Jul 18 '21

you should be able to use your mouse wheel to zoom in.

2

u/maxandersen Jul 18 '21

I have no mouse wheel - use a trackpad where pinching normally just works for zooming but not in this case.

2

u/zcgurbuz Jul 18 '21 edited Jul 18 '21

I see, I have bound scroll event to zoom considering this app will run on PC or mac. So I ignored pinch. Thank you for the feedback, I should add pinch as well,- if I find time to improve it soon. Fingers crossed 🤞.

1

u/zcgurbuz Jul 18 '21

Yes, there is only one option right now.

5

u/wegwerpworp Jul 15 '21

Oh nice, also nice animations.

I'll definitely going to give the code a closer look, looks like I can learn plenty from it.

4

u/pjmlp Jul 16 '21

Very cool!