How to take frame not from all window

Hey! :blush: 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. :hugs:

1 Like