Bernd L Posted September 13, 2018 Share Posted September 13, 2018 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. 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: 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 Quote Link to comment Share on other sites More sharing options...
Staff Gabe Posted September 13, 2018 Staff Share Posted September 13, 2018 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 - . Delete the unnecessary shape and you're good to go. Thanks, Gabe. Quote Link to comment Share on other sites More sharing options...
Bernd L Posted September 13, 2018 Author Share Posted September 13, 2018 Thank you for the very fast reply. I have a partial success. Thats the setup before the substract: The layers: After substract: Here you can see its an outside stroke Layers after subtraction: Unfortunately, the fill instead of the outside stroke is subtracted. Did I miss something? Quote Link to comment Share on other sites More sharing options...
R C-R Posted September 13, 2018 Share Posted September 13, 2018 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. Quote 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 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7 Link to comment Share on other sites More sharing options...
Bernd L Posted September 14, 2018 Author Share Posted September 14, 2018 I was now able to reproduce the desired effect. Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Pšenda Posted September 14, 2018 Share Posted September 14, 2018 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? Quote 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 More sharing options...
Recommended Posts
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.