Week 4 (Tu­t­o­r­i­a­l 6)

by Albert Ma
  • Show Sketch
/** @peep sketchcode */
size (500, 500);
smooth(); 
strokeWeight(10); 
noFill();
stroke(238, 58, 140); 
background(151, 255, 255);
float x = random(400);
float y = random (300);
float z = random (200);
line (x, y, z);
triangle( x, y, z, x, y, z);
bezier (0, x/3, y/4, z/5 , x/3, y/4, z/5, random(width));

  • Show Sketch
/** @peep sketchcode */
size(500, 500); //size of the sketch
background(152, 245, 255); 
stroke(238, 48, 167, 50); 
noFill();
for (int i = 0; i < width; i++) { 
  float r = random(width/70); //setting the strokeweight, increase width/40 for lighter opacity
  strokeWeight(r/4);
  float offset = r * 5.0;
  quad(random(width), 250, i - width/2, i - width/2, i,i,i);
 
}

  • Show Sketch
/** @peep sketchcode */
size(300, 300); //size of the sketch
background(152, 245, 255); 
stroke(238, 48, 167); 
strokeWeight(0.7);
float noiseScale = 0.06;
 
void draw() {
  noiseSeed(10);
  float noiseVal = noise(15 * noiseScale) * 30; //affects 'smoothness'
  quad(60 - noiseVal, 62 + noiseVal, 106 - noiseVal, 200 + noiseVal, 15 - noiseVal, 140 + noiseVal, 200 + noiseVal, 130 + noiseVal); //general shape
  noiseScale += 3
}

Comments

Nobody has said anything yet.