Search the Community

Showing results for tags 'clear canvas'.

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 2 results

  1. Hi! I want to clear the whole canvas. I know there is one way by changing state, but I want to be in same state and clear whole canvas when a sprite is clicked. Something like:, this);
  2. So, like the title says. A simplified version of the code I am trying to use looks like this: var graphics = new PIXI.Graphics(); . . . ... draw some stuff ... . . . graphics.clear(); In reality, things are a bit more complicated than I show above, so it might be a problem that I am causing. I don't see how though, so I thought I would post and ask: 1. Am I using it right? 2. Is there a possible bug? I tried to work around by forcing Pixi to use a canvas and getting a context to that canvas and clearing it myself with clearRect but that didn't work either. I get the feeling I am having some fundamental misunderstanding...