ScratchData LogoScratchData
Back to randomgamemaker's profile

Triangle Filler

RArandomgamemaker•Created March 21, 2015
Triangle Filler
6
2
69 views
View on Scratch

Instructions

Drag around the points. Adjust the number of iterations -- larger is more precise, but slower.

Description

It's really buggy and slow right now, but it works. Don't set the number of iterations too big, or it will start to look really weird. I think this is because of the 300 clone limit. It also gets really slow with big triangles. I could make it so it stops when the circles get to small, but then the number of iterations is unpredictable. How it works: 1. The incircle of the triangle is drawn 2. The triangle is split into 3 different triangles (actually 4, but one has already been filled in by the incircle) 3. A new clone is created for each triangle and the process is repeated recursively I think I've seen it done this way before, but I forget where. Sorry if I took your idea! Maybe not using clones would speed it up? The only reason I used clones was that the variables for the triangle draw block were getting overwrtten each time it was called.

Project Details

Project ID53656100
CreatedMarch 21, 2015
Last ModifiedMarch 21, 2015
SharedMarch 21, 2015
Visibilityvisible
CommentsAllowed