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 {