Last active
June 1, 2019 20:54
-
-
Save alexpersian/3e9cd35c9dcc7ba5946f25ae7d7aa793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
private var changeColor: SKAction { | |
return SKAction.colorize(with: UIColor.generateRandomColor(), colorBlendFactor: 1.0, duration: 0) | |
} | |
// ... | |
private func setup() { | |
addChild(dvdNode) | |
dvdNode.run(changeColor) // Run the changeColor action here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment