Jump to content
Search Community

muskan

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by muskan

  1. I am creating a dynamic path using my SVG. I now wish to add gradient to my path but I am stuck. The way I am trying, my gradient is coming along the path as shown in image 2 while I require it to be the kind in image 1. Needed_Picture Current_Picture

    My gradient and stroke definitions are as follows :

    </svg>

    script :

                   ` svgPath.setAttribute("stroke-width", "10");            });`

     

    I am creating a dynamic path using my SVG. I now wish to add gradient to my path but I am stuck. The way I am trying, my gradient is coming along the path as shown in image 2 while I require it to be the kind in the image named as Current.

    My gradient and stroke definitions are as follows :

    </svg>

    script :

                   ` svgPath.setAttribute("stroke-width", "10");            });`

    post-52002-0-28458700-1491888979_thumb.jpg

    post-52002-0-98273600-1491888989_thumb.png

  2. Hey! Did you succeed? I have a similar problem where I want to draw a SVG path with lines with the help of the movements of my mouse and I am kinda stuck here. Have gone through Pen too and browsing stuff to see if I can use anything similar. I want a path to be dynamically created as and when the mouse moves.

×
×
  • Create New...