pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Chaos Game Fractal Generator

Chaos Game Fractal Generator - 1.0

Charlie Harrison (theratking)

Tags:

Description

From Wikipedia: In mathematics, the term chaos game, as coined by Michael Barnsley, originally referred to a method of creating a fractal, using a polygon and an initial point selected at random inside it. The fractal is created by iteratively creating a sequence of points, starting with the initial random point, in which each point in the sequence is a given fraction of the distance between the previous point and one of the vertices of the polygon; the vertex is chosen at random in each iteration. Repeating this iterative process a large number of times, selecting the vertex at random on each iteration, and throwing out the first few points in the sequence, will often (but not always) produce a fractal shape. Using a regular triangle and the factor 1/2 will result in the Sierpinski triangle.

Controls:

Q and A control the x-component factor for all vertices

W and S control the y-component factor for all vertices

R and F control the x factor for a highlighted vertex

T and G control the y factor for a highlighted vertex

 

(EDIT: sorry I totally forgot these essential controls!)

SPACE adds a vertex

D removes a vertex

If you're looking for inspiration, try making a square with 3 boxes per side and an x and y factor of .7 for Sierpinski's Gasket.

Links

Home Page: http://www.mediafire.com/?74seepyw3xjc6ss
Source: http://www.mediafire.com/?74seepyw3xjc6ss

Screenshot


click to view original size

Releases

Chaos Game Fractal Generator - 1.0 - Jan 21, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

January 22, 2011 6:45pm - Jeremy - nickname: (jh4) - 5/5
this is f***ing awesome. Try making a snowflake with 5-8 sides.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Oct 21, 2014


Oct 20, 2014

Oct 16, 2014

Oct 9, 2014

Oct 8, 2014

Oct 7, 2014

Oct 4, 2014

Oct 1, 2014

Sep 19, 2014

Sep 17, 2014

Sep 9, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)