From ea80f8f66bbb45227ec9e64ded77a2f296b0a5a3 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Wed, 8 Jun 2022 01:46:39 -0500 Subject: [PATCH] more --- tests/benchmark_paths.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/benchmark_paths.nim b/tests/benchmark_paths.nim index a643ea6..4139a74 100644 --- a/tests/benchmark_paths.nim +++ b/tests/benchmark_paths.nim @@ -45,6 +45,7 @@ timeIt "roundedRect Image MaskBlend": paint.blendMode = MaskBlend let image = newImage(width, height) + image.fill(rgbx(255, 255, 255, 255)) image.fillPath(path, paint) timeIt "roundedRect Mask OverwriteBlend": @@ -57,4 +58,15 @@ timeIt "roundedRect Mask NormalBlend": timeIt "roundedRect Mask MaskBlend": let mask = newMask(width, height) + mask.fill(255) mask.fillPath(path, blendMode = MaskBlend) + +timeIt "roundedRect Mask SubtractMaskBlend": + let mask = newMask(width, height) + mask.fill(255) + mask.fillPath(path, blendMode = SubtractMaskBlend) + +timeIt "roundedRect Mask ExcludeMaskBlend": + let mask = newMask(width, height) + mask.fill(255) + mask.fillPath(path, blendMode = ExcludeMaskBlend)