Can we cast a shadow under a Mask
element?
#1434
-
I tried a code like below and it didn't work. <Mask mask={shape}>
<LinearGradient start={vec(0, 0)} end={vec(256, 256)} colors={["blue", "yellow"]} />
<Shadow dx={10} dy={10} blur={25} color="#93b8c4" />
</Mask> I wanted to cast a shadow in the shape of |
Beta Was this translation helpful? Give feedback.
Answered by
wcandillon
Mar 21, 2023
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
bglgwyng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
LinearGradient
is a shader andShadow
is an image filter, you need to apply them to a shape.For instance: