ScratchData LogoScratchData
Back to Tutor-42's profile

Sierpinski Triangle - Turbo Mode Demo

TUTutor-42•Created August 29, 2019
Sierpinski Triangle - Turbo Mode Demo
0
0
7 views
View on Scratch

Instructions

A Turbo Mode demonstration. (Explanation below). 1) Green Flag. You should see some tiny magenta dots appearing on the screen. A pattern starts to form very very slowly. 2) Let's speed things up! * Switch to Turbo Mode! * (Hold the <Shift> key and click the Green Flag again) The Sierpinski Triangle appears within 2 seconds. How this project draws the Sierpinski Triangle ------------------------------------------------------------- A sprite repeatedly moves half the distance from its current position towards a random corner of the triangle and draw a single magenta dot at that pixel. Draw enough dots (maybe 50,000 to 100,000 here) and the Sierpinski Triangle appears. Turbo Mode ---------------- This project is particularly suited to run in Turbo Mode to draw the picture as fast as possible. In Turbo Mode, Scratch does not pause to update the screen after each pixel color is set. Scratch calculates the colours for as many pixels as it can within 1/30th second, then updates the screen. (On my computer Scratch can move the invisible sprite halfway to a random triangle corner and colour the pixel there about 2,000 times every 1/30th second). This tutorial gives a fuller explanation of Turbo Mode: https://scratch.mit.edu/discuss/post/3680379/

Description

See this tutorial for more on Turbo Mode: https://scratch.mit.edu/discuss/post/3680379/ This project draws the Sierpinski Triangle using the Chaos Game method described on Wikipedia: https://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle Q. Is this the first magenta Sierpinski Triangle with a castle backdrop on Scratch?

Project Details

Project ID326201567
CreatedAugust 29, 2019
Last ModifiedSeptember 15, 2019
SharedSeptember 15, 2019
Visibilityvisible
CommentsAllowed