We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi there,
I have looked at processings copy() and get() functions and am wondering if it is possible to copy irregular shapes out of images with similar functions?
For the sake of clarity if the copy and get functions are rectangular cookie cutters, I am looking for a cookie cutter that can cut triangles/circles etc.
Thanks!!
Answers
Maybe mask(): https://Processing.org/reference/PImage_mask_.html :-/
The key thing that the basic mask() example doesn't show you is that you can draw the mask using PGraphics.
Start with the basic example, and combine it with the PGraphics example to draw your own mask -- e.g. a triangle.
Wowww, awesome thank you both very much.