Javascript Project

Gravitational Attraction Art

Category: Project Language: Javascript Type: Force Math Status: Complete Year: 2023

Contribution:

     This program I created, uses gravitational attraction to create art. I made this at Red River College for an assignment about learning about gravitational attraction and repulsion forces. Using the newfound knowledge of the concept I programmed a simple UI system that can allow the concept to be used to create unique art in JavaScript.

Project Summary:

     The canvas spawns with many movers on the screen all moving at random vectors. When you click you can spawn an attractor that will apply a gravitational force to the movers that will attract them. You can also click the "ENTER" key to change the things you spawn to repellers instead of attractors. Which will apply a repelling gravitational force to the movers.