add isOpaque tests

This commit is contained in:
Ryan Oldenburg 2022-06-08 18:31:03 -05:00
parent e0b21be7cd
commit c9278a261a

View file

@ -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)