# Particles moving away from center, how?

**URL:** https://discourse.processing.org/t/particles-moving-away-from-center-how/5082
**Category:** Coding Questions
**Created:** [November 1, 2018, 11:02am UTC](https://discourse.processing.org/t/particles-moving-away-from-center-how/5082 "2018-11-01T11:02:36Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [November 1, 2018, 11:06am UTC](https://discourse.processing.org/t/particles-moving-away-from-center-how/5082/2 "2018-11-01T11:06:34Z")

</div>

same assignment?

> [@STOP the explosion](https://discourse.processing.org/t/stop-the-explosion/5071/2):
>
> See below. Particle [] pickles = new Particle [100]; void setup () { size (500, 500); smooth (); for (int i=0; i\<pickles.length; i++) { pickles [i] = new Particle (); } } void draw () { background (0); //clear the background for (int i=0; i\<pickles.length; i++) { pickles[i].update(); } } class Particle { float x; float y; float velX ; // speed or velocity float velY; Particle () { //x and y position to be in middle of screen x = width/2; y …

---

_[View the full topic](https://discourse.processing.org/t/particles-moving-away-from-center-how/5082)._
