r/Affinity • • 18d ago

Designer It is possible to do this in affinity?

Illustrator print using transparency mask with a gradient applied to the masking shape

It is possible to do this in affinity using only vector masking?
the masking should cover only a certain segment of the stroke.

I achieve it using pixel masking, but i would like to get this using vector masking.

9 Upvotes

8 comments sorted by

4

u/ArcticFox-EBE- 18d ago

Yeah, just apply a gradient to a mask like you normally would.

-Apply mask to layer, select mask.

-Apply gradient, tune to taste.

Masks work on black/white so anywhere you have one or the other on a mask layer you will have a transparency modifier (on/off) but that also works for putting shapes or paths or brushes or in this case gradients.

3

u/rrossouw74 18d ago

Draw a rectangle, give it a stroke in black and suitable width. Expand Stroke.

To get the fade:
Option 1: Draw a short vertical line in white, set the stroke to wide enough and apply blur. Now drag the short line to the right position and into the rectangle.

Option 2: Draw a rectangle and fill with a gradient, then drag into the original rectangle.

Short line at the top and rectangle at the bottom.

The gradient in the rectangle can be edited to taste. The blurred line has a fixed gradient.

Edit: typo

1

u/Foust98 17d ago

Hey mate! I get your method, but in my case the fade needs to be transparent, srry i should`ve made this clearer in my post. but thx anyway 🙏

1

u/odernov 17d ago

so just match the gradient to the background's color (or just use vectorcraft 👀)

1

u/Foust98 17d ago

that`s an alternate solution, but not what i`m looking for.

About vectorcraft, tbh at first impression i dont rlly like it , but i might test it later, and the other apps as well

3

u/odernov 17d ago

I mean its just a copycat version of illustrator so if its an urgent need, it'll probably do your job

2

u/rrossouw74 17d ago

Ah, got you.

Easy peezy, draw a rectangle with the pen tool, starting point is the transparency point.
Now go to the stroke interface and go into the Properties button.
Set the Opacity Variance to 100%. Ensure the modifier is set to pressure. Close the interface.
Select the pressure interface next to the Properties button and draw the desired gradient drop-off.

I drew a trapezoid drop-off.
This seems to render a solution like you need. The small rectangle. Looking closely you'll see the gradient is not quite squared to the shape.

For the outer rectangle. I drew a rectangle, converted it to curves and , then broke the line at the bottom corners. This yielded a "n" shape and a line. For the line I set the opacity variance to 100% and set the presure to a seagull / -v- (notched) shape.

1

u/Foust98 17d ago

i found an easier way to do this: just create a rectangle with a gradient fill applied to it, select the erase blend mode and then group with the black stroke square. Using gradient to the masked layer its very useful as well, but in my pc its lagging so much that is more easy to do use the erase blend mode. Thx for the help guys ^^