2020-12-09 08:04:01 +00:00
|
|
|
import benchy, chroma, pixie, vmath
|
2020-12-09 07:18:57 +00:00
|
|
|
|
2020-12-09 07:25:48 +00:00
|
|
|
let
|
2020-12-09 08:04:01 +00:00
|
|
|
a = newImage(1000, 1000)
|
|
|
|
b = newImage(1000, 1000)
|
|
|
|
|
|
|
|
b.fill(rgba(127, 127, 127, 255))
|
2020-12-09 07:18:57 +00:00
|
|
|
|
|
|
|
timeIt "bmNormal":
|
2020-12-09 08:04:01 +00:00
|
|
|
a.draw(b, vec2(0, 0), bmNormal)
|
2020-12-09 07:18:57 +00:00
|
|
|
|
|
|
|
timeIt "bmDarken":
|
2020-12-09 08:04:01 +00:00
|
|
|
a.draw(b, vec2(0, 0), bmDarken)
|
2020-12-09 07:18:57 +00:00
|
|
|
|
|
|
|
timeIt "bmMultiply":
|
2020-12-09 08:04:01 +00:00
|
|
|
a.draw(b, vec2(0, 0), bmMultiply)
|