###What is This
Here are 22 different colors, which are compatible with white color, I got these from《One Punch Man》.
Now you can use these colors in your App, go get them from UIColor
or just UIView
.
You can download ZIP to see how this works (very simple), or just download file OnePunchColor.swift
, and use it as follow.
我从《一拳超人》动画中吸取了22种和白色非常匹配的颜色,现在你可以通过 UIColor
或者 UIView
来调用这些颜色。
你可以下载整个项目来看一下,也可以只下载 OnePunchColor.swift
这个文件,然后按照下面所示的这种方法使用。
###How to Use // quick version self.view.punch()
// slow version
self.view.punchWithInterval(2)
// complete version
self.view.backgroundColor = UIColor.onePunchColor()