/Pascal

Pascal Triangle

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

Pascal

Fractals using Pascle's triangle.

Preview

Mod 2

Mod 2

Mod 4

Mod 4

Mod 8

Mod 8

Mod 16

Mod 16


Pascal's Triangle MOD 2 (Sierpinski Triangle)

Sierpinski Triangle


Compilation To .jar And Running

Windows

Option 1 - .bat Files
  • Run windows_compile.bat to build and compile the code.
  • Run windows_run.bat to run the .jar file.

Linux

Option 1 - .sh Files
  • Run linux_compile.sh to build and compile the code.
  • Run linux_run.sh to run the jar file.
Instructions:

Make linux compile executable:

chmod +x ./linux_compile.sh

Run linux compile executable:

./linux_compile.sh

Make linux run executable:

chmod +x ./linux_run.sh

Run linux run executable:

./linux_run.sh

Other OSs


Snapshots During Production

First try

First Triangle Image

Converting Int To Long

Second Triangle Image

Using The "Python" Like Modulo (For Handling Negative Numbers Too)

Thirde Triangle Image