Build Information
Successful build of WrkstrmColor, reference 0.0.1 (b99c8a
), with Swift 6.0 for macOS (SPM) on 8 Nov 2024 17:28:49 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wrkstrm/WrkstrmColor.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/wrkstrm/WrkstrmColor
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at b99c8a1 Update Snapshot.swift
Cloned https://github.com/wrkstrm/WrkstrmColor.git
Revision (git rev-parse @):
b99c8a11e9dfb74d76759bc22ad46da0044366b7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/wrkstrm/WrkstrmColor.git at 0.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "wrkstrmcolor",
"name": "WrkstrmColor",
"url": "https://github.com/wrkstrm/WrkstrmColor.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WrkstrmColor",
"dependencies": [
]
}
]
}
Fetching https://github.com/wrkstrm/WrkstrmColor.git
[1/575] Fetching wrkstrmcolor
Fetched https://github.com/wrkstrm/WrkstrmColor.git from cache (1.03s)
Creating working copy for https://github.com/wrkstrm/WrkstrmColor.git
Working copy of https://github.com/wrkstrm/WrkstrmColor.git resolved at 0.0.1 (b99c8a1)
warning: '.resolve-product-dependencies': dependency 'wrkstrmcolor' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/wrkstrm/WrkstrmColor.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/13] Compiling WrkstrmColor GradientDescriptor+Sequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/GradientDescriptor+Sequence.swift:31:7: warning: expression took 10ms to type-check (limit: 10ms)
29 |
30 | // Returns a color at the current index, computed from the gradient descriptor.
31 | return self.color(for: S.Value(index), count: S.Value(self.count))
| `- warning: expression took 10ms to type-check (limit: 10ms)
32 | }
33 | }
[4/14] Compiling WrkstrmColor Palette+HSLuv.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:8:21: warning: expression took 12ms to type-check (limit: 10ms)
6 | reversed: Bool = false
7 | ) -> HSLuv<V> {
8 | var dIndex: V = .init(index)
| `- warning: expression took 12ms to type-check (limit: 10ms)
9 | let dCount: V = .init(count)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:18:11: warning: expression took 90ms to type-check (limit: 10ms)
16 | switch gradient {
17 | case .red:
18 | HSLuv(
| `- warning: expression took 90ms to type-check (limit: 10ms)
19 | h: 12.2,
20 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:24:11: warning: expression took 71ms to type-check (limit: 10ms)
22 |
23 | case .blue:
24 | HSLuv(
| `- warning: expression took 71ms to type-check (limit: 10ms)
25 | h: 258.6,
26 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:30:11: warning: expression took 72ms to type-check (limit: 10ms)
28 |
29 | case .green:
30 | HSLuv(
| `- warning: expression took 72ms to type-check (limit: 10ms)
31 | h: 127.7,
32 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:36:11: warning: expression took 87ms to type-check (limit: 10ms)
34 |
35 | case .yellow:
36 | HSLuv(
| `- warning: expression took 87ms to type-check (limit: 10ms)
37 | h: 86,
38 | s: 100.0 - 33.0 * ratio,
[5/14] Compiling WrkstrmColor Palette.swift
[6/14] Compiling WrkstrmColor RGBEncodable+ContrastRatio.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 20ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 20ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 228ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 228ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 217ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 217ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:14:7: warning: expression took 283ms to type-check (limit: 10ms)
12 | let (red, green, blue) = components
13 | let luminance =
14 | 0.212_6 * invGamSRGB(inverseColor: red) + 0.715_2 * invGamSRGB(inverseColor: green) + 0.072_2
| `- warning: expression took 283ms to type-check (limit: 10ms)
15 | * invGamSRGB(inverseColor: blue)
16 | return min(1, max(0, luminance))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:14:7: warning: expression took 269ms to type-check (limit: 10ms)
12 | let (red, green, blue) = components
13 | let luminance =
14 | 0.212_6 * invGamSRGB(inverseColor: red) + 0.715_2 * invGamSRGB(inverseColor: green) + 0.072_2
| `- warning: expression took 269ms to type-check (limit: 10ms)
15 | * invGamSRGB(inverseColor: blue)
16 | return min(1, max(0, luminance))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:24: warning: expression took 40ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 40ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:20: warning: expression took 23ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 23ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:14: warning: expression took 23ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 23ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:14: warning: expression took 22ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 22ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:33:17: warning: expression took 11ms to type-check (limit: 10ms)
31 | let lighterColor: Value = .init(min(Double(ourLuminance), Double(theirLuminance)))
32 | let darkerColor: Value = .init(max(Double(ourLuminance), Double(theirLuminance)))
33 | return 1 / ((lighterColor + 0.05) / (darkerColor + 0.05))
| `- warning: expression took 11ms to type-check (limit: 10ms)
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:33:12: warning: expression took 69ms to type-check (limit: 10ms)
31 | let lighterColor: Value = .init(min(Double(ourLuminance), Double(theirLuminance)))
32 | let darkerColor: Value = .init(max(Double(ourLuminance), Double(theirLuminance)))
33 | return 1 / ((lighterColor + 0.05) / (darkerColor + 0.05))
| `- warning: expression took 69ms to type-check (limit: 10ms)
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:33:12: warning: expression took 62ms to type-check (limit: 10ms)
31 | let lighterColor: Value = .init(min(Double(ourLuminance), Double(theirLuminance)))
32 | let darkerColor: Value = .init(max(Double(ourLuminance), Double(theirLuminance)))
33 | return 1 / ((lighterColor + 0.05) / (darkerColor + 0.05))
| `- warning: expression took 62ms to type-check (limit: 10ms)
34 | }
35 | }
[7/14] Compiling WrkstrmColor Color+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Color+Extensions.swift:27:5: warning: expression took 10ms to type-check (limit: 10ms)
25 | public init(hsluv: HSLuv<some BinaryFloatingPoint>, opacity: Double) {
26 | let rgb = hsluvToRgb(hsluv)
27 | self.init(red: Double(rgb.r), green: Double(rgb.g), blue: Double(rgb.b), opacity: opacity)
| `- warning: expression took 10ms to type-check (limit: 10ms)
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:34: warning: expression took 70ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 70ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 981ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 981ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 945ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 945ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:34: warning: expression took 59ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 59ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 1068ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 1068ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 1056ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 1056ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:67:13: warning: expression took 10ms to type-check (limit: 10ms)
65 | }
66 |
67 | let u = 13 * l * (varU - Constant.refU())
| `- warning: expression took 10ms to type-check (limit: 10ms)
68 | let v = 13 * l * (varV - Constant.refV())
69 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:29: warning: expression took 12ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 12ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:22: warning: expression took 48ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 48ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:18: warning: expression took 28ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 28ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 33ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 33ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 27ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 27ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 16ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 16ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 16ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 16ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 23ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 23ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 14ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 14ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 24ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 24ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 282ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 282ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 282ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 282ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 32ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 32ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 32ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 32ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 24ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 24ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 25ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 25ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 23ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 23ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 21ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 21ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:243:12: warning: expression took 10ms to type-check (limit: 10ms)
241 | ch = Foundation.round(ch * 255.0)
242 |
243 | return String(Int(ch), radix: 16, uppercase: false).padding(
| `- warning: expression took 10ms to type-check (limit: 10ms)
244 | toLength: 2,
245 | withPad: "0",
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:268:10: warning: expression took 19ms to type-check (limit: 10ms)
266 |
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
| `- warning: expression took 19ms to type-check (limit: 10ms)
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:269:10: warning: expression took 18ms to type-check (limit: 10ms)
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
| `- warning: expression took 18ms to type-check (limit: 10ms)
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:267:12: warning: expression took 114ms to type-check (limit: 10ms)
265 | Scanner(string: string).scanHexInt64(&rgbValue)
266 |
267 | return RGB(
| `- warning: expression took 114ms to type-check (limit: 10ms)
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
[8/14] Compiling WrkstrmColor Encodings+Conversions.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Color+Extensions.swift:27:5: warning: expression took 10ms to type-check (limit: 10ms)
25 | public init(hsluv: HSLuv<some BinaryFloatingPoint>, opacity: Double) {
26 | let rgb = hsluvToRgb(hsluv)
27 | self.init(red: Double(rgb.r), green: Double(rgb.g), blue: Double(rgb.b), opacity: opacity)
| `- warning: expression took 10ms to type-check (limit: 10ms)
28 | }
29 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:34: warning: expression took 70ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 70ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 981ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 981ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 945ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 945ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:34: warning: expression took 59ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 59ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 1068ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 1068ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 1056ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 1056ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:67:13: warning: expression took 10ms to type-check (limit: 10ms)
65 | }
66 |
67 | let u = 13 * l * (varU - Constant.refU())
| `- warning: expression took 10ms to type-check (limit: 10ms)
68 | let v = 13 * l * (varV - Constant.refV())
69 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:29: warning: expression took 12ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 12ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:22: warning: expression took 48ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 48ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:18: warning: expression took 28ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 28ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 33ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 33ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 27ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 27ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 16ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 16ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 16ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 16ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 23ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 23ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 14ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 14ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 24ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 24ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 282ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 282ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 282ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 282ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 32ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 32ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 32ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 32ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 24ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 24ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 25ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 25ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 23ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 23ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 21ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 21ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:243:12: warning: expression took 10ms to type-check (limit: 10ms)
241 | ch = Foundation.round(ch * 255.0)
242 |
243 | return String(Int(ch), radix: 16, uppercase: false).padding(
| `- warning: expression took 10ms to type-check (limit: 10ms)
244 | toLength: 2,
245 | withPad: "0",
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:268:10: warning: expression took 19ms to type-check (limit: 10ms)
266 |
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
| `- warning: expression took 19ms to type-check (limit: 10ms)
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:269:10: warning: expression took 18ms to type-check (limit: 10ms)
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
| `- warning: expression took 18ms to type-check (limit: 10ms)
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:267:12: warning: expression took 114ms to type-check (limit: 10ms)
265 | Scanner(string: string).scanHexInt64(&rgbValue)
266 |
267 | return RGB(
| `- warning: expression took 114ms to type-check (limit: 10ms)
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
[9/14] Emitting module WrkstrmColor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
[10/14] Compiling WrkstrmColor GradientDescriptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/GradientDescriptor.swift:26:8: warning: expression took 29ms to type-check (limit: 10ms)
24 | /// relationship.
25 | public init(start: Value, end: Value) {
26 | if start == end {
| `- warning: expression took 29ms to type-check (limit: 10ms)
27 | type = .static
28 | range = (start...end)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/GradientDescriptor.swift:107:7: warning: expression took 11ms to type-check (limit: 10ms)
105 | // Calculate the middle values based on the delta types and magnitudes.
106 | let a =
107 | (aRange.type == .decreasing ? aRange.range.upperBound : aRange.range.lowerBound) + aRange
| `- warning: expression took 11ms to type-check (limit: 10ms)
108 | .magnitude / 2
109 | let b =
[11/14] Compiling WrkstrmColor Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:80:24: warning: expression took 13ms to type-check (limit: 10ms)
78 | /// - parameter lightness: Double
79 | func getBounds<Value: ComponentValue>(lightness: Value) -> [Vector<Value>] {
80 | let sub1 = Value(pow(Double(lightness) + 16, 3) / 1_560_896)
| `- warning: expression took 13ms to type-check (limit: 10ms)
81 | let sub2: Value = sub1 > Constant.epsilon() ? sub1 : lightness / Constant.kappa()
82 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:26: warning: expression took 18ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 18ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:25: warning: expression took 22ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 22ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:25: warning: expression took 22ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 22ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:30: warning: expression took 15ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 15ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:30: warning: expression took 412ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 412ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:29: warning: expression took 303ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 303ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:29: warning: expression took 297ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 297ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:94:25: warning: expression took 36ms to type-check (limit: 10ms)
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
| `- warning: expression took 36ms to type-check (limit: 10ms)
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
96 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:94:25: warning: expression took 35ms to type-check (limit: 10ms)
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
| `- warning: expression took 35ms to type-check (limit: 10ms)
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
96 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:28: warning: expression took 10ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 10ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 21ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 21ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 553ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 553ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 538ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 538ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
[12/14] Compiling WrkstrmColor Encodings.swift
[13/14] Compiling WrkstrmColor Palette+Legacy.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+Legacy.swift:114:12: warning: expression took 19ms to type-check (limit: 10ms)
112 | let color: HSLuv<CGFloat> =
113 | hsluvGradient(for: gradient, index: index, count: count, reversed: reversed)
114 | return Color(hsluv: color, opacity: 1)
| `- warning: expression took 19ms to type-check (limit: 10ms)
115 | }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+Legacy.swift:204:12: warning: expression took 18ms to type-check (limit: 10ms)
202 | let color: HSLuv<CGFloat> = hsluvGradient(
203 | for: gradient, index: index, count: count, reversed: reversed)
204 | return NSColor(hsluv: color, alpha: 1)
| `- warning: expression took 18ms to type-check (limit: 10ms)
205 | }
206 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+Legacy.swift:228:12: warning: expression took 10ms to type-check (limit: 10ms)
226 | let color = Self.rgb(for: gradient, index: index, count: count, reversed: reversed)
227 | return NSColor(
228 | red: CGFloat(color.r / 255.0),
| `- warning: expression took 10ms to type-check (limit: 10ms)
229 | green: CGFloat(color.g / 255.0),
230 | blue: CGFloat(color.b / 255.0),
[14/14] Compiling WrkstrmColor HSLuv+GradientDescriptor.swift
Build complete! (16.21s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "WrkstrmColor",
"name" : "WrkstrmColor",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "16.0"
},
{
"name" : "watchos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "WrkstrmColor",
"targets" : [
"WrkstrmColor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WrkstrmColorTests",
"module_type" : "SwiftTarget",
"name" : "WrkstrmColorTests",
"path" : "Tests/WrkstrmColorTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WrkstrmColorTests/Resources/snapshot-rev4.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ConstantTests.swift",
"HSLuvTests.swift",
"KitTests.swift",
"Snapshot.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WrkstrmColor"
],
"type" : "test"
},
{
"c99name" : "WrkstrmColor",
"module_type" : "SwiftTarget",
"name" : "WrkstrmColor",
"path" : "Sources/WrkstrmColor",
"product_memberships" : [
"WrkstrmColor"
],
"sources" : [
"Color+Extensions.swift",
"Encodings+Conversions.swift",
"Encodings.swift",
"GradientDescriptor+Sequence.swift",
"GradientDescriptor.swift",
"HSLuv+GradientDescriptor.swift",
"Math.swift",
"Palette+HSLuv.swift",
"Palette+Legacy.swift",
"Palette.swift",
"RGBEncodable+ContrastRatio.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/wrkstrm/wrkstrmcolor/0.0.1
Repository: wrkstrm/WrkstrmColor
Swift version used: 6.0
Target: WrkstrmColor
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'WrkstrmColor'...
Finished extracting symbol information for 'WrkstrmColor'. (9.16s)
Building documentation for 'WrkstrmColor'...
Finished building documentation for 'WrkstrmColor' (0.24s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/wrkstrm/wrkstrmcolor/0.0.1
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (2.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3168] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.65s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/57] Compiling SymbolKit SemanticVersion.swift
[12/57] Compiling SymbolKit AccessControl.swift
[13/57] Compiling SymbolKit Availability.swift
[14/57] Compiling SymbolKit AvailabilityItem.swift
[15/57] Compiling SymbolKit Domain.swift
[16/57] Compiling SymbolKit GenericConstraint.swift
[17/57] Compiling SymbolKit GenericParameter.swift
[18/57] Compiling SymbolKit Generics.swift
[19/57] Compiling SymbolKit Namespace.swift
[20/57] Compiling SymbolKit Names.swift
[21/57] Compiling SymbolKit SPI.swift
[22/57] Compiling SymbolKit Snippet.swift
[23/57] Compiling SymbolKit Extension.swift
[24/57] Emitting module Snippets
[25/57] Compiling Snippets Snippet.swift
[26/57] Compiling Snippets SnippetParser.swift
[27/57] Emitting module SymbolKit
[28/57] Compiling SymbolKit Relationship.swift
[29/57] Compiling SymbolKit RelationshipKind.swift
[30/57] Compiling SymbolKit SourceOrigin.swift
[31/57] Compiling SymbolKit GenericConstraints.swift
[32/57] Compiling SymbolKit Swift.swift
[33/57] Compiling SymbolKit Symbol.swift
[34/57] Compiling SymbolKit SymbolKind.swift
[35/57] Compiling SymbolKit SymbolGraph.swift
[36/57] Compiling SymbolKit GraphCollector.swift
[37/57] Compiling SymbolKit Identifier.swift
[38/57] Compiling SymbolKit KindIdentifier.swift
[39/57] Compiling SymbolKit Location.swift
[40/57] Compiling SymbolKit Mutability.swift
[41/57] Compiling SymbolKit SourceRange.swift
[42/57] Compiling SymbolKit Metadata.swift
[43/57] Compiling SymbolKit Module.swift
[44/57] Compiling SymbolKit OperatingSystem.swift
[45/57] Compiling SymbolKit Platform.swift
[46/57] Compiling SymbolKit Mixin+Equals.swift
[47/57] Compiling SymbolKit Mixin+Hash.swift
[48/57] Compiling SymbolKit Mixin.swift
[49/57] Compiling SymbolKit LineList.swift
[50/57] Compiling SymbolKit Position.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.40s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/12] Compiling WrkstrmColor Palette.swift
[3/13] Compiling WrkstrmColor Palette+Legacy.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+Legacy.swift:204:12: warning: expression took 11ms to type-check (limit: 10ms)
202 | let color: HSLuv<CGFloat> = hsluvGradient(
203 | for: gradient, index: index, count: count, reversed: reversed)
204 | return NSColor(hsluv: color, alpha: 1)
| `- warning: expression took 11ms to type-check (limit: 10ms)
205 | }
206 |
[4/13] Compiling WrkstrmColor GradientDescriptor+Sequence.swift
[5/13] Compiling WrkstrmColor RGBEncodable+ContrastRatio.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 10ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 10ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 208ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 208ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:8:12: warning: expression took 206ms to type-check (limit: 10ms)
6 | var luminance: Value {
7 | let (red, green, blue) = components as Components<Value>
8 | return 0.212_6 * red + 0.715_2 * green + 0.072_2 * blue
| `- warning: expression took 206ms to type-check (limit: 10ms)
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:14:7: warning: expression took 246ms to type-check (limit: 10ms)
12 | let (red, green, blue) = components
13 | let luminance =
14 | 0.212_6 * invGamSRGB(inverseColor: red) + 0.715_2 * invGamSRGB(inverseColor: green) + 0.072_2
| `- warning: expression took 246ms to type-check (limit: 10ms)
15 | * invGamSRGB(inverseColor: blue)
16 | return min(1, max(0, luminance))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:14:7: warning: expression took 246ms to type-check (limit: 10ms)
12 | let (red, green, blue) = components
13 | let luminance =
14 | 0.212_6 * invGamSRGB(inverseColor: red) + 0.715_2 * invGamSRGB(inverseColor: green) + 0.072_2
| `- warning: expression took 246ms to type-check (limit: 10ms)
15 | * invGamSRGB(inverseColor: blue)
16 | return min(1, max(0, luminance))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:24: warning: expression took 25ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 25ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:20: warning: expression took 19ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 19ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:14: warning: expression took 19ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 19ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:21:14: warning: expression took 20ms to type-check (limit: 10ms)
19 | func invGamSRGB(inverseColor: Value) -> Value {
20 | guard inverseColor <= 0.039_28 else {
21 | return Value(pow(Double((inverseColor + 0.055) / 1.055), 2.4))
| `- warning: expression took 20ms to type-check (limit: 10ms)
22 | }
23 | return inverseColor / 12.92
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:33:12: warning: expression took 60ms to type-check (limit: 10ms)
31 | let lighterColor: Value = .init(min(Double(ourLuminance), Double(theirLuminance)))
32 | let darkerColor: Value = .init(max(Double(ourLuminance), Double(theirLuminance)))
33 | return 1 / ((lighterColor + 0.05) / (darkerColor + 0.05))
| `- warning: expression took 60ms to type-check (limit: 10ms)
34 | }
35 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/RGBEncodable+ContrastRatio.swift:33:12: warning: expression took 55ms to type-check (limit: 10ms)
31 | let lighterColor: Value = .init(min(Double(ourLuminance), Double(theirLuminance)))
32 | let darkerColor: Value = .init(max(Double(ourLuminance), Double(theirLuminance)))
33 | return 1 / ((lighterColor + 0.05) / (darkerColor + 0.05))
| `- warning: expression took 55ms to type-check (limit: 10ms)
34 | }
35 | }
[6/13] Compiling WrkstrmColor Palette+HSLuv.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:18:11: warning: expression took 73ms to type-check (limit: 10ms)
16 | switch gradient {
17 | case .red:
18 | HSLuv(
| `- warning: expression took 73ms to type-check (limit: 10ms)
19 | h: 12.2,
20 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:24:11: warning: expression took 59ms to type-check (limit: 10ms)
22 |
23 | case .blue:
24 | HSLuv(
| `- warning: expression took 59ms to type-check (limit: 10ms)
25 | h: 258.6,
26 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:30:11: warning: expression took 56ms to type-check (limit: 10ms)
28 |
29 | case .green:
30 | HSLuv(
| `- warning: expression took 56ms to type-check (limit: 10ms)
31 | h: 127.7,
32 | s: 100.0 - 33.0 * ratio,
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Palette+HSLuv.swift:36:11: warning: expression took 60ms to type-check (limit: 10ms)
34 |
35 | case .yellow:
36 | HSLuv(
| `- warning: expression took 60ms to type-check (limit: 10ms)
37 | h: 86,
38 | s: 100.0 - 33.0 * ratio,
[7/13] Compiling WrkstrmColor GradientDescriptor.swift
[8/13] Compiling WrkstrmColor HSLuv+GradientDescriptor.swift
[9/13] Compiling WrkstrmColor Encodings.swift
[10/13] Compiling WrkstrmColor Math.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:26: warning: expression took 10ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 10ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:25: warning: expression took 18ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 18ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:92:25: warning: expression took 17ms to type-check (limit: 10ms)
90 | let targets: [Value] = [0.0, 1.0]
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
| `- warning: expression took 17ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:30: warning: expression took 269ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 269ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:29: warning: expression took 198ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 198ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:93:29: warning: expression took 193ms to type-check (limit: 10ms)
91 | for target in targets {
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
| `- warning: expression took 193ms to type-check (limit: 10ms)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:94:25: warning: expression took 24ms to type-check (limit: 10ms)
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
| `- warning: expression took 24ms to type-check (limit: 10ms)
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
96 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:94:25: warning: expression took 24ms to type-check (limit: 10ms)
92 | let top1: Value = (284_517 * m1 - 94_839 * m3) * sub2
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
| `- warning: expression took 24ms to type-check (limit: 10ms)
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
96 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 13ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 13ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 398ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 398ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Math.swift:95:27: warning: expression took 402ms to type-check (limit: 10ms)
93 | let multiple: Value = (838_422 * m3 + 769_860 * m2 + 731_718 * m1)
94 | let top2: Value = multiple * lightness * sub2 - 769_860 * target * lightness
95 | let bottom: Value = (632_260 * m3 - 126_452 * m2) * sub2 + 126_452 * target
| `- warning: expression took 402ms to type-check (limit: 10ms)
96 |
97 | result.append((top1 / bottom, top2 / bottom))
[11/13] Emitting module WrkstrmColor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
[12/13] Compiling WrkstrmColor Color+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:34: warning: expression took 45ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 45ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 699ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 699ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 645ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 645ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:34: warning: expression took 31ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 31ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 616ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 616ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 643ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 643ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:22: warning: expression took 32ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 32ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:18: warning: expression took 23ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 23ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 23ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 23ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 25ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 25ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 13ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 13ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 14ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 14ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 19ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 19ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 11ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 11ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 18ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 18ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 240ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 240ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 238ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 238ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 22ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 22ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 21ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 21ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 14ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 15ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 15ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 14ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 14ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:268:10: warning: expression took 16ms to type-check (limit: 10ms)
266 |
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
| `- warning: expression took 16ms to type-check (limit: 10ms)
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:269:10: warning: expression took 15ms to type-check (limit: 10ms)
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
| `- warning: expression took 15ms to type-check (limit: 10ms)
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:267:12: warning: expression took 96ms to type-check (limit: 10ms)
265 | Scanner(string: string).scanHexInt64(&rgbValue)
266 |
267 | return RGB(
| `- warning: expression took 96ms to type-check (limit: 10ms)
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
[13/13] Compiling WrkstrmColor Encodings+Conversions.swift
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:6:19: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
4 |
5 | extension XYZ {
6 | func fromLinear<Value: ComponentValue>(_ c: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | if c <= 0.003_130_8 {
8 | return 12.92 * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:49:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
47 |
48 | extension XYZ {
49 | func yToL<Value: ComponentValue>(_ y: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | if y <= Constant.epsilon() {
51 | return y * Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:57:19: note: 'Value' previously declared here
55 |
56 | /// Luminance, Blue-stimulation, Cone-response [CIE 1931] (XYZ)
57 | public struct XYZ<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
58 | public var x: Value
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:75:13: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
73 |
74 | extension LUV {
75 | func lToY<Value: ComponentValue>(_ l: Value) -> Value {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
76 | if l <= 8 {
77 | return l / Constant.kappa()
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings.swift:74:19: note: 'Value' previously declared here
72 |
73 | /// L*, u*, v* [CIE 1976] (LUV)
74 | public struct LUV<Value: BinaryFloatingPoint>: ComponentConvertible {
| `- note: 'Value' previously declared here
75 | public var l: Value
76 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:34: warning: expression took 45ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 45ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 699ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 699ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:57:23: warning: expression took 645ms to type-check (limit: 10ms)
55 |
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
| `- warning: expression took 645ms to type-check (limit: 10ms)
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
59 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:34: warning: expression took 31ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 31ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 616ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 616ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:58:23: warning: expression took 643ms to type-check (limit: 10ms)
56 | var toLuv: LUV<Value> {
57 | let varU: Value = (4 * x) / (x + (15 * y) + (3 * z))
58 | let varV: Value = (9 * y) / (x + (15 * y) + (3 * z))
| `- warning: expression took 643ms to type-check (limit: 10ms)
59 |
60 | let l = yToL(y)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:22: warning: expression took 32ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 32ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:18: warning: expression took 23ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 23ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 23ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 23ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:79:12: warning: expression took 25ms to type-check (limit: 10ms)
77 | return l / Constant.kappa()
78 | }
79 | return Value(pow(Double((l + 16) / 116), 3))
| `- warning: expression took 25ms to type-check (limit: 10ms)
80 | }
81 |
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 13ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 13ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:92:27: warning: expression took 14ms to type-check (limit: 10ms)
90 |
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
| `- warning: expression took 14ms to type-check (limit: 10ms)
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 19ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 19ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:93:20: warning: expression took 11ms to type-check (limit: 10ms)
91 | let y: Value = lToY(l)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
| `- warning: expression took 11ms to type-check (limit: 10ms)
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
95 | let zDivisor: Value = 3.0 * varV
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 18ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 18ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 240ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 240ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:94:29: warning: expression took 238ms to type-check (limit: 10ms)
92 | let xDivisor: Value = (varU - 4.0) * varV - varU * varV
93 | let x: Value = 0.0 - (9.0 * y * varU) / xDivisor
94 | let zNumerator: Value = 9.0 * y - (15.0 * varV * y) - (varV * x)
| `- warning: expression took 238ms to type-check (limit: 10ms)
95 | let zDivisor: Value = 3.0 * varV
96 | let z: Value = zNumerator / zDivisor
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 22ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 22ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:113:13: warning: expression took 21ms to type-check (limit: 10ms)
111 | }
112 | let hRad = Value(atan2(Double(v), Double(u)))
113 | var h = hRad * 360 / 2 / .pi
| `- warning: expression took 21ms to type-check (limit: 10ms)
114 |
115 | if h < 0 {
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 14ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:125:16: warning: expression took 15ms to type-check (limit: 10ms)
123 | extension LCH {
124 | public var toLUV: LUV<Value> {
125 | let hRad = h / 360 * 2 * .pi
| `- warning: expression took 15ms to type-check (limit: 10ms)
126 | let u = Value(cos(Double(hRad))) * c
127 | let v = Value(sin(Double(hRad))) * c
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 14ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:137:14: warning: expression took 14ms to type-check (limit: 10ms)
135 | /// the RGB gamut.
136 | func maxChroma<Value: ComponentValue>(lightness: Value, hue: Value) -> Value {
137 | let hrad = hue / 360 * 2 * .pi
| `- warning: expression took 14ms to type-check (limit: 10ms)
138 |
139 | var lengths: [Value] = []
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:268:10: warning: expression took 16ms to type-check (limit: 10ms)
266 |
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
| `- warning: expression took 16ms to type-check (limit: 10ms)
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:269:10: warning: expression took 15ms to type-check (limit: 10ms)
267 | return RGB(
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
| `- warning: expression took 15ms to type-check (limit: 10ms)
270 | b: Value(Double(rgbValue & 0x0000FF) / 255.0))
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/WrkstrmColor/Encodings+Conversions.swift:267:12: warning: expression took 96ms to type-check (limit: 10ms)
265 | Scanner(string: string).scanHexInt64(&rgbValue)
266 |
267 | return RGB(
| `- warning: expression took 96ms to type-check (limit: 10ms)
268 | r: Value(Double((rgbValue & 0xFF0000) >> 16) / 255.0),
269 | g: Value(Double((rgbValue & 0x00FF00) >> 8) / 255.0),
Build of target: 'WrkstrmColor' complete! (4.77s)
612
5 /Users/admin/builder/spi-builder-workspace/.docs/wrkstrm/wrkstrmcolor/0.0.1
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/wrkstrm/wrkstrmcolor/0.0.1
File count: 612
Doc size: 5.0MB
Preparing doc bundle ...
Uploading prod-wrkstrm-wrkstrmcolor-0.0.1-d6330e72.zip to s3://spi-docs-inbox/prod-wrkstrm-wrkstrmcolor-0.0.1-d6330e72.zip
Copying... [13%]
Copying... [20%]
Copying... [34%]
Copying... [40%]
Copying... [54%]
Copying... [61%]
Copying... [74%]
Copying... [81%]
Copying... [94%]
Copying... [100%]
Done.