2018-08-24 18:42:07 +02:00
|
|
|
/**
|
|
|
|
* Splash
|
|
|
|
* Copyright (c) John Sundell 2018
|
|
|
|
* MIT license - see LICENSE.md
|
|
|
|
*/
|
|
|
|
|
2018-08-26 00:54:44 +02:00
|
|
|
#if os(iOS)
|
|
|
|
import UIKit
|
2018-08-26 22:49:39 +02:00
|
|
|
public typealias Color = UIColor
|
2018-08-26 00:54:44 +02:00
|
|
|
#elseif os(macOS)
|
|
|
|
import Cocoa
|
2018-08-26 22:49:39 +02:00
|
|
|
public typealias Color = NSColor
|
|
|
|
#endif
|
2018-08-26 00:54:44 +02:00
|
|
|
|
2018-08-26 22:57:02 +02:00
|
|
|
#if !os(Linux)
|
2018-08-26 00:54:44 +02:00
|
|
|
internal extension Color {
|
2018-08-26 22:49:39 +02:00
|
|
|
convenience init(red: CGFloat, green: CGFloat, blue: CGFloat) {
|
|
|
|
self.init(red: red, green: green, blue: blue, alpha: 1)
|
|
|
|
}
|
2018-08-26 00:54:44 +02:00
|
|
|
}
|
2018-08-26 22:57:02 +02:00
|
|
|
#endif
|