Jump to content

Transparent Strokes possible?


Recommended Posts

I am in the process of designing an icon for a circular slider. To create a transparent area around the thumb of the slider I have tried to use the transparency settings of the stroke. Unfortunately the results were at least unexpected for me.

image.png.bbaada6d0bc83018a5960aadf14d6288.png

The Slider consists of two donuts and a circle where its stroke should be transparent when exported into a slice. In the image, I used white as a stroke color to show which area should be later transparent.

If I just change the transparency of the stroke the following happens:

 

image.png.1f67e3b2ad6c24400ab7512feb3cb400.png

What I do not understand is, that the fill is now occupying the area of the stroke...

Any help is appreciated. Even a workaround on how to create a final slice with the desired effect.

Cheers,

Bernd

Link to comment
Share on other sites

  • Staff

Hi @Bernd L,

Welcome to the forums. 

You have 2 different objects. Making the stroke of that circle transparent will not create a "hole" in the other shape. 

What you need to do is to duplicate the circle. One copy should have no stroke ( you can hide this one for now), and the other one should only have stroke. Set your stroke alignment to  "outside". With the "only stroke" layer selected, expand stroke. Now select both the Pie and the Stroke layer and Subtract . You will now have the pie shape with a cut-out of your stroke. Unhid that layer and now you have a transparent "gap". If you need to delete that extra "pie" from underneath the circle", With the pie layer selected, choose Divide - image.png . Delete the unnecessary shape and you're good to go. 

image.png

Thanks,

Gabe. 

image.png

Link to comment
Share on other sites

Thank you for the very fast reply. I have a partial success.

Thats the setup before the substract:

image.png.2ecc7a963605746505c62abd97b445e2.png

The layers:

image.png.7b9e8c55f3df13753aa973da498798b7.png

After substract:

image.png.7d65850faac56c68eb60c0682f6f9010.png

Here you can see its an outside stroke

image.png.d86a245789fa29df4903fcf5850978a5.png

Layers after subtraction:

image.png.6af504095473368a28fbadc888284ba8.png

Unfortunately, the fill instead of the outside stroke is subtracted.

Did I miss something?

 

 

Link to comment
Share on other sites

8 hours ago, Bernd L said:

Did I miss something?

I think you missed the Layer menu > Expand Stroke step on the "only stroke" layer. When I do that on my Circular Slider test.afdesign file, I get a "(Curves)" object (which I named "Expanded" in my test file) -- essentially the same as a donut converted to curves because after expansion it has both an outer & inner curve. To keep things simple, if you are going to do it this way, I suggest using the Divide boolean to break it into separate curves & deleting the smaller one.

Because you have 2 donuts, you will need to duplicate the remaining larger curve so that you can subtract one of them from each of the two donuts, resulting in something like this Circular Slider test finish.afdesign.

All 3 1.10.8, & all 3 V2.5.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Link to comment
Share on other sites

It is a pity that you can not use Blend mode type Erase at Outline. This would be great for this case: group Slider with Circle (circle is top), at Circle set Outline with Erase mode.

Question on dev. Why can not set Erase mode on Outline?

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.5.2636 (Retail)
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 23H2, Build 22631.4317.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.