Sign in to follow this  
coter

How to make translucent mask?

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.

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.