ScratchData LogoScratchData
Back to PhysicsLover999's profile

Diffusion-Limited Aggregation 2.0

PHPhysicsLover999•Created April 30, 2016
Diffusion-Limited Aggregation 2.0
2
2
55 views
View on Scratch

Instructions

Green Flag. You can adjust the sliders to edit how it moves and clusters. Time Between Spawning - How much time (In seconds) it waits between releasing each cell Seed Size - How large the original seed is Length/Step - How far each cell moves per step (In pixels)

Description

HUGE THANKS TO @Turtle1331 for keeping the cells from overlapping!! Turbo Mode is faster. Use {{[Shift] + Green Flag Click}} to toggle Turbo Mode. See below for technical description of how code works... LONG BORING DESCRIPTION: The cells are generated at intervals of however long you set it. If you set it to 0, it will not fill up infinitely because it takes time to go to a random spot on a circle. I was able to bypass Scratch's 300 clone limit by telling the clones bouncing around to leave a pen mark and then die instead of just sitting there taking up an unnecessary amount of clones. You can see this in fullscreen because the pen is raster, while the cells are vector. The cells use a lot of color sensing, which causes slowness, to sense the end of the universe and the current cluster to know when to stop. The reason I was unable to keep the cluster dots from overlapping is that I can only tell each dot to move so many pixels in the direction it's facing. It just "jumps" the gap instead of "moving through" all the space between the two coordinates. This has been a long and boring technical description.

Project Details

Project ID107639555
CreatedApril 30, 2016
Last ModifiedApril 13, 2017
SharedApril 30, 2016
Visibilityvisible
CommentsAllowed