ScratchData LogoScratchData
Back to leszpio's profile

Sierpinski Arrowhead

LEleszpio•Created January 2, 2019
Sierpinski Arrowhead
14
13
567 views
View on Scratch

Instructions

GF The Sierpiński arrowhead curve draws an equilateral triangle with triangular holes at equal intervals. It can be described with two substituting production rules: (X —> +FY-FX-FY+) and (Y —> -FX+FY+FX-. X and Y recur and at the bottom do the same thing — draw a line. Plus and minus (+ and -) mean turn 60 degrees either left or right. The terminating point of the Sierpiński arrowhead curve is always the same provided you recur an even number of times and you halve the length of the line at each recursion. If you recur to an odd depth (order is odd) then you end up turned 60 degrees, at a different point in the triangle.

Description

L-system: Angle 60 Axiom FX F —> Z X —> +FY-FX-FY+ Y —> -FX+FY+FX- music: Piano duet Marek i Wacek plays "Military march in D major"

Project Details

Project ID276645491
CreatedJanuary 2, 2019
Last ModifiedJanuary 3, 2019
SharedJanuary 2, 2019
Visibilityvisible
CommentsAllowed