Test for scale/translate/rotate. Currently failing
This commit is contained in:
parent
127009ad7b
commit
a61b048f3d
@ -15,4 +15,15 @@ export default function path2D(ctx) {
|
|||||||
ctx.stroke(path1);
|
ctx.stroke(path1);
|
||||||
ctx.fillStyle = 'grey';
|
ctx.fillStyle = 'grey';
|
||||||
ctx.fill(path1);
|
ctx.fill(path1);
|
||||||
|
|
||||||
|
ctx.translate(10, 25);
|
||||||
|
ctx.lineWidth = 10;
|
||||||
|
ctx.stroke(path1);
|
||||||
|
|
||||||
|
ctx.rotate(Math.PI / 4);
|
||||||
|
ctx.scale(1.5, 1.5);
|
||||||
|
ctx.translate(10, 25);
|
||||||
|
|
||||||
|
ctx.strokeStyle = 'blue';
|
||||||
|
ctx.stroke(path1);
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user