Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9453ff
commit 14dc278
Showing
13 changed files
with
115 additions
and
48 deletions.
There are no files selected for viewing
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
Empty file modified
0
LivePhotoDemoSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata
100644 → 100755
Empty file.
Empty file.
Empty file modified
0
LivePhotoDemoSwift/Assets.xcassets/AppIcon.appiconset/Contents.json
100644 → 100755
Empty file.
Empty file.
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// DTColorMacro.swift | ||
// 动图 | ||
// | ||
// Created by 孙国林 on 2017/11/8. | ||
// Copyright © 2017年 欧巴刚弄死他. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public func HEXACOLOR(value : UInt, alpha : CGFloat) -> UIColor { | ||
return UIColor.init(red: CGFloat((value & 0xff0000) >> 16) / 255.0, | ||
green: CGFloat((value & 0xff00) >> 8) / 255.0, | ||
blue: CGFloat(value & 0xff) / 255.0, | ||
alpha: alpha) | ||
} | ||
|
||
public func HEXCOLOR(value : UInt) -> UIColor { | ||
return HEXACOLOR(value: value, alpha: 1) | ||
} | ||
|
||
public func RGBACOLOR(red : UInt, green : UInt, blue : UInt, alpha : CGFloat) -> UIColor { | ||
return UIColor.init(red: CGFloat(red) / 255.0, green: CGFloat(green) / 255.0, blue: CGFloat(blue) / 255.0, alpha: alpha) | ||
} | ||
|
||
public func RGBCOLOR(red : UInt, green : UInt, blue : UInt) -> UIColor { | ||
return RGBACOLOR(red: red, green: green, blue: blue, alpha: 1) | ||
} | ||
|
||
|
Empty file.
Empty file.
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
Empty file.
Oops, something went wrong.