Skip to content

Commit

Permalink
Use binary MadGraphics
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Liu <andy@madmachine.io>
  • Loading branch information
andy0808 committed Dec 17, 2024
1 parent ed6f139 commit 9e2f6ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ struct Firework {
updateSparks()

for spark in sparks {
let color = Color.blend(foreground: color.rawValue, background: Color.black.rawValue, mask: spark.lifespan)
let data = Color.blend(foreground: color.rawValue, background: Color.black.rawValue, with: spark.lifespan)
layer.draw() { canvas in
canvas.fillCircle(at: spark.pos, radius: size, data: color.rawValue)
canvas.fillCircle(at: spark.pos, radius: size, data: data)
}
}
} else {
Expand Down

0 comments on commit 9e2f6ad

Please sign in to comment.