ScratchData LogoScratchData
Back to leszpio's profile

Sierpinski carpet in colors

LEleszpio•Created July 10, 2015
Sierpinski carpet in colors
26
15
1263 views
View on Scratch

Instructions

Turbo Mode! ( SHIFT+GREEN FLAG) Set on a slider color and press the "start" button. Music sets the time to create the carpet. (Approximately 11s).

Description

There are 8 points stored in two list of variables: x and y. He draws a number from 1 to 8. And he runs to: x = coordinates x + (element number of X - coordinate x) * 0.66666 y = coordinates y + (element number of Y - coordinate x) * 0.66666 color: 0 - random 1 - |x-y| 2 - sqrt(x*x-y*y) 3 - | x*x/y*y| 4 - |x| 5 - |y| 6 - |x| - |y| 7 - |x+y| 8 - |x|+|y| 9 -sqrt(x*x+y*y) 10 - |x|+y 11 - |y|-x 12 - sqrt(|x|*|y|)

Project Details

Project ID70049954
CreatedJuly 10, 2015
Last ModifiedAugust 12, 2022
SharedAugust 23, 2015
Visibilityvisible
CommentsAllowed