We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello p5.js forums! :)
So i have been wondering if there was a built in function that gives a background image to a certain shape, like, let's say i want to draw a 100x100 rect and give it a fill of an image.
normally with colors, we use the following :
The rectangle will appear to be white, well, i was hoping for a function like the following :
Now, i'm fully aware of the image(); and the loadImage(); functions, but those are not as functional as using a background image for say a triangle();
someting like shape.fillStyle would be very helpful in p5.js :)
I hope my idea was clear enough for you understanding :)