<DOCTYPE HTML
<itle> test:2..joinparallel>
<!-- Testing: Line joins are drawn at 180-degree joins -->
<script src=" =" tests/.js<script
<link ="stylesheet" hreftests/SimpleTesttest">
<body canvas ="c" ="100" height>pclass> (fallback)</>/>
<canvas id="c
<cript
function(ctx x,,r,g,,a,poscolourd {
var pixel = ctx.getImageData(x, y, 1, 1);
var pr = pixel.data[0],
pg = pixel.data[1],
pb = pixel.data[2],
pa = pixel.data[3];
ok(r-d <= pr && pr <= r+d &&
g-d <= pg && pg <= g+d &&
b-d <= pb && pb <= b+d &&
a-d <= pa && pa <= a+d,
"pixel " +pos+" is " +pr+"," +pg+"," +pb+"," +pa+"; expected " +colour+" +/- " +d);
}
SimpleTest.waitForExplicitFinish();
addLoadEvent(function () {
var canvas = document.getElementById('c' );
var ctx = canvas .getContext('2d' );
ctx.fillStyle = '#f00' ;
ctx.fillRect(0, 0, 100, 50);
ctx.strokeStyle = '#0f0' ;
ctx.lineWidth = 300;
ctx.lineJoin = 'round' ;
ctx.beginPath();
ctx.moveTo(-100, 25);
ctx.lineTo(0, 25);
ctx.lineTo(-100, 25);
ctx.stroke();
isPixel(ctx, 1,1,l.[0],
isPixel(ctx 8,1, ,5,,5, "81,0250255, 0;
isPixel(ctxpbpixel[2],
el, ,8 ,5,,5,",8," ,5025, 0;
SimpleTest();
})java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
</script >
Messung V0.5 C=93 H=100 G=96
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland