This is a project from my Graphics class at University. You input the number of iterations and side length. The program recursively draws a Koch Snowflake in OpenGL (using JOGL). It also outputs information about parimeter length and area for each iteration.
https://docs.google.com/document/d/1laaXSlu7n22niT8eWfB2xSGyqrjlZas9iYNG5LwwkJE/edit?usp=sharing
n | Segment Count | Perimeter | Area | 0 | 3 | 3.000000 | 0.433013 | 1 | 12 | 4.000000 | 0.577350 | 2 | 48 | 5.333333 | 0.641500 | 3 | 192 | 7.111111 | 0.670011 | 4 | 768 | 9.481483 | 0.682683 | 5 | 3072 | 12.641965 | 0.688315 | 6 | 12288 | 16.855938 | 0.690818 | 7 | 49152 | 22.474552 | 0.691930 | 8 | 196608 | 29.965635 | 0.692425 | 9 | 786432 | 39.953194 | 0.692644 | 10 | 3145728 | 53.262867 | 0.692742 |