Created
August 14, 2015 02:59
-
-
Save bad-mushroom/f1b20d4a4615da49827e 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
func getRandomColor() -> SKColor | |
{ | |
var randomRed:CGFloat = CGFloat(drand48()) | |
var randomGreen:CGFloat = CGFloat(drand48()) | |
var randomBlue:CGFloat = CGFloat(drand48()) | |
return SKColor(red: randomRed, green: randomGreen, blue: randomBlue, alpha: 1.0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment