5 <canvas id=
"mycanvas" width=
"600" height=
"480"></canvas>
8 testRunner
.dumpAsTextWithPixelResults();
10 var canvas
= document
.getElementById('mycanvas');
11 var ctx
= canvas
.getContext('2d');
14 ctx
.strokeStyle
= 'rgba(0, 0, 0, 0.5)';
18 -123.7, -2.3, -2, -1, -0.3, -0.000001, 0, 0.000001, 0.3, 0.7,
19 1, 1.3, 1.5, 1.7, 1.99999, 2, 2.00001, 2.3, 4.3, 3934723942837.3
21 for (var i
= 0; i
< sweepAngles
.length
; i
++) {
22 sweepAngles
[i
] = sweepAngles
[i
] * Math
.PI
;
28 for (var i
= 0; i
< startAngles
.length
; i
++) {
29 startAngles
[i
] = startAngles
[i
] * Math
.PI
;
37 var anticlockwise
= false;
40 for (var r
= 0; r
< rotations
.length
; r
++) {
42 for (var i
= 0; i
< startAngles
.length
* 2; i
++) {
43 if (i
== startAngles
.length
) {
47 startAngle
= startAngles
[i
% startAngles
.length
] * sign
;
49 for (var j
= 0; j
< sweepAngles
.length
; j
++) {
53 ctx
.ellipse(18, 15, 8, 12, rotations
[r
], startAngle
, startAngle
+ (sweepAngles
[j
] * sign
), anticlockwise
);
60 ctx
.translate(0, height
);
63 ctx
.translate(0, height
* startAngles
.length
* 2);