Error message

Warning: Undefined array key 1 in counter_get_browser() (line 70 of /mnt/volume_sgp1_08/everettg/public_html/sites/all/modules/counter/counter.lib.inc).

SFML

How to Generate a Square Star Fractal Using Recursion

This article is about generating a Square Star Fractal using recursion (Although a triple for-loop implementation is much preferred, it will be discussed separately).

The logic of a Recursive Square Star Fractal Function is a simple Divide and Conquer algorithm. The program is subdivided into smaller tasks until it is solved. The function takes the (X, Y) middle coordinates of the square, R length, where 1 Side of Square = 1 Length = 2R length, and T as the number of times to generate 2R- sized squares. 

Tags:

Subscribe to RSS - SFML