From 9e2f6ad091c07dab3ed4a965eaf17aef06829e24 Mon Sep 17 00:00:00 2001 From: Andy Liu Date: Tue, 17 Dec 2024 20:46:54 +0700 Subject: [PATCH] Use binary MadGraphics Signed-off-by: Andy Liu --- .../13MoreProjects/Fireworks/Sources/Firework.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/SwiftIOPlayground/13MoreProjects/Fireworks/Sources/Firework.swift b/Examples/SwiftIOPlayground/13MoreProjects/Fireworks/Sources/Firework.swift index 86102f4..1ae1a80 100644 --- a/Examples/SwiftIOPlayground/13MoreProjects/Fireworks/Sources/Firework.swift +++ b/Examples/SwiftIOPlayground/13MoreProjects/Fireworks/Sources/Firework.swift @@ -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 {