From a4a9da76be08bbc7eb2cb005d0404ce2bc2506eb Mon Sep 17 00:00:00 2001 From: treeform Date: Sun, 3 Oct 2021 20:12:16 -0700 Subject: [PATCH] f --- tests/test_images_draw.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test_images_draw.nim b/tests/test_images_draw.nim index 5e7ba31..088cfc4 100644 --- a/tests/test_images_draw.nim +++ b/tests/test_images_draw.nim @@ -174,6 +174,18 @@ block: a.draw(b, translate(vec2(14.64, 50.4)) * rotate(45.toRadians)) doDiff(a, "smooth2") +# block: +# let +# a = newImage(100, 100) +# b = newImage(100, 100) +# path = newPath() +# path.rect(-25, -25, 50, 50) +# path.transform(rotate(45 * PI.float32 / 180)) +# b.fillPath(path, rgba(0, 0, 0, 255), translate(vec2(50, 50))) +# a.fill(rgba(255, 255, 255, 255)) +# a.draw(b, translate(vec2(0, 0.4))) +# doDiff(a, "smooth2") + block: let a = newImage(100, 100)