Skip to content

megabyte6/sierpinski-java

Repository files navigation

Sierpinski

About

This project is a simple Sierpinski's Triangle app that I wrote to learn how to use JavaFX, jLink, and jPackage.

How to use

MacOS, Linux, & Portable builds.

  1. Go to releases.
  2. Download either the .zip file for your system.
  3. Extract the file.
  4. Navigate to the bin folder.
  5. Run sierpinski (or sierpinski.bat if you're on windows).

Windows

  • Installers
    1. Go to releases.
    2. Download Sierpinski-installer.msi (recommended) or Sierpinski-installer.exe.
    3. Run the installer.
  • Portable
    1. Go to releases.
    2. Download the sierpinski-app-image-win-x64.zip.
    3. Extract the file.
    4. Run Sierpinski.exe.

Have fun!

Controls

  • Scroll to zoom in and out.
  • Press r to re-render the screen if something goes wrong.

Building

  1. Clone this repository.
  2. Open a terminal to the cloned project.
  3. Build the project.
    • Just build the project:
      1. Run ./gradlew build
      2. Check build/distributions for the builds.
    • Build portable images:
      1. Run ./gradlew jlinkZip
      2. Check build for the .zip images.
    • Build installers & executables:
      1. Check Oracle's website for info on your system's prerequisites.
      2. Change the jpackageTargetPlatform variable in the ext blcok of the build.gradle file to match your operating system and architecture.
      3. Run ./gradlew jpackage
      4. Check build/jpackage for the installer(s) and build/jpackage/Sierpinski for the executable.
        • Note: By default, the jpackage task runs the jlink task as well. To speed up the build, you can comment out the targetPlatform() functions in the jlink block of the build.gradle file that you don't want to build for.

License

This project uses the MIT license.

Thanks

Thanks to OpenJFX as this project was build with JavaFX. Thanks to the creators of the Badass JLink Plugin as well.

About

Sierpinski Triangle fractal viewer

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages