float radius = 100.0;
int deg =0;
float increment = random(20);

int f = 0, dimension;
float s = 1;
PImage img;
//PImage img2;

void setup() {
  size(800,800);
  background(255);
  colorMode(HSB,360,360,360);
  noStroke();
  smooth();
  img = loadImage("ffs_flower.png");
  dimension = img.height*img.width;
  image(img,200,200);
  frameRate(15);
  /* img2 = loadImage("ffs_flower.png");
   image(img2,400,400);*/
}


void keyPressed() {
  if (key == 'f') {
    img.loadPixels();
    for (int i =0; i < dimension; i++) {
      img.pixels[i] = color((hue(img.pixels[i])+30)%360, saturation(img.pixels[i]), brightness(img.pixels[i]));
    }
    img.updatePixels();
    image(img,200,200);
  }
}
void draw() {

 
  float angle = radians(deg);
  float x =280 + (cos(angle)* radius);
  float y = 280 + (sin(angle)*radius);
  image(img,x,y,200,200);
  deg+=73;
  if(radius>width/2+1) {
    radius = 0;
    increment = random(20); 
  }
  radius = radius + 0.34;
 } 

