Jump to content
Search Community

MorphSVGPlugin with Canvas

Frederic Gontier test
Moderator Tag

Recommended Posts

15 minutes ago, Frederic Gontier said:

They have stroke no fill... Is it possible or am I doing something wrong?

The result that you have is correct for what you're actually doing. You could simplify your render function a bit though:

 

See the Pen jOORYvP?editors=0010 by GreenSock (@GreenSock) on CodePen

 

But I'm assuming you want the canvas version to look like the SVG version. You just have to adjust the context's lineWidth and strokeStyle at that point:

 

See the Pen pooBpQy?editors=0010 by GreenSock (@GreenSock) on CodePen

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...