ScratchData LogoScratchData
Back to Bones2's profile

Chaos Game (fractal generator)

BOBones2•Created April 5, 2021
Chaos Game (fractal generator)
0
0
19 views
View on Scratch

Instructions

-- Buttons -- Press the start button to generate the image. Press the dice button to select a random seed. -- Variables -- Sides: Selects how many sides the shape will have. Distance %: The distance between the current dot position and the vertex position. 100% is corner position, 0% is dot position. Seed: Selects the RNG (random number generator) seed. Dots: Ammount of dots the image will have. Shape size: The size of the shape. (supports negative) Direction %: Sets where the image points at. (no loop)

Description

How it's generated (if distance % value is 50): Step 1: Place a dot in the center Step 2: Put the dot halfway between its original position and any random vertex position. Step 3: Put a dot halfway between the previous dot position and any random vertex position. Step 4: Repeat step 3 until you get something.

Project Details

Project ID511229812
CreatedApril 5, 2021
Last ModifiedJuly 20, 2021
SharedApril 5, 2021
Visibilityvisible
CommentsAllowed