PHP Classes

Fractal: Render Koch curve fractal images

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 444 All time: 6,225 This week: 524Up
Version License PHP version Categories
fractal 1.0Free for non-comm...4.0Algorithms, Graphics
Description 

Author

This class can be used to render Koch curve fractal images.

It takes a number of iteration levels to perform and renders a Koch curve fractal in an image of a given size.

The generated fractal image can be served as the current script output in JPEG format.

Picture of Reza Salehi
Name: Reza Salehi <contact>
Classes: 18 packages by
Country: Canada Canada
Age: 44
All time rank: 594 in Canada Canada
Week rank: 180 Down7 in Canada Canada Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

Details

According to Wikipedia, A fractal is generally "a rough or fragmented geometric shape that can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole,"[1] a property called self-similarity. This PHP script draws a Koch Curve which is a type of Fractal. It simply takes an integer as the Koch Curve level and draws it as a jpeg image. This image can be downloaded like any normal image. You just need to have PHP GD library installed. You can try this application on my website at [http://www.dreamstube.com/post/Kich-Curve-This-time-in-PHP.aspx]. Thanks, Reza Salehi

Screenshots (1)  
  • FractalLevel3
  Files folder image Files (5)  
File Role Description
Plain text file fractal.class.php Class fractal main class
HTML file index.htm Data Data entry form
Plain text file index.php Example Sample script consuming the Fractal class
Plain text file readme.txt Doc. Read Me

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:444
This week:0
All time:6,225
This week:524Up
User Ratings User Comments (1)
 All time
Utility:68%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:62%StarStarStarStar
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2072
 
Works on the demo site.
15 years ago (F Philip DeGeorge)
62%StarStarStarStar