How to mirror the left half of the canvas?
in
Programming Questions
•
1 month ago
i want to mirror the left half to the right half, but i have problem using the scale() function
my code goes like this:
- void setup(){
- size(800,400);
- background(250);
- smooth();
- }
- void draw(){
- fill(0);
- rect(0,0,200,400);
- fill(255);
- rect(0,200,200,400);
- scale(-1,1);
- copy(800,0,400,400,0,0,400,400);
- }
1