Skip to content

Commit

Permalink
Merge pull request #49 from scala-steward/update/minart-0.5.3
Browse files Browse the repository at this point in the history
Update minart to 0.5.3
  • Loading branch information
JD557 authored Aug 27, 2023
2 parents bc5b51e + a744e7f commit 7a5cce4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/release/example-minart-backend.scala
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions examples/snapshot/example-minart-backend.scala
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 7a5cce4

Please sign in to comment.