Jump to content

Gradient alpha along a line?


tobbe
 Share

Recommended Posts

Is it possible to draw a simple line with a varying alpha? For example, a straight line with alpha=0.9 in one end and linearly varying to alpha=0.1 in the other end?

I am a total noob when it comes to PixiJS and have spent the last couple of hours on this but it is a rather steep learning curve. I am note sure I am using the right terminology, so google and the docs come up empty (for me at least).

Thanks,

Toby

 

 

alpha-line.png

Link to comment
Share on other sites

  • tobbe changed the title to Gradient alpha along a line?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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