Replies: 1 comment 2 replies
-
@gaishimo If you need to match Figma's semantic on more advanced examples you will need to use a path. const path = Skia.Path.Make();
path.addRRect(rrect(rect(0, 0, 100, 100), 10, 10));
return (
<Path path={path} style="stroke" strokeWidth={10} color="red">
<Shadow dx={0} dy={0} blur={1} color="green" />
</Path>
); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to set a drop shadow on a stroke (not "fill") Rect?
I set shadow on a stroke Rect as follows, but it is not reflected. Is there no other way but to have another Fill Rect?
The following is a drawing with Figma that I actually want to do.

Beta Was this translation helpful? Give feedback.
All reactions