# \[SOURCE CODE + ARTICLE\] Localized Attraction Repulsion particle system

**URL:** https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003
**Category:** Gallery
**Created:** [August 2, 2020, 6:49pm UTC](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003 "2020-08-02T18:49:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ciphrd](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@ciphrd](https://discourse.processing.org/u/ciphrd)
#### Post date: [August 2, 2020, 6:49pm UTC](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003/1 "2020-08-02T18:49:15Z")

</div>

Hello community,

I recently wrote an article about a simple technique I called Localized Attraction Repulsion between particles. It is based on attraction / repulsion between particles, but the attraction and repulsion only works if 2 particles are under an attraction and repulsion range respectively.

The technique is described in the article on my blog (link in the readme of the github repo).

Repo of the source code: [https://github.com/bcrespy/LocalizedAttractionRepulsion](https://github.com/bcrespy/LocalizedAttractionRepulsion)

Have fun !

---

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [August 2, 2020, 9:04pm UTC](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003/2 "2020-08-02T21:04:29Z")

</div>

You should create a release tag so it’s easier to download the whole sketch: 🏷

- [GitHub.com/bcrespy/LocalizedAttractionRepulsion/releases](http://GitHub.com/bcrespy/LocalizedAttractionRepulsion/releases)

---

<div class="post-metadata">

### Author: ![ciphrd](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@ciphrd](https://discourse.processing.org/u/ciphrd)
#### Post date: [August 2, 2020, 11:06pm UTC](https://discourse.processing.org/t/source-code-article-localized-attraction-repulsion-particle-system/23003/3 "2020-08-02T23:06:07Z")

</div>

Thanks for the tip, this is done.
