PROJECT ONE


Week 2

Image 1

ex2_3190329.png
Repetition - Smooth - Burst

//---------setup------------//
 
void setup() {
 
  size(250, 250);
  smooth();
 
}
 
//-------draw---------//
 
void draw() {
 
  noLoop();
 
  //------this is for a rectangle radial gradient
  for (int m = 1; m < 250; m++) {
 
    stroke(10 -m/3 ,37 - m/3,79 - m/3);
    rect (width/250, height/250, 250 - m, 250 - m);
 
  }
 
  for (int i = 50; i > 10;  i -= 1) {//----------smooth fade--------
 
    int f = int(random(0, 600));
    int f2 = int(random(0, 250));
 
    strokeWeight(random(0, 30));//----------soft bars
    stroke(246, 250, 255, 60);
    line(f2*1.5, f+50, f2+30, f/2);
 
    strokeWeight(random(0, 28));//----------bar glow
    stroke(5, 67, 74, 35);
    line(f2*1.5, f+50, f2+30, f/2);
 
  }
 
  //--------------------------------
  save("ex2_3"+day()+hour()+minute()+second()+".png");//------saves every render
  //--------------------------------
 
}
 

Image 2


ex2_418232936.png
Repetition - Continuous - Ring

**//-----------setup----------//
 
void setup() {
 
  size(250, 250);
  smooth();
  background(255);
  noFill();
  stroke(0, 0, 0, 70);
 
  noLoop();//--------no repetitive draw
}
 
//------------draw------------//
 
void draw() {
 
  int x = 125;//------variables for easy handle in loops
  int y = 125;
  int c = 400;
  int l = 100;
  int va = 20;
 
  for (int i = 0; i < 100; i = i + 5) {
 
    x = x + int(random(-va,va));//----random position
    y = y + int(random(-va,va));//---"---
    c = c + int(random(-2*va,0));
 
    fill (182 - 4 * l, 6 - l, 18 - l/10);//---------gradient progression
    l = l - 15;
 
    ellipse (y, x, c, c);
  }
 
  stroke(255, 255, 255, 70);
  line(y, x, 5, 5);//------draw lines
  line(y, x, 250, 250);
 
 
  save("ex2_4"+day()+hour()+minute()+second()+".png"); // save file. and never overwrite.
}**
 
 
Image 3
ex2_11602931.png
Repetition - Rough - Vibrate

//---------setup--------//
 
void setup() {
 
  size(250, 250);
  strokeWeight(7);
  smooth();
  background(247, 247, 245);
  noLoop();
 
 
}
 
//---------draw------------//
 
void draw() {
 
  //loop for lines//
  for(int f = 0; f < height; f++) {
    float r = random(400);//----random shades of colour----//
    float x = random(0, height);//----random line start, always canvas height----//
    strokeWeight(10);
    stroke(r-210, r-203, r-197);//----subtract for desired shade of colour----//
    line(x, 0, f, width);//----
 
    drawTarget(125, 125, 60, 60);
  }
 
 
 
  for(int f2 = 0; f2 < width; f2++) {
    float r2 = random(500);
    float x2 = random(0, width);
    float t2 = 0.5;
    strokeWeight(t2);
    stroke(r2-120, r2-143, r2-178);
    line(x2, 0, f2, height);
  }
 
 
  save("ex2_1"+day()+hour()+minute()+second()+".png");
  save("ex2_1");
}
 
void drawTarget( int xloc, int yloc, int size, int num) {
  float grayvalues = 800/num;
  float steps = size/num;
  for(int i = 0; i < num; i++) {
    fill(i*grayvalues);
 
    noStroke();
    //fill(255);
    ellipse(xloc, yloc, size-i*steps, size-i*steps);
  }
}
 
 
 


Image 4

ex2_218234538.png
Repetition - Dynamic - Chatter

//--------setup---------//
 
void setup() {
 
  size(250, 250);
  background(0);
  smooth();
  //noStroke();
  stroke(255, 255, 255, 80);
 
}
 
//---------draw----------//
 
void draw() {
 
  noLoop();
 
  for (int c = 0; c < 150; c++) {
 
    strokeWeight(random(0, 50));
//-----random weights and positions----//
 
    int r1 = int(random(5, 600));
    int r2 = int(random(50, 150));
    int r3 = int(random(0, 30));
 
    fill(121, 207, 21, 2 + c*6);
    ellipse(r2+10, r1*2, r3, r3);
 
    fill(6, 34, 51, 2 + c*6);
    ellipse(r1*1.5, r2, r3, r3);
  }
 
//----save
  save("ex2_2");
  save("ex2_2"+day()+hour()+minute()+second()+".png");
 
}
 
 

Activity Log