Jump to content
Search Community

Make Canvas Background Transparent

Sıradışı Digital test
Moderator Tag

Recommended Posts

Hi,

 

I'm not all that well versed in canvas to offer you some help on the subject. It appears that something that is being applied in your code is actually setting everything as white as you mention, but I couldn't tell you what ?‍♂️. The only thing I can tell you is that GSAP is not doing that, most likely is this:

ctx.fillRect(0,0,canvas.width,canvas.height);	

You're basically filling the entire canvas, but unfortunately that is all I can offer in this particular subject, since IDK if changing those values will affect the effect you have right now.

 

Sorry I can't be of more assistance. Hopefully this helps.

Happy Tweening!

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...