random rotation angle and startpoint when i run my sketch

ursurs
edited July 2015 in Questions about Code

can i make it so that.....every time when i run it, DIFFERENT ROTATION ANGLE and SRARTPOINT?

"shape(s, 25, 25);(startpoint)"

PShape s;  // The PShape object

void setup() {
  size(100, 100, P2D);
  // Creating a custom PShape as a square, by
  // specifying a series of vertices.
  s = createShape();
  s.beginShape();
  s.fill(0, 0, 255);
  s.noStroke();
  s.vertex(0, 0);
  s.vertex(0, 50);
  s.vertex(50, 50);
  s.vertex(50, 0);
  s.endShape(CLOSE);
}

void draw() {
  shape(s, 25, 25);
}

Answers

Sign In or Register to comment.