Firstly, to convert an existing color into a hex: ... Int(g * 0xff), Int(b * 0xff) ) } } let color = UIColor.red let hex = color.
確定! 回上一頁