Pascal's Triangle
(win32+ only)
This program uses a mathematical algorithm known as "Pascal's Triangle." It looks like this:
1
/\
1 1
/\/\
1 2 1
/\/\/\
1 3 3 1
/\/\/\/\
1 4 6 4 1
/\/\/ \/\/\
1 5 10 10 5 1
/\/\/ \/ \/\/\
1 6 15 20 15 6 1
/\/\/ \ /\ / \/\/\
1 7 21 35 35 21 7 1
...
You can figure it out ;) . Anyway, to make a graphic from this sequence:
- Pick an integer X.
- Systematically look at each number in your triangle.
- For each number: is the number wholly divisible by X?
- Yes: Leave the pixel representing this number blank.
- No: Color the pixel representing this number.
- Rinse.
- Repeat as desired.
Current Version: 1.0
-Current Features:
- Foreground/background colors.
- Saving of rendered images.
- Speed/graphics options.
-Known Bugs: (to submit a bug, thealliedhacker@yahoo.com subject:"PasTri Bugs")
-ToDo: