ScratchData LogoScratchData
Back to AlSweigart's profile

Colorful Swirls

ALAlSweigart•Created September 8, 2019
Colorful Swirls
26
20
474 views
View on Scratch

Instructions

Using trigonometry, we can simulate a swarm of colorful lines. This is just an animation demo. The lines are drawn with random points on an invisible sphere, which are then rotated in random directions. The 3D coordinates on the sphere are translated to 2D coordinates for the screen, making it look like the fireflies hover around within a certain radius. Their flight path looks random and chaotic, but it's just math!

Project Details

Project ID327631284
CreatedSeptember 8, 2019
Last ModifiedSeptember 8, 2019
SharedSeptember 8, 2019
Visibilityvisible
CommentsAllowed