ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Koch Curve using a stack in a recursive procedure

KRkriblo_test•Created May 10, 2021
Example: Koch Curve using a stack in a recursive procedure
10
6
105 views
View on Scratch

Instructions

Try changing Levels drawn in the fractal. Inspired by "Coding Math: Episode 35 - Intro to Fractals" on YT ( http://scratch.mit.edu/discuss/youtube/bIfNwgUVjV8 ). Coding Math's example of a Koch Curve uses JavaScript SVG, but is quite simple, so check it out. Because Scratch doesn't have procedure (custom block) local variables, I use a list as a stack in this example instead. It's worth checking out if you are unfamiliar. Read more about the Koch Curve and Koch Snowflake on Wikipedia: https://en.wikipedia.org/wiki/Koch_snowflake All code by me (@kriblo), but heavily inspired by Coding Math's example.

Project Details

Project ID528437799
CreatedMay 10, 2021
Last ModifiedJune 29, 2021
SharedMay 10, 2021
Visibilityvisible
CommentsAllowed