I wrote a simple drawing application using vaadin, from my app I collect all the points coordinate which are generated by using moving mouse on a canvas. What is the best way to convert these points data into svg? Many thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want a line that follows the points, then create a path element line this:
Where x0, y0 etc. are the coordinates you have. The Z is optional; it creates a closed polygon by adding a straight line from the last point to the first, and lets you apply a fill style instead of just a line style.