ScratchData LogoScratchData
Back to PhysicsLover999's profile

Automatic Sierpinski Filler

PHPhysicsLover999•Created April 28, 2017
Automatic Sierpinski Filler
8
3
92 views
View on Scratch

Instructions

Watch IN TURBO MODE. (Shift + Click Green Flag) You can drag the points around and then hit reset to see any shape.

Description

This can be demonstrated with any number of points (4 points will make a sponge, etc.), but It becomes less recognizable - This is the most well-known shape that this can produce. :) Inspired by this video (explained in-depth): https://www.youtube.com/watch?v=kbKtFN71Lfs HOW IT WORKS SETUP: 3 points are placed on the screen at random points. Then a red dot is placed at a random spot (not necessarily in the triangle we have just created). ALGORITHM: Pick a random number 1-3, each correlated to one of the 3 points. Then move HALFWAY to the corresponding dot (Number is 1, move halfway to dot one, etc.). Repeat. This simple algorithm of moving halfway to one of the three dots gives us this Sierpinski triangle - something that is seeming unrelated. Amazing!

Project Details

Project ID158002869
CreatedApril 28, 2017
Last ModifiedApril 30, 2017
SharedApril 29, 2017
Visibilityvisible
CommentsAllowed