swiftでwebカラーを読む
func hex (hexStr : NSString,alpha : CGFloat) -> UIColor { let hexStr = hexStr.replacingOccurrences(of: "#", with: "") let scanner = Scanner(string: hexStr as String) var color: UInt32 = 0 if scanner.scanHexInt32(&color) { let r = CGFloat((color & 0xFF0000) >> 16) / 255.0 let g = CGFloat((color & 0x0…
2020/05/19 15:08