Created
January 12, 2016 01:52
-
-
Save allgamesallfree/127a8bd39ef2852cdf0a 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
convenience init(r: Int, g: Int, b: Int, alpha: CGFloat = 1.0) { | |
let red = CGFloat(r)/255 | |
let green = CGFloat(g)/255 | |
let blue = CGFloat(b)/255 | |
self.init(red: red, green: green, blue: blue, alpha: alpha) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment