The SKEmitterNode in SpriteKit lets you change particle properties, but how can you animate the particles so they twinkle like at the 0:12 mark of this video?
https://www.youtube.com/watch?v=wYy2G0lVTAM
Is this possible?
We tried rapidly alternating the color from yellow to white (the sprite is white originally) but this doesn't achieve the desired twinkling effect:
let colorizeYellow = SKAction.colorize(with: UIColor.yellow, colorBlendFactor: 1.0, duration: 0.2)
let colorizeReset = SKAction.colorize(withColorBlendFactor: 0.0, duration: 0.2)
let colorizeSequence = SKAction.sequence([colorizeYellow, colorizeReset])
let colorizeRepeat = SKAction.repeatForever(colorizeSequence)