Adding an image to shape?

How do you add a background for a shape? ie instead of filling a circle with a colour, fill it with an image?

2 Likes

Processing.org/reference/texture_.html

2 Likes

Hello,

An example of masking here:
https://forum.processing.org/one/topic/image-into-shapes.html

Note: remove the P2D from line 7.

:)

I had some fun with this:

3 Likes