Skip to content

Instantly share code, notes, and snippets.

@bad-mushroom
Created August 14, 2015 02:59
Show Gist options
  • Save bad-mushroom/f1b20d4a4615da49827e to your computer and use it in GitHub Desktop.
Save bad-mushroom/f1b20d4a4615da49827e to your computer and use it in GitHub Desktop.
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