How to take frame not from all window? I need to save only one part of my window .
1 Like
Hey! Here is an example if you’d like.
void setup () {
size(400, 400);
background(255);
}
void draw () {
strokeWeight(random(30));
stroke(random(255), random(255));
point(random(width), random(height));
if(millis() > 3000) {
PImage section = get(20, 20, 300, 200);
section.save("/get.png");
println("Saved");
noLoop();
}
}
Hope you find it helpful.
1 Like