Sclae a PShape in place
in
Programming Questions
•
7 months ago
How do you scale a PShape without moving it? When I run the code below, the shape scales, but also shoots off the screen.
- PShape circle;
- void setup(){
- size(960,540,P2D);
- frameRate(25);
- smooth();
- circle = createShape(ELLIPSE, width/2, height/2, 30, 30);
- }
- void draw(){
- background(0);
- fill(255,255,255);
- shape(circle);
- circle.scale(1.1);
- }
1