add isOpaque tests
This commit is contained in:
parent
e0b21be7cd
commit
c9278a261a
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue