title: how to move shape in a certain arc and line in processing?
body: <p>i made classic random moving circles as in the picture:</p>
  
  <p><img src="https://i.stack.imgur.com/CxbIG.png" alt="enter image description here"></p>
  
  <p>And here's what i want to realize:</p>
  
  <p>when mouseClicked , the circles line up like:
  <img src="https://i.stack.imgur.com/dXoY7.png" alt="enter image description here"></p>
  
  <p>i think i can check the position of all the circles. if theirs y position are within 1/2height, they should form the arc.
  if are larger then 1/2height, they form the line.</p>
  
  <p>But the trick is : how to form those shape?</p>
  
  <p>i mean,  i know how to form a round , just move their centre of circle towards a point.
  but LINE(how to move theirs x position)??? even ARC ??? really have no idea.</p>
  
  <p>Does anyone know?
  Thank you very much.</p>