These are chat archives for pixijs/pixi.js

9th
Mar 2018
Baconiser
@Baconiser
Mar 09 2018 17:32
Hi guys, is it possible to do something like width:200px;height:200px; overflow:hidden; and the children would get cut off ?
Ivan Popelyshev
@ivanpopelyshev
Mar 09 2018 18:42
@andrea ther are different ways. Did you read articles about filters in pixi -v4?
@Andrea there are enough materials and demos to do it
https://github.com/pixijs/pixi-filters has multiple filters with extra texture
and there's experimental PR that allows to use backdrop: pixijs/pixi.js#4686 , backdrop is what is under the filtered container right now
there are countless threads in forum and issues about filters
@Baconiser yep, assign a filter, an cut it with filterArea, search "filterArea" in github issues, i remember that i recommended that thing
or just rectangular mask
Baconiser
@Baconiser
Mar 09 2018 18:45
ok thx
Ivan Popelyshev
@ivanpopelyshev
Mar 09 2018 18:53
i recommend to use mask first