Jump to content

Chrome image display


Recommended Posts

In Chrome, my images are not displayed correctly.  They either appear white or with the wrong opacity and some color disappear.  It works well in my Firefox.
Here is a small example that gives a problem and the screenshot show result in chrome and firefox.

<html lang="en">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="assets/phaser.min.js" ></script>        
            <script type="text/javascript">

                var game = new Phaser.Game(400, 100, Phaser.AUTO, '', { preload: preload, create: create});

                function preload() {
                    game.load.image('dude', './assets/images/dude.png')
                    game.stage.backgroundColor = 0x666600;    

                function create() {
                    this.game.add.sprite(0, 0, 'dude');



My Chrome version : 53.0.2785.143 (64-bit)
My Firefox : 49.0.1
Am I missing something?

Screen Shot 2016-10-10 at 14.18.12.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...