summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/canvas-rotate.html
blob: 9cdb9489eaa2a0a425c75e94872d9d6f5d7b6311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<html>
    <canvas id=c width=200 height=200></canvas>
    <script>
        c = document.getElementById('c');
        x = c.getContext('2d');
        x.strokeStyle = 'black';
        for (i = 0; i < 8; ++i) {
            x.strokeRect(50, 50, 50, 50);
            x.rotate(0.05);
        }
    </script>
</html>