Skip to content
Discussion options

You must be logged in to vote

LinearGradient is a shader and Shadow is an image filter, you need to apply them to a shape.
For instance:

<Mask mask={shape}>
  <Rect>
    <LinearGradient start={vec(0, 0)} end={vec(256, 256)} colors={["blue", "yellow"]} /> 
    <Shadow dx={10} dy={10} blur={25} color="#93b8c4" />
  </Rect>
</Mask>

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bglgwyng
Comment options

@bglgwyng
Comment options

@wcandillon
Comment options

@bglgwyng
Comment options

Answer selected by bglgwyng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants