ScratchData LogoScratchData
Back to crkcity's profile

Interactive Seaweed by L-system code

CRcrkcity•Created January 26, 2022
Interactive Seaweed by L-system code
6
2
25 views
View on Scratch

Instructions

Click flag, adjust the turn angle as it runs. Try adjusting length. Spacebar changes backgrounds (painted by my wife) Uses a system of commands, know as L-system, turning left, right, and returning to previous positions. It's convenient for building a wide variety fractals. This one here is usually called "L-System Bush." Looks to me like seaweed.

Description

Background painted by my wife Kathy, moves with the angle change (using set whirl effect to angle). Standard L-System rules for a "bush." I made it repeat fast so that you could adjust in real time, and added seaweedy coloration. Look inside and see the code uses L-System terms: "F" indicates move foward by the step length, the term "+" means turn clockwise, "-" counterclockwise by the branch angle, "[" indicates branching point, and "]" means branch completed.

Project Details

Project ID634557050
CreatedJanuary 26, 2022
Last ModifiedJanuary 28, 2022
SharedJanuary 27, 2022
Visibilityvisible
CommentsAllowed