These are chat archives for pixijs/pixi.js

29th
May 2016
Century Guo
@guoshencheng
May 29 2016 06:08
hey guys! I am using pixi to make some graphics, I meet some problems, for example, I generate two circle, one is blue and the other is red, when they intersect, the Overlapping part should be purple,is there any function to generate it automatically or it should be drawn by my self with method arc() ?
Ivan Popelyshev
@ivanpopelyshev
May 29 2016 09:15
you have to set blendMode for that graphics
Century Guo
@guoshencheng
May 29 2016 09:17
okey, got it , i will try it later ,thanks!
Century Guo
@guoshencheng
May 29 2016 10:30
This message was deleted
@ivanpopelyshev I set the blendMode as PIXI.BLEND_MODES.MULTIPLY and the graphics's part which is not overlapping is hide
blob
Ivan Popelyshev
@ivanpopelyshev
May 29 2016 10:34
yep
blendmodes are that tricky :)
try ADD
Century Guo
@guoshencheng
May 29 2016 10:37
=。=,okey, I'v used ADD,but the color is not correct, em..... i may try some other solution
thanks