Alex_Matveev

Members
  • Content Count

    31
  • Joined

  • Last visited

Everything posted by Alex_Matveev

  1. Please assist with transparent render https://jsfiddle.net/dxf7ujb2/
  2. I can use the blend mode only for the Container (everything screen is visible)? let cont = new PIXI.Container(); let rec0 = new PIXI.Graphics(); rec0.lineStyle(0); rec0.beginFill(0xffffff, 1); rec0.drawRect(300, 300, 300, 300); let rec1 = new PIXI.Graphics(); rec1.lineStyle(0); rec1.beginFill(0xff0000, 1); rec1.drawRect(400, 400, 300, 300); rec1.alpha = 0.5; var blend = PIXI.BlendMode.from2d('destination-in'); rec1.blendMode = blend; cont.addChild(rec0); cont.addChild(rec1); this.app.stage.addChild(cont);
  3. let rec0 = new PIXI.Graphics(); rec0.lineStyle(0); rec0.beginFill(0xffffff, 1); rec0.drawRect(300, 300, 300, 300); let rec1 = new PIXI.Graphics(); rec1.lineStyle(0); rec1.beginFill(0xff0000, 1); rec1.drawRect(400, 400, 300, 300); var blend = PIXI.BlendMode.from2d('source-in'); rec1.blendMode = blend; this.app.stage.addChild(rec0); this.app.stage.addChild(rec1); I see part red cube and all screene dark 1. yes 2. yes
  4. In canvas renderer with png images all good. But blend mode working is strange...
  5. Please add multi stroke support to text Like this: http://jsfiddle.net/nzsv0m00/
  6. Thanks, but all png images have black (alpha channel) rectangle
  7. How use globalCompositeOperation for canvas render? globalCompositeOperation = "destination-in";
  8. Hi I hope PIXI will support these technologies in future: http://threerings.github.io/flump/ http://gafmedia.com/ https://helpx.adobe.com/flash/using/creating-publishing-html5-canvas-document.html
  9. pixiFLIP support WebGL only?
  10. I see the plugin http://www.goodboydigital.com/pixijs/pixiFLIP/ when it is ready?
  11. Sorry, clear? https://github.com/GoodBoyDigital/pixi.js/issues/1889
  12. hitArea property with PIXI.RoundedRectangle doesn't work var button = new PIXI.Graphics();button.beginFill();button.drawRoundedRect(500, 500, 224, 164, 40);button.endFill();button.buttonMode = true;button.interactive = true;button.hitArea = new PIXI.RoundedRectangle(500, 500, 224, 164, 40);this.addChild(button)Please assist.
  13. Please assist http://codepen.io/mishaa/pen/raKzrm Need convert the filter to V3
  14. http://www.html5gamedevs.com/topic/14536-hittest-in-v3/
  15. I usually do something like this mySprite.on('mousedown',onPress);mySprite.on('mousedown',onRelease); function onRelease(e){ mySprite .off('mousemove',onDrag);} function onPress(e){ mySprite .on('mousemove',onDrag);} function onDrag(e){ console.log("mouse is moving")}The work only if mySprite.interactive = true Need hitTest with any sprites
  16. Yes, but the work only when mySprite is interactive object. Need trigger event over a not interactive sprite.
  17. The filter http://codepen.io/mishaa/pen/raKzrm work in PIXI v3?
  18. THX But how to trigger a callback every time I "mousemove" over a sprite (the sprite not interactive)
  19. How use hitTest in V3
  20. circleSprite.mousemove = function(interactionData) { var interactionManager = new PIXI.InteractionManager(); if(interactionManager.hitTest(this, interactionData)) { console.log("mousemove over sprite"); };};The not work in V3. Please assist