diff --git a/tests/test_images.nim b/tests/test_images.nim index 2e0fcd6..12e7d67 100644 --- a/tests/test_images.nim +++ b/tests/test_images.nim @@ -203,6 +203,17 @@ block: image.fill(rgba(255, 255, 255, 255)) doAssert not image.isTransparent() +block: + let image = newImage(100, 100) + image.fill(rgba(255, 255, 255, 255)) + doAssert image.isOpaque() + +block: + let image = newImage(100, 100) + image.fill(rgba(255, 255, 255, 255)) + image[9, 13] = rgbx(250, 250, 250, 250) + doAssert not image.isOpaque() + block: let a = newImage(400, 400) let b = newImage(156, 434)