trisquel-icecat/icecat/testing/web-platform/tests/css/css-paint-api/paint2d-imageSmoothingQuality.low-ref.html
2025-10-06 02:35:48 -06:00

14 lines
417 B
HTML

<!DOCTYPE html>
<canvas id="canvas" width="300" height="300"></canvas>
<script>
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
ctx.imageSmoothingQuality = 'low';
ctx.fillStyle = 'green';
ctx.fillRect(0, 0, 300, 300);
const image = new Image();
image.src = './resources/html5.png';
image.onload = () => {
ctx.drawImage(image, 0, 0, 200, 200);
};
</script>