diff --git a/tests/bench_images_draw.nim b/tests/bench_images_draw.nim index bc09b0e..ffd03c7 100644 --- a/tests/bench_images_draw.nim +++ b/tests/bench_images_draw.nim @@ -10,6 +10,26 @@ block: timeIt "big-on-bigger NormalBlend": a.draw(b, translate(vec2(25, 25)), NormalBlend) +block: + let + a = newImage(1000, 1000) + b = newImage(500, 500) + a.fill(rgba(255, 0, 0, 255)) + b.fill(rgba(0, 255, 0, 255)) + + timeIt "big-on-bigger MaskBlend": + a.draw(b, translate(vec2(25, 25)), MaskBlend) + +block: + let + a = newImage(1000, 1000) + b = newImage(500, 500) + a.fill(rgba(255, 0, 0, 255)) + b.fill(rgba(0, 255, 0, 255)) + + timeIt "big-on-bigger OverwriteBlend": + a.draw(b, translate(vec2(25, 25)), OverwriteBlend) + block: let a = newImage(1000, 1000)