From a61b048f3d900d2fedc9348d9e05f5eabe79711b Mon Sep 17 00:00:00 2001 From: k1w1 Date: Sun, 28 Aug 2022 10:19:31 -0700 Subject: [PATCH] Test for scale/translate/rotate. Currently failing --- test/tests/path2D.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/tests/path2D.js b/test/tests/path2D.js index c93a1c5..491d726 100644 --- a/test/tests/path2D.js +++ b/test/tests/path2D.js @@ -15,4 +15,15 @@ export default function path2D(ctx) { ctx.stroke(path1); ctx.fillStyle = 'grey'; ctx.fill(path1); -}; \ No newline at end of file + + 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); + }; \ No newline at end of file