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


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • 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

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

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: sprite.events.onInputDown(this.clearCanvas, 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...