Fill Skia Path with texture instead of a Color #1256
-
Is is possible to fill Skia Path with texture instead of a Colour, tiled textures that repeats and covers the entire path? Below is how I am creating the Path currently .Could not find any reference in doc for adding textures. <FitBox |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes of course, you can use any shaders for this: And you might be interested on how to do tessaltion (for texture mapping for instance). Have a look at https://www.youtube.com/watch?v=7SCzL-XnfUU You may be interested by this component as well: https://shopify.github.io/react-native-skia/docs/shapes/vertices/ I hope this helps. |
Beta Was this translation helpful? Give feedback.
Yes of course, you can use any shaders for this:
https://shopify.github.io/react-native-skia/docs/shaders/images
https://shopify.github.io/react-native-skia/docs/shaders/gradients
And you might be interested on how to do tessaltion (for texture mapping for instance). Have a look at https://www.youtube.com/watch?v=7SCzL-XnfUU
You may be interested by this component as well: https://shopify.github.io/react-native-skia/docs/shapes/vertices/
I hope this helps.