Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 546 Bytes
<!DOCTYPE html>
Should draw a black square in the canvas below:
<canvas id="main" width="800" height="800"></canvas>
var canvas = document.getElementById('main');
var ctx = canvas.getContext('2d');
var x = 0.000000000000000000000000000000000000001;
// Problem line. If you comment this one out, it works (draws a square).
ctx.setTransform(x, 0, 0, x, 0, 0);
// This should reset the transform and draw a square. But it doesn't.