mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Phaser.Canvas.setImageRenderingCrisp now sets image-rendering: pixelated, perfect for pixel art and which is now supported in Chrome 38.
This commit is contained in:
parent
804eea9ca3
commit
42f19f4978
2 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ Version 2.1.0 - "Cairhien" - -in development-
|
|||
* ScaleManager.setMinMax(minWidth, minHeight, maxWidth, maxHeight) is a handy function to allow you to set all the min/max dimensions in one call.
|
||||
* ArcadePhysics.collide and overlap can now accept 2 Arrays of objects to be used in the collision checks (thanks @ctmartinez1992 #1158)
|
||||
* RetroFont has a new property called frameData which contains the Frame objects for each of the letters in the font, which can be used by Sprites.
|
||||
* Phaser.Canvas.setImageRenderingCrisp now sets image-rendering: pixelated, perfect for pixel art and which is now supported in Chrome 38.
|
||||
|
||||
### Updates
|
||||
|
||||
|
|
|
@ -281,6 +281,7 @@ Phaser.Canvas = {
|
|||
canvas.style['image-rendering'] = '-moz-crisp-edges';
|
||||
canvas.style['image-rendering'] = '-webkit-optimize-contrast';
|
||||
canvas.style['image-rendering'] = 'optimize-contrast';
|
||||
canvas.style['image-rendering'] = 'pixelated';
|
||||
canvas.style.msInterpolationMode = 'nearest-neighbor';
|
||||
|
||||
return canvas;
|
||||
|
|
Loading…
Reference in a new issue