Hi,
I’ve never used masks and I thought this was going to be easier than it is right now.
I’m trying to figure out how to use a pattern into a non-square image, lets say a body (actual body, not a physical one). So, for different bodies, i can change the pattern (let’s say 5-6 squares with repeated images).
I’ve tried with masks and this is what i think you need:
-
The actual body
-
A mask for the body (duplicated image) with a power of 4 width and height and a 3pixel black stroke.
-
Patterns
The problem i see here is that, first of all, having to change the mask(body image) some pixels to be a power of 4, changes the size of the image so there are some parts where the pattern is no applied. This is not big but for example in the arms, there could be a complete line without fill.
Also, the color of the pattern is mixed with the body (like if it had alpha) and i can’t seem to change either the alpha property or colour.
I’ve also tried with effects, using fill… or compositePaint trying to mix two images (pattern and body) and filling it into the body) without success.
I’ve searched and found some mask guides, but as far as I understand, they all talk about different scenarios and i don’t really see how can i apply them in my game and specially be able to do what i have in mind.
Do you guys have any idea? I can be more specific if you want but i think that if i keep writing i’ll just confuse you more.
Thanks in advance

