test img, benchmark mask minifyby2

This commit is contained in:
Ryan Oldenburg 2021-02-08 16:34:05 -06:00
parent bbe207baa0
commit 72a4c3efb3
2 changed files with 14 additions and 0 deletions

14
tests/benchmark_masks.nim Normal file
View file

@ -0,0 +1,14 @@
import chroma, pixie, benchy
let mask = newMask(2560, 1440)
proc reset() =
mask.fill(63)
reset()
timeIt "minifyBy2":
let minified = mask.minifyBy2()
doAssert minified[0, 0] == 63
reset()

BIN
tests/images/circleMask.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB