javascript - How to create an image pattern for a path with Snap.svg? -


Failed to create an image pattern for a path element through the library. Is this possible?

Create an Paper.image () and then attempting to call Element.pattern () An alternative or work solution.

So I wonder if it is possible that using Snap.svg lib. Or should I prepare the necessary ingredients and then add them to the 'SPG' with the necessary hands?

Thank you in advance!

Do you mean it?

  var paper = snap (200,200); Var pattern = paper.image ("logo.svg", 0,0,50,50). Pattern (0,0,50,50); Var Path = Paper ("M0,0h200v200h-200z") etter ("fill", pattern);    

Comments

Popular posts from this blog

c++ - Cmake produces file extensions in static library archives -

c# - Roxy file manager in MVC doesn't accept session path -

c# - XML - Serialize class - Some questions -