{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/2486","repository_url":"https://api.github.com/repos/pixijs/pixi.js","labels_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2486/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2486/comments","events_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2486/events","html_url":"https://github.com/pixijs/pixi.js/issues/2486","id":147275371,"number":2486,"title":"PIXI.BLEND_MODES.DIFFERENCE doesn't do anything (pixi.js - v3.0.10)?","user":{"login":"dnassler","id":5436231,"avatar_url":"https://avatars.githubusercontent.com/u/5436231?v=3","gravatar_id":"","url":"https://api.github.com/users/dnassler","html_url":"https://github.com/dnassler","followers_url":"https://api.github.com/users/dnassler/followers","following_url":"https://api.github.com/users/dnassler/following{/other_user}","gists_url":"https://api.github.com/users/dnassler/gists{/gist_id}","starred_url":"https://api.github.com/users/dnassler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnassler/subscriptions","organizations_url":"https://api.github.com/users/dnassler/orgs","repos_url":"https://api.github.com/users/dnassler/repos","events_url":"https://api.github.com/users/dnassler/events{/privacy}","received_events_url":"https://api.github.com/users/dnassler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":34,"created_at":"2016-04-10T22:43:03Z","updated_at":"2016-05-22T10:12:25Z","closed_at":null,"body":"I'm trying to use PIXI.BLEND_MODES.DIFFERENCE on a PIXI.Graphics object and it seems to have no effect? Is there a trick to how to use it properly? \r\n\r\n```\r\n  var graphics1 = new PIXI.Graphics();\r\n  graphics1.beginFill(0xFFFFFF);\r\n  graphics1.lineStyle(0);\r\n  graphics1.drawRect(10,10,10,10);\r\n  graphics1.endFill();\r\n  graphics1.blendMode = PIXI.BLEND_MODES.DIFFERENCE;\r\n  graphics1.position.set(0,0);\r\n  stage.addChild(graphics1);\r\n\r\n  var graphics2 = new PIXI.Graphics();\r\n  graphics2.beginFill(0xFFFFFF);\r\n  graphics2.lineStyle(0);\r\n  graphics2.drawRect(10,10,10,10);\r\n  graphics2.endFill();\r\n  graphics2.blendMode = PIXI.BLEND_MODES.DIFFERENCE;\r\n  graphics2.position.set(5,5);\r\n  stage.addChild(graphics2);\r\n\r\n```\r\n\r\nI would expect that the overlapping section to be inverted to black since the difference between 1 and 1 is zero so the result should be zero which means black but instead I see only white where they overlap.\r\n\r\nAm I misunderstanding something trivially simple?"},"comment":{"url":"https://api.github.com/repos/pixijs/pixi.js/issues/comments/220824471","html_url":"https://github.com/pixijs/pixi.js/issues/2486#issuecomment-220824471","issue_url":"https://api.github.com/repos/pixijs/pixi.js/issues/2486","id":220824471,"user":{"login":"ivanpopelyshev","id":695831,"avatar_url":"https://avatars.githubusercontent.com/u/695831?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanpopelyshev","html_url":"https://github.com/ivanpopelyshev","followers_url":"https://api.github.com/users/ivanpopelyshev/followers","following_url":"https://api.github.com/users/ivanpopelyshev/following{/other_user}","gists_url":"https://api.github.com/users/ivanpopelyshev/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanpopelyshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanpopelyshev/subscriptions","organizations_url":"https://api.github.com/users/ivanpopelyshev/orgs","repos_url":"https://api.github.com/users/ivanpopelyshev/repos","events_url":"https://api.github.com/users/ivanpopelyshev/events{/privacy}","received_events_url":"https://api.github.com/users/ivanpopelyshev/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T10:12:25Z","updated_at":"2016-05-22T10:12:25Z","body":"@weepy try again. I changed pixi-picture.js. Same link."}}
{"actor":{"display_login":"ivanpopelyshev"}}