https://github.com/giridharrnair/sierpinskitriangleviewer
View Sierpinski triangle in Java Swing.
https://github.com/giridharrnair/sierpinskitriangleviewer
java javaswing sierpinski-triangle
Last synced: about 1 month ago
JSON representation
View Sierpinski triangle in Java Swing.
- Host: GitHub
- URL: https://github.com/giridharrnair/sierpinskitriangleviewer
- Owner: GiridharRNair
- License: mit
- Created: 2023-05-08T20:55:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T21:29:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T18:44:00.194Z (3 months ago)
- Topics: java, javaswing, sierpinski-triangle
- Language: Java
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SierpinskiTriangleViewer
This is a simple Java Swing project that generates and displays the Sierpinski triangle. The Sierpinski triangle is a fractal named after the Polish mathematician Wacław Sierpiński. It is formed by recursively subdividing an equilateral triangle into smaller equilateral triangles.
## Preview
## Running The Program (Double Click Alternative)
Download SierpinskiTriangle.jar from this repository's releases.
Make sure you have Java installed. To check, open terminal and type "java -version".
```bash
java -version
```
My current Java version.
``` bash
java version "20.0.1" 2023-04-18
Java(TM) SE Runtime Environment (build 20.0.1+9-29)
Java HotSpot(TM) 64-Bit Server VM (build 20.0.1+9-29, mixed mode, sharing)
```
In the terminal, enter the directory where the SierpinskiTriangle.jar is downloaded.
For example, all my downloaded files are inside the downloads folder, so I would enter the downloads directory.
``` bash
cd downloads
```
Then run the command below to run the SierpinskiTriangle.jar file.
``` bash
java -jar SierpinskiTriangle.jar
```## License
This project is licensed under the MIT License. Feel free to use and modify the code for your own purposes.