Jump to content

How to make translucent mask?


coter
 Share

Recommended Posts

How to do the following -
1) to frame an image with a translucent gradient.
2) read the pixel values from the image, which turned out to be the first step.

How such to make? Please write a brief step by step guide.
And another important point - the picture and the gradients must not fall into the display list.

I managed to make all the individual parts. But can't collect, so as to obtain the pixel color you need to keep the context of the canvas.
But can't collect, so as to obtain the pixel color you need to keep the context of the canvas.
In the sprite.texture.baseTexture.source returns one of the inverted gradient, kartinki on canvas no.

Link to comment
Share on other sites

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