Just press the green flag to begin. Hold the screen to toggle on/of walls (default is off); since it is somewhat laggy, just quickly clicking/tapping likely won't work. This is the faster version, but if you want to see a slower, more detailed version, use this: https://scratch.mit.edu/projects/846627809/ Feel free to look inside and replace the wall sprite with something else! Then run it again and see the results.
Heres a brief description about how this works: 1. A ray is shot out of the center of the screen and stops either when it hits the edge of a screen or a wall 2. If the ray hits a wall, it'll stop moving and then move a random distance (usually closer to its previous position) away. If there were no walls in between its previous and current position it will spawn a speck of white. That's what makes the light kind of "scatter." 3. Repeat this 360,000 times! I think "raycaster" is the correct term for this project but I don't really know.