feteru_DDR_IA/DDR_1/MoveColorArcDraw.pde
class MoveColorArcDraw  {
  float pointX, pointY, xdim, ydim, start, stop, pstop = 0;

  
  float[] drawArc(float[] accdims, float[] oredims, float[] ends, float[] center) {
    
    //int pointX = width / 2; int pointY = height/2;
   // delay(100);
    //move the center around.
    center[0] = center[0] + -3*(oredims[2]);
    center[1] = center[1] + 3*(accdims[1]);
    
    //change the size of the arcs that are generated
    xdim = abs(oredims[1]*100);
    ydim = abs(oredims[2]*100);
    //change the arc length that is generated. 
    ends[0] = pstop;
    ends[1] = ends[0] + abs(accdims[1]);
    pstop = ends[1];
    
    noStroke();
   // strokeWeight(3);  // thickness of line (1 is default)
    fill(ends[0]%255, (xdim)%255, (ydim)%255); // color of fill: between 0 and 255
  
    arc(center[0]%width, center[1]%height, xdim, ydim, ends[0], ends[1], OPEN);
    return ends;
  }
  
}
