diff --git a/examples/release/example-minart-backend.scala b/examples/release/example-minart-backend.scala index 51b01eb..ad6d8b5 100644 --- a/examples/release/example-minart-backend.scala +++ b/examples/release/example-minart-backend.scala @@ -1,5 +1,5 @@ //> using scala "3.3.0" -//> using lib "eu.joaocosta::minart::0.5.2" +//> using lib "eu.joaocosta::minart::0.5.3" //> using lib "eu.joaocosta::interim::0.1.4" /** This file contains a simple graphical backend written in Minart. @@ -86,7 +86,7 @@ object MinartBackend: op.asDrawChars().foreach { case RenderOp.DrawChar(Rect(x, y, _, _), color, char) => val charSprite = font.coloredChar(char, MinartColor(color.r, color.g, color.b)) canvas - .blit(charSprite, Some(MinartColor(255, 0, 255)))(x, y) + .blit(charSprite, BlendMode.ColorMask(MinartColor(255, 0, 255)))(x, y) } case RenderOp.Custom(Rect(x, y, w, h), color, _) => canvas.fillRegion(x, y, w, h, MinartColor(color.r, color.g, color.b)) diff --git a/examples/snapshot/example-minart-backend.scala b/examples/snapshot/example-minart-backend.scala index cab097c..04bb1c5 100644 --- a/examples/snapshot/example-minart-backend.scala +++ b/examples/snapshot/example-minart-backend.scala @@ -1,5 +1,5 @@ //> using scala "3.3.0" -//> using lib "eu.joaocosta::minart::0.5.2" +//> using lib "eu.joaocosta::minart::0.5.3" //> using lib "eu.joaocosta::interim::0.1.5-SNAPSHOT" /** This file contains a simple graphical backend written in Minart. @@ -86,7 +86,7 @@ object MinartBackend: op.asDrawChars().foreach { case RenderOp.DrawChar(Rect(x, y, _, _), color, char) => val charSprite = font.coloredChar(char, MinartColor(color.r, color.g, color.b)) canvas - .blit(charSprite, Some(MinartColor(255, 0, 255)))(x, y) + .blit(charSprite, BlendMode.ColorMask(MinartColor(255, 0, 255)))(x, y) } case RenderOp.Custom(Rect(x, y, w, h), color, _) => canvas.fillRegion(x, y, w, h, MinartColor(color.r, color.g, color.b))