U
U
Uncle Vanya2018-05-23 16:08:43
JavaScript
Uncle Vanya, 2018-05-23 16:08:43

Do not darken part of the area in the darkened area. Canvas/Pixi. How?

In general, I need to hate the entire background. I did it on pixi (it doesn't matter)
Now we need to leave the part of the zone that is in the darkened zone (background) not darkened.
How can i do this?
The picture below is what I need.
5b0567cd39bbc395510673.bin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-05-23
@QSem

You can apply a semi-transparent mask
https://jsfiddle.net/Stalk/0gc4x7qw/ (click on the cat) The
mask itself can be prepared as a separate file or generated on the fly, on another canvas.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question