├── .gitignore ├── Package.swift ├── README.md ├── Sources └── Oklab │ ├── API │ ├── CGColor.swift │ ├── CGColorSpacesAppKit.swift │ ├── CIColor.swift │ ├── NSColor.swift │ ├── SwiftUIColor.swift │ └── UIColor.swift │ ├── Conversion │ ├── Clamp01.swift │ ├── Conversions.swift │ └── LinearSRGB.swift │ ├── Oklab.swift │ ├── OklabColor │ ├── OklabColor+Get.swift │ └── OklabColor.swift │ ├── OklabPolarColor │ ├── OklabPolar+Get.swift │ ├── OklabPolar+Hue.swift │ └── OklabPolar.swift │ └── Shared │ ├── Channel.swift │ └── PresetColors.swift └── Tests ├── LinuxMain.swift └── OklabTests ├── Helpers ├── AsserVectorsEqual.swift └── AssertOklabEqual.swift ├── OklabAppKitTests.swift ├── OklabPolarHueTests.swift ├── OklabTests.swift └── XCTestManifests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | /*.xcodeproj 5 | xcuserdata/ 6 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Package.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/README.md -------------------------------------------------------------------------------- /Sources/Oklab/API/CGColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/CGColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/API/CGColorSpacesAppKit.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/CGColorSpacesAppKit.swift -------------------------------------------------------------------------------- /Sources/Oklab/API/CIColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/CIColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/API/NSColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/NSColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/API/SwiftUIColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/SwiftUIColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/API/UIColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/API/UIColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/Conversion/Clamp01.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/Conversion/Clamp01.swift -------------------------------------------------------------------------------- /Sources/Oklab/Conversion/Conversions.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/Conversion/Conversions.swift -------------------------------------------------------------------------------- /Sources/Oklab/Conversion/LinearSRGB.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/Conversion/LinearSRGB.swift -------------------------------------------------------------------------------- /Sources/Oklab/Oklab.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/Oklab.swift -------------------------------------------------------------------------------- /Sources/Oklab/OklabColor/OklabColor+Get.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/OklabColor/OklabColor+Get.swift -------------------------------------------------------------------------------- /Sources/Oklab/OklabColor/OklabColor.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/OklabColor/OklabColor.swift -------------------------------------------------------------------------------- /Sources/Oklab/OklabPolarColor/OklabPolar+Get.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/OklabPolarColor/OklabPolar+Get.swift -------------------------------------------------------------------------------- /Sources/Oklab/OklabPolarColor/OklabPolar+Hue.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/OklabPolarColor/OklabPolar+Hue.swift -------------------------------------------------------------------------------- /Sources/Oklab/OklabPolarColor/OklabPolar.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/OklabPolarColor/OklabPolar.swift -------------------------------------------------------------------------------- /Sources/Oklab/Shared/Channel.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | 3 | public typealias Channel = Float 4 | -------------------------------------------------------------------------------- /Sources/Oklab/Shared/PresetColors.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Sources/Oklab/Shared/PresetColors.swift -------------------------------------------------------------------------------- /Tests/LinuxMain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/LinuxMain.swift -------------------------------------------------------------------------------- /Tests/OklabTests/Helpers/AsserVectorsEqual.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/Helpers/AsserVectorsEqual.swift -------------------------------------------------------------------------------- /Tests/OklabTests/Helpers/AssertOklabEqual.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/Helpers/AssertOklabEqual.swift -------------------------------------------------------------------------------- /Tests/OklabTests/OklabAppKitTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/OklabAppKitTests.swift -------------------------------------------------------------------------------- /Tests/OklabTests/OklabPolarHueTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/OklabPolarHueTests.swift -------------------------------------------------------------------------------- /Tests/OklabTests/OklabTests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/OklabTests.swift -------------------------------------------------------------------------------- /Tests/OklabTests/XCTestManifests.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/importRyan/Oklab/HEAD/Tests/OklabTests/XCTestManifests.swift --------------------------------------------------------------------------------