processing.js dynamic masking/texturing image with a shape
in
Processing with Other Languages
•
11 months ago
Hi,
im just thinking, what would be the best way to texture or mask an image in js.
Would be nice if i could just use an svg as shape and either fill that with a texture (shape is moving, texture sticks to it) or use the svg to mask an image (shape is moving, you see different parts of the image behind it.
im not sure if the mask() command works dynamically, in a way that the mask is calculated each frame when its moved
im also not sure how much performance it takes with the alpha mask, when i actually just need complete transparent, or hidden.
thanks for tips and advices
best
c
1