Search the Community

Showing results for tags 'globalCompositeOperation'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Platform
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 3 results

  1. Hi, Is it possible to change the globalCompositeOperation in PIXI CANVAS renderer? I can't find any info about this Thanks for your help, Fred for example: globalCompositeOperation = 'destination-out'
  2. I would like to highlight differences from one video frame to the next using Phaser's built in video streaming library. So functionally, as a person moves their body, the changes from one frame to the next will be highlighted and all of the unchanging image parts will become black. The important code snippet currently looks like: function create() { video =; video.onAccess.add(camAllowed, this); video.startMediaStream();} function camAllowed() { bmd = game.add.bitmapData(video.width, video.height); bmd.addToWorld(,, 0.5, 0.5);, takeSnapshot, this);}; function takeSnapshot() { video.grab(false,1,'difference');//params clear true or false, alpha, blend mode bmd.draw(video.snapshot);} The code almost works, but causes flashing video even for the parts of the scene that do not change from moment to moment. I played around with different globalCompositeOperation operations, many of which were trippy, not none which had the intended effect of making a completely black image except for where there was something different from the preceding to current frame.
  3. Hi! I am new here and to pixi.js and game development in general and I wanted to know if it is it possible to subtract a graphics shape from another shape using pixi.js? I know it is possible using canvas' "globalCompositeOperation" with "destination-out" or "source-out" like is demonstrated here: but I wanted to know if it is supported by webgl as well and if there's an already built method in pixi.js for it. if such a method does not exist yet, what would be the best way to implement it? thank you for your time.