The Cross

  • Show Sketch
/** @peep sketchcode */
 
PImage photo;
PImage photo2;
 
  size(700, 700);
  photo = loadImage("star.jpg");
 
 
 
  image(photo, 0, 0);
 
 
 
 
  size(700, 700);
  photo = loadImage("fog.jpg");
 
  tint(300, 50);  
 
 
  image(photo, 0, 0);
 
  bezier(50, 120, 40, 120, 30, 120, 20, 120);
fill(7000);
int steps = 10;
 
for (int i = 01; i <= steps; i++) {
  float t = i / float(steps);
  float x = bezierPoint(50, 40, 30, 20, t);
  float y = bezierPoint(120,120, 120, 120, t);
  ellipse(x, y, 1000, 800);
}
 
rotate(radians(180));
for (int i1 = 01; i1 <= steps; i1++) {
  float t1 = i1 / float(steps);
  float x1 = bezierPoint(50, 40, 30, 20, t1);
  float y1 = bezierPoint(120,120, 120, 120, t1);
  ellipse(x1, y1, 900, 600);
 
}
 
 
rotate(radians(180));
for (int i2 = 01; i2 <= steps; i2++) {
  float t2 = i2 / float(steps);
  float x2 = bezierPoint(50, 40, 30, 20, t2);
  float y2 = bezierPoint(120,120, 120, 120, t2);
  ellipse(x2, y2, 1000, 800);
 
}
 
 
rotate(radians(180));
for (int i3 = 01; i3 <= steps; i3++) {
  float t3 = i3 / float(steps);
  float x3 = bezierPoint(50, 40, 30, 20, t3);
  float y3 = bezierPoint(120,120, 120, 120, t3);
  ellipse(x3, y3, 1000, 1000);
 
}
 
 
rotate(radians(180));
for (int i4 = 01; i4 <= steps; i4++) {
  float t4 = i4 / float(steps);
  float x4 = bezierPoint(50, 40, 30, 20, t4);
  float y4 = bezierPoint(120,120, 120, 120, t4);
  ellipse(x4, y4, 1300, 1300);
 
}
 
strokeWeight(20);  // Thicker
line(350, 10, 240, 35000);
 
strokeWeight(20);  // Thicker
line(600, 300, 60, 150);

Last modified on 9 Mar 2016 at 4:18pm