Skip to content

Instantly share code, notes, and snippets.

@Le0nX
Created November 1, 2019 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Le0nX/adaa7d7f31d90cae32ebe840930d1961 to your computer and use it in GitHub Desktop.
Save Le0nX/adaa7d7f31d90cae32ebe840930d1961 to your computer and use it in GitHub Desktop.
import Foundation
import UIKit
//MARK: - RGB
/**
- Descriptioin:
RGB color settings
*/
extension UIColor {
static func RGB (_ red: CGFloat, _ green: CGFloat, _ blue: CGFloat) -> UIColor {
return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment