Skip to content

nikoripka/einflusspunkt

Repository files navigation

EINFLUSSPUNKT / Influential dots

The algorithm in action

Abstract

Seven particles start at once and fall down due to a gravity force. Additionally, there are three dots of different sizes that exert a repelling force on the particles. After a short time, the particles stop and their path becomes visible.

See it for yourself!

Dependencies

P5.js "The power of Processing times the reach of JavaScript"

Usage

There are four Javascript files (plus an html file):

  • sketch.js: the mother ship
  • particle:system.js: the particle system
  • particle.js: each single particle
  • repeller.js: each single repeller

I encourage you to read Daniel Shiffman's chapter about particle systems and visit his repositories on GitHub.

Thanks

I would like to thank Daniel Siffman from The Nature of Code and his wonderful chapter about particle systems. And I wouldn't have been able to do this without the help from Fabian Morón Zirfas.

License

Copyright © 2015 Nikolas Ripka

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published