Tool um rotierte Bildausschnitte aus Bildstapeln zu schneiden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. class Cover {
  2. PVector p1, p2, p3, p4;
  3. PShape coverRect;
  4. Cover(PVector p1_, PVector p2_, PVector p3_, PVector p4_) {
  5. p1 = new PVector(p1_.x, p1_.y);
  6. p2 = new PVector(p2_.x, p2_.y);
  7. p3 = new PVector(p3_.x, p3_.y);
  8. p4 = new PVector(p4_.x, p4_.y);
  9. coverRect = createShape();
  10. coverRect.beginShape();
  11. coverRect.fill(0,200);
  12. coverRect.noStroke();
  13. coverRect.vertex(p1.x, p1.y);
  14. coverRect.vertex(p2.x, p2.y);
  15. coverRect.vertex(p3.x, p3.y);
  16. coverRect.vertex(p4.x, p4.y);
  17. coverRect.endShape(CLOSE);
  18. }
  19. }