This commit is contained in:
Ryan Oldenburg 2022-07-30 01:43:56 -05:00
parent 62cb1ea164
commit aa4d126a42

View file

@ -10,6 +10,26 @@ block:
timeIt "big-on-bigger NormalBlend":
a.draw(b, translate(vec2(25, 25)), NormalBlend)
block:
let
a = newImage(1000, 1000)
b = newImage(500, 500)
a.fill(rgba(255, 0, 0, 255))
b.fill(rgba(0, 255, 0, 255))
timeIt "big-on-bigger MaskBlend":
a.draw(b, translate(vec2(25, 25)), MaskBlend)
block:
let
a = newImage(1000, 1000)
b = newImage(500, 500)
a.fill(rgba(255, 0, 0, 255))
b.fill(rgba(0, 255, 0, 255))
timeIt "big-on-bigger OverwriteBlend":
a.draw(b, translate(vec2(25, 25)), OverwriteBlend)
block:
let
a = newImage(1000, 1000)