Skip to content

Instantly share code, notes, and snippets.

@mrdoob
Created February 24, 2013 19:50
Show Gist options
  • Save mrdoob/5025290 to your computer and use it in GitHub Desktop.
Save mrdoob/5025290 to your computer and use it in GitHub Desktop.
imageSmoothingEnabled
var context = canvas.getContext( '2d' );
context.imageSmoothingEnabled = false;
context.webkitImageSmoothingEnabled = false;
context.mozImageSmoothingEnabled = false;
context.drawImage( img, 0, 0, 256, 256 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment