We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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
see other thread