@cruglobal/godtools-shared 1.1.3-SNAPSHOT.1703 → 1.1.3-SNAPSHOT.1705
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kermit-kermit-core.js +49 -51
- package/Kermit-kermit-core.js.map +1 -1
- package/Kermit-kermit.js +9 -9
- package/Kermit-kermit.js.map +1 -1
- package/KustomExport-lib-coroutines.js.map +1 -1
- package/KustomExport-lib.js.map +1 -1
- package/android-gto-support-gto-support-fluidsonic-locale.js.map +1 -1
- package/androidx-annotation-annotation.js.map +1 -1
- package/antlr-kotlin-antlr-kotlin-runtime.js +3164 -3333
- package/antlr-kotlin-antlr-kotlin-runtime.js.map +1 -1
- package/colormath-root-colormath.js +959 -1043
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +158 -205
- package/fluid-locale.js.map +1 -1
- package/kotlin-js.js +38 -38
- package/kotlin-js.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2043 -3124
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +3 -3
- package/kotlin-mpp-godtools-tool-parser-module-common.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +410 -415
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2718 -2989
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +232 -265
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +0 -18
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -26
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +2974 -3240
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/seskar-core.js.map +1 -1
- package/seskar-react.js.map +1 -1
|
@@ -14,102 +14,102 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var log2 = Math.log2;
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var toString = kotlin_kotlin.$_$.
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.w6;
|
|
18
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.i6;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.k6;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.z6;
|
|
21
21
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
23
|
+
var initMetadataForClass = kotlin_kotlin.$_$.h6;
|
|
24
|
+
var emptyMap = kotlin_kotlin.$_$.n3;
|
|
24
25
|
var VOID = kotlin_kotlin.$_$.d;
|
|
25
26
|
var Companion_instance = kotlin_kotlin.$_$.k2;
|
|
26
27
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
27
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
28
|
+
var createFailure = kotlin_kotlin.$_$.u9;
|
|
28
29
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b2;
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.n9;
|
|
30
31
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
31
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
32
|
+
var startsWith = kotlin_kotlin.$_$.k8;
|
|
32
33
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
33
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
34
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
35
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
34
|
+
var initMetadataForObject = kotlin_kotlin.$_$.m6;
|
|
35
|
+
var endsWith = kotlin_kotlin.$_$.w7;
|
|
36
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.c3;
|
|
36
37
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
37
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var equals = kotlin_kotlin.$_$.d6;
|
|
38
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.b3;
|
|
39
|
+
var get_lastIndex = kotlin_kotlin.$_$.c4;
|
|
40
|
+
var dropLast = kotlin_kotlin.$_$.v7;
|
|
41
|
+
var toDouble = kotlin_kotlin.$_$.q8;
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.x5;
|
|
43
|
+
var coerceIn = kotlin_kotlin.$_$.g7;
|
|
44
|
+
var Enum = kotlin_kotlin.$_$.d9;
|
|
45
|
+
var equals = kotlin_kotlin.$_$.a6;
|
|
46
46
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
47
|
-
var dropLast_0 = kotlin_kotlin.$_$.
|
|
48
|
-
var joinTo = kotlin_kotlin.$_$.
|
|
47
|
+
var dropLast_0 = kotlin_kotlin.$_$.l3;
|
|
48
|
+
var joinTo = kotlin_kotlin.$_$.a4;
|
|
49
49
|
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.e2;
|
|
50
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
51
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
50
|
+
var numberToInt = kotlin_kotlin.$_$.u6;
|
|
51
|
+
var roundToInt = kotlin_kotlin.$_$.a7;
|
|
52
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
53
|
-
var padStart = kotlin_kotlin.$_$.
|
|
54
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
55
|
-
var trimEnd = kotlin_kotlin.$_$.
|
|
56
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
57
|
-
var joinTo_0 = kotlin_kotlin.$_$.
|
|
58
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
59
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
53
|
+
var padStart = kotlin_kotlin.$_$.e8;
|
|
54
|
+
var charArrayOf = kotlin_kotlin.$_$.v5;
|
|
55
|
+
var trimEnd = kotlin_kotlin.$_$.x8;
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.w9;
|
|
57
|
+
var joinTo_0 = kotlin_kotlin.$_$.z3;
|
|
58
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.y9;
|
|
59
|
+
var numberToDouble = kotlin_kotlin.$_$.t6;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.f6;
|
|
61
61
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
62
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
62
|
+
var charSequenceGet = kotlin_kotlin.$_$.w5;
|
|
63
63
|
var toString_0 = kotlin_kotlin.$_$.x1;
|
|
64
64
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
65
|
-
var listOf = kotlin_kotlin.$_$.
|
|
66
|
-
var to = kotlin_kotlin.$_$.
|
|
67
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
68
|
-
var withSign = kotlin_kotlin.$_$.
|
|
69
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
72
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
73
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
74
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
75
|
-
var Char = kotlin_kotlin.$_$.
|
|
76
|
-
var toInt = kotlin_kotlin.$_$.
|
|
77
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
78
|
-
var slice = kotlin_kotlin.$_$.
|
|
79
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
80
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.g4;
|
|
66
|
+
var to = kotlin_kotlin.$_$.da;
|
|
67
|
+
var mapOf = kotlin_kotlin.$_$.i4;
|
|
68
|
+
var withSign = kotlin_kotlin.$_$.b7;
|
|
69
|
+
var trimMargin = kotlin_kotlin.$_$.y8;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.g6;
|
|
71
|
+
var coerceAtLeast = kotlin_kotlin.$_$.c7;
|
|
72
|
+
var getNumberHashCode = kotlin_kotlin.$_$.d6;
|
|
73
|
+
var isInterface = kotlin_kotlin.$_$.p6;
|
|
74
|
+
var objectCreate = kotlin_kotlin.$_$.v6;
|
|
75
|
+
var Char = kotlin_kotlin.$_$.a9;
|
|
76
|
+
var toInt = kotlin_kotlin.$_$.u8;
|
|
77
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.q6;
|
|
78
|
+
var slice = kotlin_kotlin.$_$.g8;
|
|
79
|
+
var contentEquals = kotlin_kotlin.$_$.f3;
|
|
80
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.e7;
|
|
81
81
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.f2;
|
|
82
82
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.g2;
|
|
83
|
-
var coerceIn_0 = kotlin_kotlin.$_$.
|
|
83
|
+
var coerceIn_0 = kotlin_kotlin.$_$.h7;
|
|
84
84
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.d2;
|
|
85
|
-
var uintToDouble = kotlin_kotlin.$_$.
|
|
86
|
-
var toByte = kotlin_kotlin.$_$.
|
|
85
|
+
var uintToDouble = kotlin_kotlin.$_$.fa;
|
|
86
|
+
var toByte = kotlin_kotlin.$_$.x6;
|
|
87
87
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.c2;
|
|
88
|
-
var UInt = kotlin_kotlin.$_$.
|
|
88
|
+
var UInt = kotlin_kotlin.$_$.q9;
|
|
89
89
|
var UInt__hashCode_impl_z2mhuw = kotlin_kotlin.$_$.h2;
|
|
90
90
|
//endregion
|
|
91
91
|
//region block: pre-declaration
|
|
92
92
|
initMetadataForCompanion(Companion);
|
|
93
93
|
function toHSL() {
|
|
94
|
-
return this.
|
|
94
|
+
return this.f1n().g1n();
|
|
95
95
|
}
|
|
96
96
|
function toXYZ() {
|
|
97
|
-
return this.
|
|
97
|
+
return this.f1n().m1n();
|
|
98
98
|
}
|
|
99
99
|
function toLAB() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.m1n().n1n();
|
|
101
101
|
}
|
|
102
102
|
function toLCHab() {
|
|
103
|
-
return this.
|
|
103
|
+
return this.n1n().t1n();
|
|
104
104
|
}
|
|
105
105
|
function toHWB() {
|
|
106
|
-
return this.
|
|
106
|
+
return this.f1n().z1n();
|
|
107
107
|
}
|
|
108
108
|
function toOklab() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.m1n().a1o();
|
|
110
110
|
}
|
|
111
111
|
function toOklch() {
|
|
112
|
-
return this.
|
|
112
|
+
return this.a1o().b1o();
|
|
113
113
|
}
|
|
114
114
|
initMetadataForInterface(Color, 'Color');
|
|
115
115
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
|
|
129
129
|
initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
|
|
130
130
|
function invoke(l, a, b, alpha) {
|
|
131
|
-
return this.
|
|
131
|
+
return this.h1p(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
|
|
132
132
|
}
|
|
133
133
|
initMetadataForInterface(LABColorSpace, 'LABColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
134
134
|
initMetadataForCompanion(Companion_2, VOID, [LABColorSpace]);
|
|
@@ -147,14 +147,14 @@
|
|
|
147
147
|
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
148
148
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
149
149
|
function invoke_0(r, g, b, alpha) {
|
|
150
|
-
return this.
|
|
150
|
+
return this.h1p(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
151
151
|
}
|
|
152
152
|
function from255(r, g, b, alpha) {
|
|
153
|
-
return this.
|
|
153
|
+
return this.h1p(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
154
154
|
}
|
|
155
155
|
function from255$default(r, g, b, alpha, $super) {
|
|
156
156
|
alpha = alpha === VOID ? 255 : alpha;
|
|
157
|
-
return $super === VOID ? this.
|
|
157
|
+
return $super === VOID ? this.l1r(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
158
158
|
}
|
|
159
159
|
function invoke_1(hex) {
|
|
160
160
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -162,14 +162,13 @@
|
|
|
162
162
|
var tmp_1 = parseHex(hex, 2);
|
|
163
163
|
var tmp_2;
|
|
164
164
|
// Inline function 'kotlin.let' call
|
|
165
|
-
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpace.invoke.<anonymous>' call
|
|
166
165
|
var it = get_hexLength(hex);
|
|
167
166
|
if (it === 4 || it === 8) {
|
|
168
167
|
tmp_2 = parseHex(hex, 3);
|
|
169
168
|
} else {
|
|
170
169
|
tmp_2 = 255;
|
|
171
170
|
}
|
|
172
|
-
return this.
|
|
171
|
+
return this.l1r(tmp, tmp_0, tmp_1, tmp_2);
|
|
173
172
|
}
|
|
174
173
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
175
174
|
initMetadataForCompanion(Companion_6, VOID, [RGBColorSpace]);
|
|
@@ -186,11 +185,11 @@
|
|
|
186
185
|
initMetadataForCompanion(Companion_7);
|
|
187
186
|
initMetadataForClass(RGBInt, 'RGBInt', VOID, VOID, [Color]);
|
|
188
187
|
function invoke_2(x, y, z, alpha) {
|
|
189
|
-
return this.
|
|
188
|
+
return this.h1p(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
|
|
190
189
|
}
|
|
191
190
|
function invoke$default(x, y, z, alpha, $super) {
|
|
192
191
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
193
|
-
return $super === VOID ? this.
|
|
192
|
+
return $super === VOID ? this.g1s(x, y, z, alpha) : invoke_2(x, y, z, alpha);
|
|
194
193
|
}
|
|
195
194
|
initMetadataForInterface(XYZColorSpace, 'XYZColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
196
195
|
initMetadataForCompanion(Companion_8, VOID, [XYZColorSpace]);
|
|
@@ -208,16 +207,15 @@
|
|
|
208
207
|
function Color() {
|
|
209
208
|
}
|
|
210
209
|
function convertTo(_this__u8e3s4, space) {
|
|
211
|
-
return space.
|
|
210
|
+
return space.g1o(_this__u8e3s4);
|
|
212
211
|
}
|
|
213
212
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
214
|
-
this.
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
213
|
+
this.h1o_1 = name;
|
|
214
|
+
this.i1o_1 = isPolar;
|
|
215
|
+
this.j1o_1 = min;
|
|
216
|
+
this.k1o_1 = max;
|
|
218
217
|
// Inline function 'kotlin.require' call
|
|
219
|
-
if (!(this.
|
|
220
|
-
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
218
|
+
if (!(this.j1o_1 <= this.k1o_1)) {
|
|
221
219
|
var message = 'min must be less than or equal to max';
|
|
222
220
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
223
221
|
}
|
|
@@ -237,7 +235,7 @@
|
|
|
237
235
|
}
|
|
238
236
|
function parseOrNull(_this__u8e3s4, color_0, customColorSpaces) {
|
|
239
237
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
240
|
-
var keywordColor = CssColors_getInstance().
|
|
238
|
+
var keywordColor = CssColors_getInstance().o1o_1.f2(color_0);
|
|
241
239
|
var tmp;
|
|
242
240
|
if (!(keywordColor == null)) {
|
|
243
241
|
tmp = keywordColor;
|
|
@@ -245,9 +243,8 @@
|
|
|
245
243
|
// Inline function 'kotlin.runCatching' call
|
|
246
244
|
var tmp_0;
|
|
247
245
|
try {
|
|
248
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
249
246
|
// Inline function 'kotlin.Companion.success' call
|
|
250
|
-
var value = Companion_getInstance_6().
|
|
247
|
+
var value = Companion_getInstance_6().g1p(color_0);
|
|
251
248
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
252
249
|
} catch ($p) {
|
|
253
250
|
var tmp_1;
|
|
@@ -271,25 +268,23 @@
|
|
|
271
268
|
}
|
|
272
269
|
tmp = tmp_2;
|
|
273
270
|
} else {
|
|
274
|
-
var tmp0_safe_receiver = PATTERNS_getInstance().
|
|
271
|
+
var tmp0_safe_receiver = PATTERNS_getInstance().v1o_1.fc(color_0);
|
|
275
272
|
var tmp_4;
|
|
276
273
|
if (tmp0_safe_receiver == null) {
|
|
277
274
|
tmp_4 = null;
|
|
278
275
|
} else {
|
|
279
276
|
// Inline function 'kotlin.let' call
|
|
280
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
281
277
|
tmp_4 = rgb(tmp0_safe_receiver);
|
|
282
278
|
}
|
|
283
279
|
var tmp1_elvis_lhs = tmp_4;
|
|
284
280
|
var tmp_5;
|
|
285
281
|
if (tmp1_elvis_lhs == null) {
|
|
286
|
-
var tmp2_safe_receiver = PATTERNS_getInstance().
|
|
282
|
+
var tmp2_safe_receiver = PATTERNS_getInstance().w1o_1.fc(color_0);
|
|
287
283
|
var tmp_6;
|
|
288
284
|
if (tmp2_safe_receiver == null) {
|
|
289
285
|
tmp_6 = null;
|
|
290
286
|
} else {
|
|
291
287
|
// Inline function 'kotlin.let' call
|
|
292
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
293
288
|
tmp_6 = rgb(tmp2_safe_receiver);
|
|
294
289
|
}
|
|
295
290
|
tmp_5 = tmp_6;
|
|
@@ -299,13 +294,12 @@
|
|
|
299
294
|
var tmp3_elvis_lhs = tmp_5;
|
|
300
295
|
var tmp_7;
|
|
301
296
|
if (tmp3_elvis_lhs == null) {
|
|
302
|
-
var tmp4_safe_receiver = PATTERNS_getInstance().
|
|
297
|
+
var tmp4_safe_receiver = PATTERNS_getInstance().x1o_1.fc(color_0);
|
|
303
298
|
var tmp_8;
|
|
304
299
|
if (tmp4_safe_receiver == null) {
|
|
305
300
|
tmp_8 = null;
|
|
306
301
|
} else {
|
|
307
302
|
// Inline function 'kotlin.let' call
|
|
308
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
309
303
|
tmp_8 = hsl(tmp4_safe_receiver);
|
|
310
304
|
}
|
|
311
305
|
tmp_7 = tmp_8;
|
|
@@ -315,13 +309,12 @@
|
|
|
315
309
|
var tmp5_elvis_lhs = tmp_7;
|
|
316
310
|
var tmp_9;
|
|
317
311
|
if (tmp5_elvis_lhs == null) {
|
|
318
|
-
var tmp6_safe_receiver = PATTERNS_getInstance().
|
|
312
|
+
var tmp6_safe_receiver = PATTERNS_getInstance().y1o_1.fc(color_0);
|
|
319
313
|
var tmp_10;
|
|
320
314
|
if (tmp6_safe_receiver == null) {
|
|
321
315
|
tmp_10 = null;
|
|
322
316
|
} else {
|
|
323
317
|
// Inline function 'kotlin.let' call
|
|
324
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
325
318
|
tmp_10 = hsl(tmp6_safe_receiver);
|
|
326
319
|
}
|
|
327
320
|
tmp_9 = tmp_10;
|
|
@@ -331,13 +324,12 @@
|
|
|
331
324
|
var tmp7_elvis_lhs = tmp_9;
|
|
332
325
|
var tmp_11;
|
|
333
326
|
if (tmp7_elvis_lhs == null) {
|
|
334
|
-
var tmp8_safe_receiver = PATTERNS_getInstance().
|
|
327
|
+
var tmp8_safe_receiver = PATTERNS_getInstance().z1o_1.fc(color_0);
|
|
335
328
|
var tmp_12;
|
|
336
329
|
if (tmp8_safe_receiver == null) {
|
|
337
330
|
tmp_12 = null;
|
|
338
331
|
} else {
|
|
339
332
|
// Inline function 'kotlin.let' call
|
|
340
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
341
333
|
tmp_12 = lab(tmp8_safe_receiver);
|
|
342
334
|
}
|
|
343
335
|
tmp_11 = tmp_12;
|
|
@@ -347,13 +339,12 @@
|
|
|
347
339
|
var tmp9_elvis_lhs = tmp_11;
|
|
348
340
|
var tmp_13;
|
|
349
341
|
if (tmp9_elvis_lhs == null) {
|
|
350
|
-
var tmp10_safe_receiver = PATTERNS_getInstance().
|
|
342
|
+
var tmp10_safe_receiver = PATTERNS_getInstance().a1p_1.fc(color_0);
|
|
351
343
|
var tmp_14;
|
|
352
344
|
if (tmp10_safe_receiver == null) {
|
|
353
345
|
tmp_14 = null;
|
|
354
346
|
} else {
|
|
355
347
|
// Inline function 'kotlin.let' call
|
|
356
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
357
348
|
tmp_14 = lch(tmp10_safe_receiver);
|
|
358
349
|
}
|
|
359
350
|
tmp_13 = tmp_14;
|
|
@@ -363,13 +354,12 @@
|
|
|
363
354
|
var tmp11_elvis_lhs = tmp_13;
|
|
364
355
|
var tmp_15;
|
|
365
356
|
if (tmp11_elvis_lhs == null) {
|
|
366
|
-
var tmp12_safe_receiver = PATTERNS_getInstance().
|
|
357
|
+
var tmp12_safe_receiver = PATTERNS_getInstance().b1p_1.fc(color_0);
|
|
367
358
|
var tmp_16;
|
|
368
359
|
if (tmp12_safe_receiver == null) {
|
|
369
360
|
tmp_16 = null;
|
|
370
361
|
} else {
|
|
371
362
|
// Inline function 'kotlin.let' call
|
|
372
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
373
363
|
tmp_16 = hwb(tmp12_safe_receiver);
|
|
374
364
|
}
|
|
375
365
|
tmp_15 = tmp_16;
|
|
@@ -379,13 +369,12 @@
|
|
|
379
369
|
var tmp13_elvis_lhs = tmp_15;
|
|
380
370
|
var tmp_17;
|
|
381
371
|
if (tmp13_elvis_lhs == null) {
|
|
382
|
-
var tmp14_safe_receiver = PATTERNS_getInstance().
|
|
372
|
+
var tmp14_safe_receiver = PATTERNS_getInstance().c1p_1.fc(color_0);
|
|
383
373
|
var tmp_18;
|
|
384
374
|
if (tmp14_safe_receiver == null) {
|
|
385
375
|
tmp_18 = null;
|
|
386
376
|
} else {
|
|
387
377
|
// Inline function 'kotlin.let' call
|
|
388
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
389
378
|
tmp_18 = oklab(tmp14_safe_receiver);
|
|
390
379
|
}
|
|
391
380
|
tmp_17 = tmp_18;
|
|
@@ -395,13 +384,12 @@
|
|
|
395
384
|
var tmp15_elvis_lhs = tmp_17;
|
|
396
385
|
var tmp_19;
|
|
397
386
|
if (tmp15_elvis_lhs == null) {
|
|
398
|
-
var tmp16_safe_receiver = PATTERNS_getInstance().
|
|
387
|
+
var tmp16_safe_receiver = PATTERNS_getInstance().d1p_1.fc(color_0);
|
|
399
388
|
var tmp_20;
|
|
400
389
|
if (tmp16_safe_receiver == null) {
|
|
401
390
|
tmp_20 = null;
|
|
402
391
|
} else {
|
|
403
392
|
// Inline function 'kotlin.let' call
|
|
404
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
405
393
|
tmp_20 = oklch(tmp16_safe_receiver);
|
|
406
394
|
}
|
|
407
395
|
tmp_19 = tmp_20;
|
|
@@ -411,13 +399,12 @@
|
|
|
411
399
|
var tmp17_elvis_lhs = tmp_19;
|
|
412
400
|
var tmp_21;
|
|
413
401
|
if (tmp17_elvis_lhs == null) {
|
|
414
|
-
var tmp18_safe_receiver = PATTERNS_getInstance().
|
|
402
|
+
var tmp18_safe_receiver = PATTERNS_getInstance().e1p_1.fc(color_0);
|
|
415
403
|
var tmp_22;
|
|
416
404
|
if (tmp18_safe_receiver == null) {
|
|
417
405
|
tmp_22 = null;
|
|
418
406
|
} else {
|
|
419
407
|
// Inline function 'kotlin.let' call
|
|
420
|
-
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
421
408
|
tmp_22 = color(tmp18_safe_receiver, customColorSpaces);
|
|
422
409
|
}
|
|
423
410
|
tmp_21 = tmp_22;
|
|
@@ -430,22 +417,22 @@
|
|
|
430
417
|
}
|
|
431
418
|
function PATTERNS() {
|
|
432
419
|
PATTERNS_instance = this;
|
|
433
|
-
this.
|
|
434
|
-
this.
|
|
435
|
-
this.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
420
|
+
this.p1o_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?';
|
|
421
|
+
this.q1o_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)';
|
|
422
|
+
this.r1o_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?';
|
|
423
|
+
this.s1o_1 = '\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
424
|
+
this.t1o_1 = '\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
425
|
+
this.u1o_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)';
|
|
426
|
+
this.v1o_1 = Regex_init_$Create$('rgba?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
427
|
+
this.w1o_1 = Regex_init_$Create$('rgba?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
428
|
+
this.x1o_1 = Regex_init_$Create$('hsla?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
429
|
+
this.y1o_1 = Regex_init_$Create$('hsla?\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*,\\s*((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
430
|
+
this.z1o_1 = Regex_init_$Create$('lab\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
431
|
+
this.a1p_1 = Regex_init_$Create$('lch\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
432
|
+
this.b1p_1 = Regex_init_$Create$('hwb\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
433
|
+
this.c1p_1 = Regex_init_$Create$('oklab\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
434
|
+
this.d1p_1 = Regex_init_$Create$('oklch\\(((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?))\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
435
|
+
this.e1p_1 = Regex_init_$Create$('color\\(([\\w\\-]+)\\s+((?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)(?:\\s+(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))*)\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*\\)');
|
|
449
436
|
}
|
|
450
437
|
var PATTERNS_instance;
|
|
451
438
|
function PATTERNS_getInstance() {
|
|
@@ -454,99 +441,98 @@
|
|
|
454
441
|
return PATTERNS_instance;
|
|
455
442
|
}
|
|
456
443
|
function rgb(match) {
|
|
457
|
-
var r = percentOrNumber(match.
|
|
458
|
-
var g = percentOrNumber(match.
|
|
459
|
-
var b = percentOrNumber(match.
|
|
460
|
-
var a = alpha(match.
|
|
444
|
+
var r = percentOrNumber(match.bd().o(1), Companion_getInstance_6().m1o().o(0).k1o_1);
|
|
445
|
+
var g = percentOrNumber(match.bd().o(2), Companion_getInstance_6().m1o().o(1).k1o_1);
|
|
446
|
+
var b = percentOrNumber(match.bd().o(3), Companion_getInstance_6().m1o().o(2).k1o_1);
|
|
447
|
+
var a = alpha(match.bd().o(4));
|
|
461
448
|
var tmp;
|
|
462
|
-
if (endsWith(match.
|
|
463
|
-
tmp = Companion_getInstance_6().
|
|
449
|
+
if (endsWith(match.bd().o(1), '%')) {
|
|
450
|
+
tmp = Companion_getInstance_6().h1p(r, g, b, a);
|
|
464
451
|
} else {
|
|
465
|
-
tmp = Companion_getInstance_6().
|
|
452
|
+
tmp = Companion_getInstance_6().h1p(r / 255.0, g / 255.0, b / 255.0, a);
|
|
466
453
|
}
|
|
467
454
|
return tmp;
|
|
468
455
|
}
|
|
469
456
|
function hsl(match) {
|
|
470
|
-
var h = hue(match.
|
|
471
|
-
var s = percentOrNumber(match.
|
|
472
|
-
var l = percentOrNumber(match.
|
|
473
|
-
var a = alpha(match.
|
|
457
|
+
var h = hue(match.bd().o(1));
|
|
458
|
+
var s = percentOrNumber(match.bd().o(2), Companion_getInstance_0().i1p_1.o(1).k1o_1);
|
|
459
|
+
var l = percentOrNumber(match.bd().o(3), Companion_getInstance_0().i1p_1.o(2).k1o_1);
|
|
460
|
+
var a = alpha(match.bd().o(4));
|
|
474
461
|
return new HSL(h, s, l, a);
|
|
475
462
|
}
|
|
476
463
|
function lab(match) {
|
|
477
|
-
var l = percentOrNumber(match.
|
|
478
|
-
var a = percentOrNumber(match.
|
|
479
|
-
var b = percentOrNumber(match.
|
|
480
|
-
var alpha_0 = alpha(match.
|
|
481
|
-
return LABColorSpaces_getInstance().
|
|
464
|
+
var l = percentOrNumber(match.bd().o(1), Companion_getInstance_2().m1o().o(0).k1o_1);
|
|
465
|
+
var a = percentOrNumber(match.bd().o(2), Companion_getInstance_2().m1o().o(1).k1o_1);
|
|
466
|
+
var b = percentOrNumber(match.bd().o(3), Companion_getInstance_2().m1o().o(2).k1o_1);
|
|
467
|
+
var alpha_0 = alpha(match.bd().o(4));
|
|
468
|
+
return LABColorSpaces_getInstance().l1p_1.h1p(l, a, b, alpha_0);
|
|
482
469
|
}
|
|
483
470
|
function lch(match) {
|
|
484
|
-
var l = percentOrNumber(match.
|
|
485
|
-
var c = percentOrNumber(match.
|
|
486
|
-
var h = hue(match.
|
|
487
|
-
var a = alpha(match.
|
|
488
|
-
return LCHabColorSpaces_getInstance().
|
|
471
|
+
var l = percentOrNumber(match.bd().o(1), Companion_getInstance_3().m1o().o(0).k1o_1);
|
|
472
|
+
var c = percentOrNumber(match.bd().o(2), Companion_getInstance_3().m1o().o(1).k1o_1);
|
|
473
|
+
var h = hue(match.bd().o(3));
|
|
474
|
+
var a = alpha(match.bd().o(4));
|
|
475
|
+
return LCHabColorSpaces_getInstance().o1p_1.h1p(l, c, h, a);
|
|
489
476
|
}
|
|
490
477
|
function hwb(match) {
|
|
491
|
-
var h = hue(match.
|
|
492
|
-
var w = percentOrNumber(match.
|
|
493
|
-
var b = percentOrNumber(match.
|
|
494
|
-
var a = alpha(match.
|
|
478
|
+
var h = hue(match.bd().o(1));
|
|
479
|
+
var w = percentOrNumber(match.bd().o(2), Companion_getInstance_1().p1p_1.o(1).k1o_1);
|
|
480
|
+
var b = percentOrNumber(match.bd().o(3), Companion_getInstance_1().p1p_1.o(2).k1o_1);
|
|
481
|
+
var a = alpha(match.bd().o(4));
|
|
495
482
|
return new HWB(h, w, b, a);
|
|
496
483
|
}
|
|
497
484
|
function oklab(match) {
|
|
498
|
-
var l = percentOrNumber(match.
|
|
499
|
-
var a = percentOrNumber(match.
|
|
500
|
-
var b = percentOrNumber(match.
|
|
501
|
-
var alpha_0 = alpha(match.
|
|
485
|
+
var l = percentOrNumber(match.bd().o(1), Companion_getInstance_4().q1p_1.o(0).k1o_1);
|
|
486
|
+
var a = percentOrNumber(match.bd().o(2), Companion_getInstance_4().q1p_1.o(1).k1o_1);
|
|
487
|
+
var b = percentOrNumber(match.bd().o(3), Companion_getInstance_4().q1p_1.o(2).k1o_1);
|
|
488
|
+
var alpha_0 = alpha(match.bd().o(4));
|
|
502
489
|
return new Oklab(l, a, b, alpha_0);
|
|
503
490
|
}
|
|
504
491
|
function oklch(match) {
|
|
505
|
-
var l = percentOrNumber(match.
|
|
506
|
-
var c = percentOrNumber(match.
|
|
507
|
-
var h = hue(match.
|
|
508
|
-
var a = alpha(match.
|
|
492
|
+
var l = percentOrNumber(match.bd().o(1), Companion_getInstance_5().r1p_1.o(0).k1o_1);
|
|
493
|
+
var c = percentOrNumber(match.bd().o(2), Companion_getInstance_5().r1p_1.o(1).k1o_1);
|
|
494
|
+
var h = hue(match.bd().o(3));
|
|
495
|
+
var a = alpha(match.bd().o(4));
|
|
509
496
|
return new Oklch(l, c, h, a);
|
|
510
497
|
}
|
|
511
498
|
function color(match, customColorSpaces) {
|
|
512
|
-
var name = match.
|
|
499
|
+
var name = match.bd().o(1);
|
|
513
500
|
var tmp;
|
|
514
501
|
switch (name) {
|
|
515
502
|
case 'srgb':
|
|
516
503
|
tmp = SRGB_getInstance();
|
|
517
504
|
break;
|
|
518
505
|
case 'srgb-linear':
|
|
519
|
-
tmp = RGBColorSpaces_getInstance().
|
|
506
|
+
tmp = RGBColorSpaces_getInstance().t1p_1;
|
|
520
507
|
break;
|
|
521
508
|
case 'display-p3':
|
|
522
|
-
tmp = RGBColorSpaces_getInstance().
|
|
509
|
+
tmp = RGBColorSpaces_getInstance().c1q_1;
|
|
523
510
|
break;
|
|
524
511
|
case 'a98-rgb':
|
|
525
|
-
tmp = RGBColorSpaces_getInstance().
|
|
512
|
+
tmp = RGBColorSpaces_getInstance().y1p_1;
|
|
526
513
|
break;
|
|
527
514
|
case 'prophoto-rgb':
|
|
528
|
-
tmp = RGBColorSpaces_getInstance().
|
|
515
|
+
tmp = RGBColorSpaces_getInstance().d1q_1;
|
|
529
516
|
break;
|
|
530
517
|
case 'rec2020':
|
|
531
|
-
tmp = RGBColorSpaces_getInstance().
|
|
518
|
+
tmp = RGBColorSpaces_getInstance().z1p_1;
|
|
532
519
|
break;
|
|
533
520
|
case 'xyz':
|
|
534
521
|
case 'xyz-d50':
|
|
535
|
-
tmp = XYZColorSpaces_getInstance().
|
|
522
|
+
tmp = XYZColorSpaces_getInstance().f1q_1;
|
|
536
523
|
break;
|
|
537
524
|
case 'xyz-d65':
|
|
538
|
-
tmp = XYZColorSpaces_getInstance().
|
|
525
|
+
tmp = XYZColorSpaces_getInstance().e1q_1;
|
|
539
526
|
break;
|
|
540
527
|
default:
|
|
541
|
-
var tmp0 = customColorSpaces.
|
|
528
|
+
var tmp0 = customColorSpaces.i2();
|
|
542
529
|
var tmp$ret$1;
|
|
543
530
|
$l$block: {
|
|
544
531
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
545
532
|
var _iterator__ex2g4s = tmp0.j();
|
|
546
533
|
while (_iterator__ex2g4s.k()) {
|
|
547
534
|
var element = _iterator__ex2g4s.l();
|
|
548
|
-
|
|
549
|
-
if (element.j2() === name) {
|
|
535
|
+
if (element.b2() === name) {
|
|
550
536
|
tmp$ret$1 = element;
|
|
551
537
|
break $l$block;
|
|
552
538
|
}
|
|
@@ -555,7 +541,7 @@
|
|
|
555
541
|
}
|
|
556
542
|
|
|
557
543
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
558
|
-
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
544
|
+
tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c2();
|
|
559
545
|
break;
|
|
560
546
|
}
|
|
561
547
|
var tmp1_elvis_lhs = tmp;
|
|
@@ -566,10 +552,10 @@
|
|
|
566
552
|
tmp_0 = tmp1_elvis_lhs;
|
|
567
553
|
}
|
|
568
554
|
var space = tmp_0;
|
|
569
|
-
var tmp2 = match.
|
|
555
|
+
var tmp2 = match.bd().o(2);
|
|
570
556
|
// Inline function 'kotlin.text.split' call
|
|
571
557
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
572
|
-
var this_0 = Regex_init_$Create$('\\s+').
|
|
558
|
+
var this_0 = Regex_init_$Create$('\\s+').jc(tmp2, 0);
|
|
573
559
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
574
560
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
575
561
|
var index = 0;
|
|
@@ -578,14 +564,13 @@
|
|
|
578
564
|
var item = _iterator__ex2g4s_0.l();
|
|
579
565
|
var _unary__edvuaz = index;
|
|
580
566
|
index = _unary__edvuaz + 1 | 0;
|
|
581
|
-
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
582
567
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
583
|
-
var tmp$ret$3 = percentOrNumber(item, space.
|
|
568
|
+
var tmp$ret$3 = percentOrNumber(item, space.m1o().o(i).k1o_1);
|
|
584
569
|
destination.e(tmp$ret$3);
|
|
585
570
|
}
|
|
586
571
|
var values = destination;
|
|
587
572
|
var tmp_1 = 0;
|
|
588
|
-
var tmp_2 = space.
|
|
573
|
+
var tmp_2 = space.m1o().m();
|
|
589
574
|
var tmp_3 = new Float32Array(tmp_2);
|
|
590
575
|
while (tmp_1 < tmp_2) {
|
|
591
576
|
var tmp_4 = tmp_1;
|
|
@@ -594,15 +579,14 @@
|
|
|
594
579
|
if (0 <= tmp_4 ? tmp_4 < values.m() : false) {
|
|
595
580
|
tmp_5 = values.o(tmp_4);
|
|
596
581
|
} else {
|
|
597
|
-
// Inline function 'com.github.ajalt.colormath.color.<anonymous>' call
|
|
598
582
|
tmp_5 = 0.0;
|
|
599
583
|
}
|
|
600
584
|
tmp_3[tmp_4] = tmp_5;
|
|
601
585
|
tmp_1 = tmp_1 + 1 | 0;
|
|
602
586
|
}
|
|
603
587
|
var components = tmp_3;
|
|
604
|
-
components[get_lastIndex(components)] = alpha(match.
|
|
605
|
-
return space.
|
|
588
|
+
components[get_lastIndex(components)] = alpha(match.bd().o(3));
|
|
589
|
+
return space.n1o(components);
|
|
606
590
|
}
|
|
607
591
|
function percentOrNumber(str, max) {
|
|
608
592
|
var tmp;
|
|
@@ -726,15 +710,14 @@
|
|
|
726
710
|
legacyName = legacyName === VOID ? false : legacyName;
|
|
727
711
|
legacyFormat = legacyFormat === VOID ? false : legacyFormat;
|
|
728
712
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
729
|
-
var tmp0 = customColorSpaces.
|
|
713
|
+
var tmp0 = customColorSpaces.i2();
|
|
730
714
|
var tmp$ret$1;
|
|
731
715
|
$l$block: {
|
|
732
716
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
733
717
|
var _iterator__ex2g4s = tmp0.j();
|
|
734
718
|
while (_iterator__ex2g4s.k()) {
|
|
735
719
|
var element = _iterator__ex2g4s.l();
|
|
736
|
-
|
|
737
|
-
if (equals(element.k2(), _this__u8e3s4.d1o())) {
|
|
720
|
+
if (equals(element.c2(), _this__u8e3s4.e1n())) {
|
|
738
721
|
tmp$ret$1 = element;
|
|
739
722
|
break $l$block;
|
|
740
723
|
}
|
|
@@ -742,13 +725,12 @@
|
|
|
742
725
|
tmp$ret$1 = null;
|
|
743
726
|
}
|
|
744
727
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
745
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
728
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2();
|
|
746
729
|
var tmp;
|
|
747
730
|
if (tmp1_safe_receiver == null) {
|
|
748
731
|
tmp = null;
|
|
749
732
|
} else {
|
|
750
733
|
// Inline function 'kotlin.let' call
|
|
751
|
-
// Inline function 'com.github.ajalt.colormath.formatCssStringOrNull.<anonymous>' call
|
|
752
734
|
tmp = renderFn(_this__u8e3s4, tmp1_safe_receiver, unitsPercent, alphaPercent, renderAlpha);
|
|
753
735
|
}
|
|
754
736
|
var tmp2_elvis_lhs = tmp;
|
|
@@ -756,17 +738,17 @@
|
|
|
756
738
|
if (tmp2_elvis_lhs == null) {
|
|
757
739
|
var tmp_1;
|
|
758
740
|
if (_this__u8e3s4 instanceof RGB) {
|
|
759
|
-
var tmp4_subject = _this__u8e3s4.
|
|
760
|
-
tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().
|
|
741
|
+
var tmp4_subject = _this__u8e3s4.l1n_1;
|
|
742
|
+
tmp_1 = equals(tmp4_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().c1q_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().y1p_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().d1q_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().z1p_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp4_subject, RGBColorSpaces_getInstance().t1p_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
|
|
761
743
|
} else {
|
|
762
744
|
if (_this__u8e3s4 instanceof HSL) {
|
|
763
745
|
tmp_1 = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
|
|
764
746
|
} else {
|
|
765
747
|
if (_this__u8e3s4 instanceof LAB) {
|
|
766
|
-
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().
|
|
748
|
+
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().l1p_1), alphaPercent, renderAlpha);
|
|
767
749
|
} else {
|
|
768
750
|
if (_this__u8e3s4 instanceof LCHab) {
|
|
769
|
-
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().
|
|
751
|
+
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().o1p_1), hueUnit, alphaPercent, renderAlpha);
|
|
770
752
|
} else {
|
|
771
753
|
if (_this__u8e3s4 instanceof HWB) {
|
|
772
754
|
tmp_1 = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
@@ -778,7 +760,7 @@
|
|
|
778
760
|
tmp_1 = renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
779
761
|
} else {
|
|
780
762
|
if (_this__u8e3s4 instanceof XYZ) {
|
|
781
|
-
tmp_1 = _this__u8e3s4.
|
|
763
|
+
tmp_1 = _this__u8e3s4.s1n_1.l1o().equals(Illuminant_getInstance().m1q_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.g1q(XYZColorSpaces_getInstance().f1q_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
|
|
782
764
|
} else {
|
|
783
765
|
tmp_1 = null;
|
|
784
766
|
}
|
|
@@ -799,41 +781,40 @@
|
|
|
799
781
|
// Inline function 'kotlin.text.buildString' call
|
|
800
782
|
// Inline function 'kotlin.apply' call
|
|
801
783
|
var this_0 = StringBuilder_init_$Create$();
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
var tmp = dropLast_0(_this__u8e3s4.x5(), 1);
|
|
784
|
+
this_0.g8('color(').g8(name).g8(' ');
|
|
785
|
+
var tmp = dropLast_0(_this__u8e3s4.p5(), 1);
|
|
805
786
|
joinTo(tmp, this_0, ' ', VOID, VOID, VOID, VOID, renderFn$lambda(unitsPercent));
|
|
806
|
-
this_0.
|
|
807
|
-
this_0.
|
|
787
|
+
this_0.g8(renderAlpha(_this__u8e3s4, false, renderAlpha_0, alphaPercent));
|
|
788
|
+
this_0.g8(')');
|
|
808
789
|
return this_0.toString();
|
|
809
790
|
}
|
|
810
791
|
function get_dashName(_this__u8e3s4) {
|
|
811
|
-
var tmp0 = _this__u8e3s4.
|
|
792
|
+
var tmp0 = _this__u8e3s4.e1n().l2();
|
|
812
793
|
// Inline function 'kotlin.text.replace' call
|
|
813
794
|
// Inline function 'kotlin.text.lowercase' call
|
|
814
795
|
// Inline function 'kotlin.js.asDynamic' call
|
|
815
|
-
return '--' + Regex_init_$Create$('\\W').
|
|
796
|
+
return '--' + Regex_init_$Create$('\\W').gc(tmp0, '-').toLowerCase();
|
|
816
797
|
}
|
|
817
798
|
function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
|
|
818
|
-
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.
|
|
799
|
+
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.h1n_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.p1q())), rgbPercent ? render(_this__u8e3s4.i1n_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.p1q())), rgbPercent ? render(_this__u8e3s4.j1n_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.p1q()))], alphaPercent, renderAlpha, commas);
|
|
819
800
|
}
|
|
820
801
|
function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
|
|
821
|
-
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
802
|
+
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.r1q_1, true), render(_this__u8e3s4.s1q_1, true)], alphaPercent, renderAlpha, commas);
|
|
822
803
|
}
|
|
823
804
|
function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
824
|
-
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.
|
|
805
|
+
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.u1n_1 / 100, true), render(_this__u8e3s4.v1n_1), render(_this__u8e3s4.w1n_1)], alphaPercent, renderAlpha);
|
|
825
806
|
}
|
|
826
807
|
function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
827
|
-
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.
|
|
808
|
+
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.u1q_1 / 100, true), render(_this__u8e3s4.v1q_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
828
809
|
}
|
|
829
810
|
function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
830
|
-
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
811
|
+
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.a1r_1, true), render(_this__u8e3s4.b1r_1, true)], alphaPercent, renderAlpha);
|
|
831
812
|
}
|
|
832
813
|
function renderOklab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
833
|
-
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.
|
|
814
|
+
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.c1o_1, true), render(_this__u8e3s4.d1o_1), render(_this__u8e3s4.e1o_1)], alphaPercent, renderAlpha);
|
|
834
815
|
}
|
|
835
816
|
function renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
836
|
-
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.
|
|
817
|
+
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.d1r_1, true), render(_this__u8e3s4.e1r_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
837
818
|
}
|
|
838
819
|
function render(_this__u8e3s4, percent, precision) {
|
|
839
820
|
percent = percent === VOID ? false : percent;
|
|
@@ -860,8 +841,8 @@
|
|
|
860
841
|
}
|
|
861
842
|
function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
|
|
862
843
|
var tmp;
|
|
863
|
-
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.
|
|
864
|
-
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.
|
|
844
|
+
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.d1n()) && !(_this__u8e3s4.d1n() === 1.0))) {
|
|
845
|
+
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.d1n()), alphaPercent);
|
|
865
846
|
} else {
|
|
866
847
|
tmp = '';
|
|
867
848
|
}
|
|
@@ -872,26 +853,25 @@
|
|
|
872
853
|
// Inline function 'kotlin.text.buildString' call
|
|
873
854
|
// Inline function 'kotlin.apply' call
|
|
874
855
|
var this_0 = StringBuilder_init_$Create$();
|
|
875
|
-
// Inline function 'com.github.ajalt.colormath.renderColorFn.<anonymous>' call
|
|
876
856
|
var sep = commas ? ', ' : ' ';
|
|
877
|
-
this_0.
|
|
857
|
+
this_0.g8(name).g8('(');
|
|
878
858
|
joinTo_0(components, this_0, sep);
|
|
879
|
-
this_0.
|
|
880
|
-
this_0.
|
|
859
|
+
this_0.g8(renderAlpha(_this__u8e3s4, commas, renderAlpha_0, alphaPercent));
|
|
860
|
+
this_0.g8(')');
|
|
881
861
|
return this_0.toString();
|
|
882
862
|
}
|
|
883
863
|
function renderHue(_this__u8e3s4, hueUnit) {
|
|
884
864
|
var tmp;
|
|
885
|
-
if (isNaN_0(_this__u8e3s4.
|
|
865
|
+
if (isNaN_0(_this__u8e3s4.h1r())) {
|
|
886
866
|
tmp = 'none';
|
|
887
867
|
} else {
|
|
888
868
|
var tmp_0;
|
|
889
|
-
switch (hueUnit.
|
|
869
|
+
switch (hueUnit.k2_1) {
|
|
890
870
|
case 0:
|
|
891
|
-
tmp_0 = render(_this__u8e3s4.
|
|
871
|
+
tmp_0 = render(_this__u8e3s4.h1r());
|
|
892
872
|
break;
|
|
893
873
|
case 1:
|
|
894
|
-
tmp_0 = render(_this__u8e3s4.
|
|
874
|
+
tmp_0 = render(_this__u8e3s4.h1r()) + 'deg';
|
|
895
875
|
break;
|
|
896
876
|
case 2:
|
|
897
877
|
tmp_0 = render(hueAsRad(_this__u8e3s4)) + 'rad';
|
|
@@ -928,27 +908,27 @@
|
|
|
928
908
|
return AngleUnit_AUTO_instance;
|
|
929
909
|
}
|
|
930
910
|
function hueOr(_this__u8e3s4, whenNaN) {
|
|
931
|
-
return isNaN_0(_this__u8e3s4.
|
|
911
|
+
return isNaN_0(_this__u8e3s4.h1r()) ? numberToDouble(whenNaN) : _this__u8e3s4.h1r();
|
|
932
912
|
}
|
|
933
913
|
function hueAsRad(_this__u8e3s4) {
|
|
934
|
-
return degToRad(_this__u8e3s4.
|
|
914
|
+
return degToRad(_this__u8e3s4.h1r());
|
|
935
915
|
}
|
|
936
916
|
function hueAsGrad(_this__u8e3s4) {
|
|
937
|
-
return degToGrad(_this__u8e3s4.
|
|
917
|
+
return degToGrad(_this__u8e3s4.h1r());
|
|
938
918
|
}
|
|
939
919
|
function hueAsTurns(_this__u8e3s4) {
|
|
940
|
-
return degToTurns(_this__u8e3s4.
|
|
920
|
+
return degToTurns(_this__u8e3s4.h1r());
|
|
941
921
|
}
|
|
942
922
|
function WhitePoint(name, chromaticity) {
|
|
943
|
-
this.
|
|
944
|
-
this.
|
|
923
|
+
this.i1r_1 = name;
|
|
924
|
+
this.j1r_1 = chromaticity;
|
|
945
925
|
}
|
|
946
926
|
protoOf(WhitePoint).toString = function () {
|
|
947
|
-
return this.
|
|
927
|
+
return this.i1r_1;
|
|
948
928
|
};
|
|
949
929
|
protoOf(WhitePoint).hashCode = function () {
|
|
950
|
-
var result = getStringHashCode(this.
|
|
951
|
-
result = imul(result, 31) + this.
|
|
930
|
+
var result = getStringHashCode(this.i1r_1);
|
|
931
|
+
result = imul(result, 31) + this.j1r_1.hashCode() | 0;
|
|
952
932
|
return result;
|
|
953
933
|
};
|
|
954
934
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -957,22 +937,22 @@
|
|
|
957
937
|
if (!(other instanceof WhitePoint))
|
|
958
938
|
return false;
|
|
959
939
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
960
|
-
if (!(this.
|
|
940
|
+
if (!(this.i1r_1 === tmp0_other_with_cast.i1r_1))
|
|
961
941
|
return false;
|
|
962
|
-
if (!this.
|
|
942
|
+
if (!this.j1r_1.equals(tmp0_other_with_cast.j1r_1))
|
|
963
943
|
return false;
|
|
964
944
|
return true;
|
|
965
945
|
};
|
|
966
946
|
function Illuminant() {
|
|
967
947
|
Illuminant_instance = this;
|
|
968
|
-
this.
|
|
969
|
-
this.
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
948
|
+
this.h1q_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
949
|
+
this.i1q_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
950
|
+
this.j1q_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
951
|
+
this.k1q_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
952
|
+
this.l1q_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
953
|
+
this.m1q_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
954
|
+
this.n1q_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
955
|
+
this.o1q_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
976
956
|
}
|
|
977
957
|
var Illuminant_instance;
|
|
978
958
|
function Illuminant_getInstance() {
|
|
@@ -991,18 +971,16 @@
|
|
|
991
971
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
992
972
|
// Inline function 'kotlin.apply' call
|
|
993
973
|
var this_0 = ArrayList_init_$Create$_0();
|
|
994
|
-
// Inline function 'com.github.ajalt.colormath.internal.zeroOneComponentInfo.<anonymous>' call
|
|
995
974
|
// Inline function 'kotlin.text.mapTo' call
|
|
996
975
|
var inductionVariable = 0;
|
|
997
976
|
while (inductionVariable < charSequenceLength(name)) {
|
|
998
977
|
var item = charSequenceGet(name, inductionVariable);
|
|
999
978
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1000
|
-
// Inline function 'com.github.ajalt.colormath.internal.zeroOneComponentInfo.<anonymous>.<anonymous>' call
|
|
1001
979
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), false, 0.0, 1.0);
|
|
1002
980
|
this_0.e(tmp$ret$0);
|
|
1003
981
|
}
|
|
1004
982
|
this_0.e(get_alphaInfo());
|
|
1005
|
-
return this_0.
|
|
983
|
+
return this_0.k3();
|
|
1006
984
|
}
|
|
1007
985
|
function threeComponentInfo(n1, l1, r1, n2, l2, r2, n3, l3, r3) {
|
|
1008
986
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -1014,18 +992,16 @@
|
|
|
1014
992
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
1015
993
|
// Inline function 'kotlin.apply' call
|
|
1016
994
|
var this_0 = ArrayList_init_$Create$_0();
|
|
1017
|
-
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>' call
|
|
1018
995
|
// Inline function 'kotlin.text.mapTo' call
|
|
1019
996
|
var inductionVariable = 0;
|
|
1020
997
|
while (inductionVariable < charSequenceLength(name)) {
|
|
1021
998
|
var item = charSequenceGet(name, inductionVariable);
|
|
1022
999
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1023
|
-
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>.<anonymous>' call
|
|
1024
1000
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), item === _Char___init__impl__6a9atx(72), item === _Char___init__impl__6a9atx(72) ? 0.0 : l, item === _Char___init__impl__6a9atx(72) ? 360.0 : r);
|
|
1025
1001
|
this_0.e(tmp$ret$0);
|
|
1026
1002
|
}
|
|
1027
1003
|
this_0.e(get_alphaInfo());
|
|
1028
|
-
return this_0.
|
|
1004
|
+
return this_0.k3();
|
|
1029
1005
|
}
|
|
1030
1006
|
function componentInfoList(c) {
|
|
1031
1007
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -1058,7 +1034,7 @@
|
|
|
1058
1034
|
}
|
|
1059
1035
|
function CssColors() {
|
|
1060
1036
|
CssColors_instance = this;
|
|
1061
|
-
this.
|
|
1037
|
+
this.o1o_1 = mapOf([to('black', Companion_getInstance_6().k1r(0, 0, 0)), to('silver', Companion_getInstance_6().k1r(192, 192, 192)), to('gray', Companion_getInstance_6().k1r(128, 128, 128)), to('white', Companion_getInstance_6().k1r(255, 255, 255)), to('maroon', Companion_getInstance_6().k1r(128, 0, 0)), to('red', Companion_getInstance_6().k1r(255, 0, 0)), to('purple', Companion_getInstance_6().k1r(128, 0, 128)), to('fuchsia', Companion_getInstance_6().k1r(255, 0, 255)), to('green', Companion_getInstance_6().k1r(0, 128, 0)), to('lime', Companion_getInstance_6().k1r(0, 255, 0)), to('olive', Companion_getInstance_6().k1r(128, 128, 0)), to('yellow', Companion_getInstance_6().k1r(255, 255, 0)), to('navy', Companion_getInstance_6().k1r(0, 0, 128)), to('blue', Companion_getInstance_6().k1r(0, 0, 255)), to('teal', Companion_getInstance_6().k1r(0, 128, 128)), to('aqua', Companion_getInstance_6().k1r(0, 255, 255)), to('orange', Companion_getInstance_6().k1r(255, 165, 0)), to('aliceblue', Companion_getInstance_6().k1r(240, 248, 255)), to('antiquewhite', Companion_getInstance_6().k1r(250, 235, 215)), to('aquamarine', Companion_getInstance_6().k1r(127, 255, 212)), to('azure', Companion_getInstance_6().k1r(240, 255, 255)), to('beige', Companion_getInstance_6().k1r(245, 245, 220)), to('bisque', Companion_getInstance_6().k1r(255, 228, 196)), to('blanchedalmond', Companion_getInstance_6().k1r(255, 235, 205)), to('blueviolet', Companion_getInstance_6().k1r(138, 43, 226)), to('brown', Companion_getInstance_6().k1r(165, 42, 42)), to('burlywood', Companion_getInstance_6().k1r(222, 184, 135)), to('cadetblue', Companion_getInstance_6().k1r(95, 158, 160)), to('chartreuse', Companion_getInstance_6().k1r(127, 255, 0)), to('chocolate', Companion_getInstance_6().k1r(210, 105, 30)), to('coral', Companion_getInstance_6().k1r(255, 127, 80)), to('cornflowerblue', Companion_getInstance_6().k1r(100, 149, 237)), to('cornsilk', Companion_getInstance_6().k1r(255, 248, 220)), to('crimson', Companion_getInstance_6().k1r(220, 20, 60)), to('cyan', Companion_getInstance_6().k1r(0, 255, 255)), to('darkblue', Companion_getInstance_6().k1r(0, 0, 139)), to('darkcyan', Companion_getInstance_6().k1r(0, 139, 139)), to('darkgoldenrod', Companion_getInstance_6().k1r(184, 134, 11)), to('darkgray', Companion_getInstance_6().k1r(169, 169, 169)), to('darkgreen', Companion_getInstance_6().k1r(0, 100, 0)), to('darkgrey', Companion_getInstance_6().k1r(169, 169, 169)), to('darkkhaki', Companion_getInstance_6().k1r(189, 183, 107)), to('darkmagenta', Companion_getInstance_6().k1r(139, 0, 139)), to('darkolivegreen', Companion_getInstance_6().k1r(85, 107, 47)), to('darkorange', Companion_getInstance_6().k1r(255, 140, 0)), to('darkorchid', Companion_getInstance_6().k1r(153, 50, 204)), to('darkred', Companion_getInstance_6().k1r(139, 0, 0)), to('darksalmon', Companion_getInstance_6().k1r(233, 150, 122)), to('darkseagreen', Companion_getInstance_6().k1r(143, 188, 143)), to('darkslateblue', Companion_getInstance_6().k1r(72, 61, 139)), to('darkslategray', Companion_getInstance_6().k1r(47, 79, 79)), to('darkslategrey', Companion_getInstance_6().k1r(47, 79, 79)), to('darkturquoise', Companion_getInstance_6().k1r(0, 206, 209)), to('darkviolet', Companion_getInstance_6().k1r(148, 0, 211)), to('deeppink', Companion_getInstance_6().k1r(255, 20, 147)), to('deepskyblue', Companion_getInstance_6().k1r(0, 191, 255)), to('dimgray', Companion_getInstance_6().k1r(105, 105, 105)), to('dimgrey', Companion_getInstance_6().k1r(105, 105, 105)), to('dodgerblue', Companion_getInstance_6().k1r(30, 144, 255)), to('firebrick', Companion_getInstance_6().k1r(178, 34, 34)), to('floralwhite', Companion_getInstance_6().k1r(255, 250, 240)), to('forestgreen', Companion_getInstance_6().k1r(34, 139, 34)), to('gainsboro', Companion_getInstance_6().k1r(220, 220, 220)), to('ghostwhite', Companion_getInstance_6().k1r(248, 248, 255)), to('gold', Companion_getInstance_6().k1r(255, 215, 0)), to('goldenrod', Companion_getInstance_6().k1r(218, 165, 32)), to('greenyellow', Companion_getInstance_6().k1r(173, 255, 47)), to('grey', Companion_getInstance_6().k1r(128, 128, 128)), to('honeydew', Companion_getInstance_6().k1r(240, 255, 240)), to('hotpink', Companion_getInstance_6().k1r(255, 105, 180)), to('indianred', Companion_getInstance_6().k1r(205, 92, 92)), to('indigo', Companion_getInstance_6().k1r(75, 0, 130)), to('ivory', Companion_getInstance_6().k1r(255, 255, 240)), to('khaki', Companion_getInstance_6().k1r(240, 230, 140)), to('lavender', Companion_getInstance_6().k1r(230, 230, 250)), to('lavenderblush', Companion_getInstance_6().k1r(255, 240, 245)), to('lawngreen', Companion_getInstance_6().k1r(124, 252, 0)), to('lemonchiffon', Companion_getInstance_6().k1r(255, 250, 205)), to('lightblue', Companion_getInstance_6().k1r(173, 216, 230)), to('lightcoral', Companion_getInstance_6().k1r(240, 128, 128)), to('lightcyan', Companion_getInstance_6().k1r(224, 255, 255)), to('lightgoldenrodyellow', Companion_getInstance_6().k1r(250, 250, 210)), to('lightgray', Companion_getInstance_6().k1r(211, 211, 211)), to('lightgreen', Companion_getInstance_6().k1r(144, 238, 144)), to('lightgrey', Companion_getInstance_6().k1r(211, 211, 211)), to('lightpink', Companion_getInstance_6().k1r(255, 182, 193)), to('lightsalmon', Companion_getInstance_6().k1r(255, 160, 122)), to('lightseagreen', Companion_getInstance_6().k1r(32, 178, 170)), to('lightskyblue', Companion_getInstance_6().k1r(135, 206, 250)), to('lightslategray', Companion_getInstance_6().k1r(119, 136, 153)), to('lightslategrey', Companion_getInstance_6().k1r(119, 136, 153)), to('lightsteelblue', Companion_getInstance_6().k1r(176, 196, 222)), to('lightyellow', Companion_getInstance_6().k1r(255, 255, 224)), to('limegreen', Companion_getInstance_6().k1r(50, 205, 50)), to('linen', Companion_getInstance_6().k1r(250, 240, 230)), to('magenta', Companion_getInstance_6().k1r(255, 0, 255)), to('mediumaquamarine', Companion_getInstance_6().k1r(102, 205, 170)), to('mediumblue', Companion_getInstance_6().k1r(0, 0, 205)), to('mediumorchid', Companion_getInstance_6().k1r(186, 85, 211)), to('mediumpurple', Companion_getInstance_6().k1r(147, 112, 219)), to('mediumseagreen', Companion_getInstance_6().k1r(60, 179, 113)), to('mediumslateblue', Companion_getInstance_6().k1r(123, 104, 238)), to('mediumspringgreen', Companion_getInstance_6().k1r(0, 250, 154)), to('mediumturquoise', Companion_getInstance_6().k1r(72, 209, 204)), to('mediumvioletred', Companion_getInstance_6().k1r(199, 21, 133)), to('midnightblue', Companion_getInstance_6().k1r(25, 25, 112)), to('mintcream', Companion_getInstance_6().k1r(245, 255, 250)), to('mistyrose', Companion_getInstance_6().k1r(255, 228, 225)), to('moccasin', Companion_getInstance_6().k1r(255, 228, 181)), to('navajowhite', Companion_getInstance_6().k1r(255, 222, 173)), to('oldlace', Companion_getInstance_6().k1r(253, 245, 230)), to('olivedrab', Companion_getInstance_6().k1r(107, 142, 35)), to('orangered', Companion_getInstance_6().k1r(255, 69, 0)), to('orchid', Companion_getInstance_6().k1r(218, 112, 214)), to('palegoldenrod', Companion_getInstance_6().k1r(238, 232, 170)), to('palegreen', Companion_getInstance_6().k1r(152, 251, 152)), to('paleturquoise', Companion_getInstance_6().k1r(175, 238, 238)), to('palevioletred', Companion_getInstance_6().k1r(219, 112, 147)), to('papayawhip', Companion_getInstance_6().k1r(255, 239, 213)), to('peachpuff', Companion_getInstance_6().k1r(255, 218, 185)), to('peru', Companion_getInstance_6().k1r(205, 133, 63)), to('pink', Companion_getInstance_6().k1r(255, 192, 203)), to('plum', Companion_getInstance_6().k1r(221, 160, 221)), to('powderblue', Companion_getInstance_6().k1r(176, 224, 230)), to('rosybrown', Companion_getInstance_6().k1r(188, 143, 143)), to('royalblue', Companion_getInstance_6().k1r(65, 105, 225)), to('saddlebrown', Companion_getInstance_6().k1r(139, 69, 19)), to('salmon', Companion_getInstance_6().k1r(250, 128, 114)), to('sandybrown', Companion_getInstance_6().k1r(244, 164, 96)), to('seagreen', Companion_getInstance_6().k1r(46, 139, 87)), to('seashell', Companion_getInstance_6().k1r(255, 245, 238)), to('sienna', Companion_getInstance_6().k1r(160, 82, 45)), to('skyblue', Companion_getInstance_6().k1r(135, 206, 235)), to('slateblue', Companion_getInstance_6().k1r(106, 90, 205)), to('slategray', Companion_getInstance_6().k1r(112, 128, 144)), to('slategrey', Companion_getInstance_6().k1r(112, 128, 144)), to('snow', Companion_getInstance_6().k1r(255, 250, 250)), to('springgreen', Companion_getInstance_6().k1r(0, 255, 127)), to('steelblue', Companion_getInstance_6().k1r(70, 130, 180)), to('tan', Companion_getInstance_6().k1r(210, 180, 140)), to('thistle', Companion_getInstance_6().k1r(216, 191, 216)), to('tomato', Companion_getInstance_6().k1r(255, 99, 71)), to('turquoise', Companion_getInstance_6().k1r(64, 224, 208)), to('violet', Companion_getInstance_6().k1r(238, 130, 238)), to('wheat', Companion_getInstance_6().k1r(245, 222, 179)), to('whitesmoke', Companion_getInstance_6().k1r(245, 245, 245)), to('yellowgreen', Companion_getInstance_6().k1r(154, 205, 50)), to('rebeccapurple', Companion_getInstance_6().k1r(102, 51, 153)), to('transparent', Companion_getInstance_6().l1r(0, 0, 0, 0))]);
|
|
1062
1038
|
}
|
|
1063
1039
|
var CssColors_instance;
|
|
1064
1040
|
function CssColors_getInstance() {
|
|
@@ -1144,22 +1120,22 @@
|
|
|
1144
1120
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
1145
1121
|
if (!(other instanceof Matrix))
|
|
1146
1122
|
return false;
|
|
1147
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
1123
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.m1r_1 : THROW_CCE();
|
|
1148
1124
|
if (!equals($this, tmp0_other_with_cast))
|
|
1149
1125
|
return false;
|
|
1150
1126
|
return true;
|
|
1151
1127
|
}
|
|
1152
1128
|
function Matrix(rowMajor) {
|
|
1153
|
-
this.
|
|
1129
|
+
this.m1r_1 = rowMajor;
|
|
1154
1130
|
}
|
|
1155
1131
|
protoOf(Matrix).toString = function () {
|
|
1156
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
1132
|
+
return Matrix__toString_impl_l0abk0(this.m1r_1);
|
|
1157
1133
|
};
|
|
1158
1134
|
protoOf(Matrix).hashCode = function () {
|
|
1159
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
1135
|
+
return Matrix__hashCode_impl_s9ntm9(this.m1r_1);
|
|
1160
1136
|
};
|
|
1161
1137
|
protoOf(Matrix).equals = function (other) {
|
|
1162
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
1138
|
+
return Matrix__equals_impl_g5p8p9(this.m1r_1, other);
|
|
1163
1139
|
};
|
|
1164
1140
|
function inverse(_this__u8e3s4, inPlace) {
|
|
1165
1141
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -1232,7 +1208,6 @@
|
|
|
1232
1208
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1233
1209
|
var tmp4 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 0) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 0) * v2;
|
|
1234
1210
|
var tmp5 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 1) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 1) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 1) * v2;
|
|
1235
|
-
// Inline function 'com.github.ajalt.colormath.internal.dot.stub_for_inlining' call
|
|
1236
1211
|
var p2 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 2) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 2) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 2) * v2;
|
|
1237
1212
|
return _Vector___init__impl__y7x4qq_0(tmp4, tmp5, p2);
|
|
1238
1213
|
}
|
|
@@ -1241,30 +1216,28 @@
|
|
|
1241
1216
|
}
|
|
1242
1217
|
function Companion_0() {
|
|
1243
1218
|
Companion_instance_1 = this;
|
|
1244
|
-
this.
|
|
1219
|
+
this.i1p_1 = polarComponentInfo('HSL', 0.0, 1.0);
|
|
1245
1220
|
}
|
|
1246
|
-
protoOf(Companion_0).
|
|
1221
|
+
protoOf(Companion_0).l2 = function () {
|
|
1247
1222
|
return 'HSL';
|
|
1248
1223
|
};
|
|
1249
|
-
protoOf(Companion_0).
|
|
1250
|
-
return this.
|
|
1224
|
+
protoOf(Companion_0).m1o = function () {
|
|
1225
|
+
return this.i1p_1;
|
|
1251
1226
|
};
|
|
1252
|
-
protoOf(Companion_0).
|
|
1253
|
-
return color.
|
|
1227
|
+
protoOf(Companion_0).g1o = function (color) {
|
|
1228
|
+
return color.g1n();
|
|
1254
1229
|
};
|
|
1255
|
-
protoOf(Companion_0).
|
|
1230
|
+
protoOf(Companion_0).n1o = function (components) {
|
|
1256
1231
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1257
1232
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1258
|
-
var size = this.
|
|
1233
|
+
var size = this.m1o().m();
|
|
1259
1234
|
var containsLower = size - 1 | 0;
|
|
1260
1235
|
var containsArg = components.length;
|
|
1261
1236
|
// Inline function 'kotlin.require' call
|
|
1262
1237
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
1263
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
1264
1238
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
1265
1239
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1266
1240
|
}
|
|
1267
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
1268
1241
|
var tmp2 = components[0];
|
|
1269
1242
|
var tmp3 = components[1];
|
|
1270
1243
|
var tmp4 = components[2];
|
|
@@ -1273,10 +1246,8 @@
|
|
|
1273
1246
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
1274
1247
|
tmp = components[3];
|
|
1275
1248
|
} else {
|
|
1276
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1277
1249
|
tmp = 1.0;
|
|
1278
1250
|
}
|
|
1279
|
-
// Inline function 'com.github.ajalt.colormath.model.Companion.create.stub_for_inlining' call
|
|
1280
1251
|
var p3 = tmp;
|
|
1281
1252
|
return new HSL(tmp2, tmp3, tmp4, p3);
|
|
1282
1253
|
};
|
|
@@ -1300,53 +1271,53 @@
|
|
|
1300
1271
|
function HSL(h, s, l, alpha) {
|
|
1301
1272
|
Companion_getInstance_0();
|
|
1302
1273
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1274
|
+
this.q1q_1 = h;
|
|
1275
|
+
this.r1q_1 = s;
|
|
1276
|
+
this.s1q_1 = l;
|
|
1277
|
+
this.t1q_1 = alpha;
|
|
1307
1278
|
}
|
|
1308
|
-
protoOf(HSL).
|
|
1309
|
-
return this.
|
|
1279
|
+
protoOf(HSL).h1r = function () {
|
|
1280
|
+
return this.q1q_1;
|
|
1310
1281
|
};
|
|
1311
|
-
protoOf(HSL).
|
|
1312
|
-
return this.
|
|
1282
|
+
protoOf(HSL).d1n = function () {
|
|
1283
|
+
return this.t1q_1;
|
|
1313
1284
|
};
|
|
1314
|
-
protoOf(HSL).
|
|
1285
|
+
protoOf(HSL).e1n = function () {
|
|
1315
1286
|
return Companion_getInstance_0();
|
|
1316
1287
|
};
|
|
1317
|
-
protoOf(HSL).
|
|
1318
|
-
if (this.
|
|
1319
|
-
return Companion_getInstance_6().
|
|
1288
|
+
protoOf(HSL).f1n = function () {
|
|
1289
|
+
if (this.r1q_1 < 1.0E-7)
|
|
1290
|
+
return Companion_getInstance_6().h1p(this.s1q_1, this.s1q_1, this.s1q_1, this.t1q_1);
|
|
1320
1291
|
var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
|
|
1321
|
-
var s = this.
|
|
1322
|
-
var l = this.
|
|
1323
|
-
return SRGB_getInstance().
|
|
1292
|
+
var s = this.r1q_1;
|
|
1293
|
+
var l = this.s1q_1;
|
|
1294
|
+
return SRGB_getInstance().h1p(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.t1q_1);
|
|
1324
1295
|
};
|
|
1325
|
-
protoOf(HSL).
|
|
1296
|
+
protoOf(HSL).g1n = function () {
|
|
1326
1297
|
return this;
|
|
1327
1298
|
};
|
|
1328
|
-
protoOf(HSL).
|
|
1299
|
+
protoOf(HSL).p5 = function () {
|
|
1329
1300
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1330
|
-
return new Float32Array([this.
|
|
1301
|
+
return new Float32Array([this.q1q_1, this.r1q_1, this.s1q_1, this.t1q_1]);
|
|
1331
1302
|
};
|
|
1332
|
-
protoOf(HSL).
|
|
1303
|
+
protoOf(HSL).o1r = function (h, s, l, alpha) {
|
|
1333
1304
|
return new HSL(h, s, l, alpha);
|
|
1334
1305
|
};
|
|
1335
|
-
protoOf(HSL).
|
|
1336
|
-
h = h === VOID ? this.
|
|
1337
|
-
s = s === VOID ? this.
|
|
1338
|
-
l = l === VOID ? this.
|
|
1339
|
-
alpha = alpha === VOID ? this.
|
|
1340
|
-
return $super === VOID ? this.
|
|
1306
|
+
protoOf(HSL).p1r = function (h, s, l, alpha, $super) {
|
|
1307
|
+
h = h === VOID ? this.q1q_1 : h;
|
|
1308
|
+
s = s === VOID ? this.r1q_1 : s;
|
|
1309
|
+
l = l === VOID ? this.s1q_1 : l;
|
|
1310
|
+
alpha = alpha === VOID ? this.t1q_1 : alpha;
|
|
1311
|
+
return $super === VOID ? this.o1r(h, s, l, alpha) : $super.o1r.call(this, h, s, l, alpha);
|
|
1341
1312
|
};
|
|
1342
1313
|
protoOf(HSL).toString = function () {
|
|
1343
|
-
return 'HSL(h=' + this.
|
|
1314
|
+
return 'HSL(h=' + this.q1q_1 + ', s=' + this.r1q_1 + ', l=' + this.s1q_1 + ', alpha=' + this.t1q_1 + ')';
|
|
1344
1315
|
};
|
|
1345
1316
|
protoOf(HSL).hashCode = function () {
|
|
1346
|
-
var result = getNumberHashCode(this.
|
|
1347
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1348
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1349
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1317
|
+
var result = getNumberHashCode(this.q1q_1);
|
|
1318
|
+
result = imul(result, 31) + getNumberHashCode(this.r1q_1) | 0;
|
|
1319
|
+
result = imul(result, 31) + getNumberHashCode(this.s1q_1) | 0;
|
|
1320
|
+
result = imul(result, 31) + getNumberHashCode(this.t1q_1) | 0;
|
|
1350
1321
|
return result;
|
|
1351
1322
|
};
|
|
1352
1323
|
protoOf(HSL).equals = function (other) {
|
|
@@ -1355,42 +1326,40 @@
|
|
|
1355
1326
|
if (!(other instanceof HSL))
|
|
1356
1327
|
return false;
|
|
1357
1328
|
var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
|
|
1358
|
-
if (!equals(this.
|
|
1329
|
+
if (!equals(this.q1q_1, tmp0_other_with_cast.q1q_1))
|
|
1359
1330
|
return false;
|
|
1360
|
-
if (!equals(this.
|
|
1331
|
+
if (!equals(this.r1q_1, tmp0_other_with_cast.r1q_1))
|
|
1361
1332
|
return false;
|
|
1362
|
-
if (!equals(this.
|
|
1333
|
+
if (!equals(this.s1q_1, tmp0_other_with_cast.s1q_1))
|
|
1363
1334
|
return false;
|
|
1364
|
-
if (!equals(this.
|
|
1335
|
+
if (!equals(this.t1q_1, tmp0_other_with_cast.t1q_1))
|
|
1365
1336
|
return false;
|
|
1366
1337
|
return true;
|
|
1367
1338
|
};
|
|
1368
1339
|
function Companion_1() {
|
|
1369
1340
|
Companion_instance_2 = this;
|
|
1370
|
-
this.
|
|
1341
|
+
this.p1p_1 = polarComponentInfo('HWB', 0.0, 1.0);
|
|
1371
1342
|
}
|
|
1372
|
-
protoOf(Companion_1).
|
|
1343
|
+
protoOf(Companion_1).l2 = function () {
|
|
1373
1344
|
return 'HWB';
|
|
1374
1345
|
};
|
|
1375
|
-
protoOf(Companion_1).
|
|
1376
|
-
return this.
|
|
1346
|
+
protoOf(Companion_1).m1o = function () {
|
|
1347
|
+
return this.p1p_1;
|
|
1377
1348
|
};
|
|
1378
|
-
protoOf(Companion_1).
|
|
1379
|
-
return color.
|
|
1349
|
+
protoOf(Companion_1).g1o = function (color) {
|
|
1350
|
+
return color.z1n();
|
|
1380
1351
|
};
|
|
1381
|
-
protoOf(Companion_1).
|
|
1352
|
+
protoOf(Companion_1).n1o = function (components) {
|
|
1382
1353
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1383
1354
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1384
|
-
var size = this.
|
|
1355
|
+
var size = this.m1o().m();
|
|
1385
1356
|
var containsLower = size - 1 | 0;
|
|
1386
1357
|
var containsArg = components.length;
|
|
1387
1358
|
// Inline function 'kotlin.require' call
|
|
1388
1359
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
1389
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
1390
1360
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
1391
1361
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1392
1362
|
}
|
|
1393
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
1394
1363
|
var tmp2 = components[0];
|
|
1395
1364
|
var tmp3 = components[1];
|
|
1396
1365
|
var tmp4 = components[2];
|
|
@@ -1399,10 +1368,8 @@
|
|
|
1399
1368
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
1400
1369
|
tmp = components[3];
|
|
1401
1370
|
} else {
|
|
1402
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1403
1371
|
tmp = 1.0;
|
|
1404
1372
|
}
|
|
1405
|
-
// Inline function 'com.github.ajalt.colormath.model.Companion.create.stub_for_inlining' call
|
|
1406
1373
|
var p3 = tmp;
|
|
1407
1374
|
return new HWB(tmp2, tmp3, tmp4, p3);
|
|
1408
1375
|
};
|
|
@@ -1415,28 +1382,28 @@
|
|
|
1415
1382
|
function HWB(h, w, b, alpha) {
|
|
1416
1383
|
Companion_getInstance_1();
|
|
1417
1384
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1385
|
+
this.z1q_1 = h;
|
|
1386
|
+
this.a1r_1 = w;
|
|
1387
|
+
this.b1r_1 = b;
|
|
1388
|
+
this.c1r_1 = alpha;
|
|
1422
1389
|
}
|
|
1423
|
-
protoOf(HWB).
|
|
1424
|
-
return this.
|
|
1390
|
+
protoOf(HWB).h1r = function () {
|
|
1391
|
+
return this.z1q_1;
|
|
1425
1392
|
};
|
|
1426
|
-
protoOf(HWB).
|
|
1427
|
-
return this.
|
|
1393
|
+
protoOf(HWB).d1n = function () {
|
|
1394
|
+
return this.c1r_1;
|
|
1428
1395
|
};
|
|
1429
|
-
protoOf(HWB).
|
|
1396
|
+
protoOf(HWB).e1n = function () {
|
|
1430
1397
|
return Companion_getInstance_1();
|
|
1431
1398
|
};
|
|
1432
|
-
protoOf(HWB).
|
|
1433
|
-
var h = this.
|
|
1434
|
-
var w = this.
|
|
1435
|
-
var b = this.
|
|
1436
|
-
var a = this.
|
|
1399
|
+
protoOf(HWB).f1n = function () {
|
|
1400
|
+
var h = this.z1q_1 / 60.0;
|
|
1401
|
+
var w = this.a1r_1;
|
|
1402
|
+
var b = this.b1r_1;
|
|
1403
|
+
var a = this.c1r_1;
|
|
1437
1404
|
if (w + b >= 1) {
|
|
1438
1405
|
var gray = w / (w + b);
|
|
1439
|
-
return Companion_getInstance_6().
|
|
1406
|
+
return Companion_getInstance_6().h1p(gray, gray, gray, a);
|
|
1440
1407
|
}
|
|
1441
1408
|
var v = 1 - b;
|
|
1442
1409
|
var i = numberToInt(h);
|
|
@@ -1444,34 +1411,34 @@
|
|
|
1444
1411
|
var n = w + f * (v - w);
|
|
1445
1412
|
switch (i) {
|
|
1446
1413
|
case 1:
|
|
1447
|
-
return Companion_getInstance_6().
|
|
1414
|
+
return Companion_getInstance_6().h1p(n, v, w, a);
|
|
1448
1415
|
case 2:
|
|
1449
|
-
return Companion_getInstance_6().
|
|
1416
|
+
return Companion_getInstance_6().h1p(w, v, n, a);
|
|
1450
1417
|
case 3:
|
|
1451
|
-
return Companion_getInstance_6().
|
|
1418
|
+
return Companion_getInstance_6().h1p(w, n, v, a);
|
|
1452
1419
|
case 4:
|
|
1453
|
-
return Companion_getInstance_6().
|
|
1420
|
+
return Companion_getInstance_6().h1p(n, w, v, a);
|
|
1454
1421
|
case 5:
|
|
1455
|
-
return Companion_getInstance_6().
|
|
1422
|
+
return Companion_getInstance_6().h1p(v, w, n, a);
|
|
1456
1423
|
default:
|
|
1457
|
-
return Companion_getInstance_6().
|
|
1424
|
+
return Companion_getInstance_6().h1p(v, n, w, a);
|
|
1458
1425
|
}
|
|
1459
1426
|
};
|
|
1460
|
-
protoOf(HWB).
|
|
1427
|
+
protoOf(HWB).z1n = function () {
|
|
1461
1428
|
return this;
|
|
1462
1429
|
};
|
|
1463
|
-
protoOf(HWB).
|
|
1430
|
+
protoOf(HWB).p5 = function () {
|
|
1464
1431
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1465
|
-
return new Float32Array([this.
|
|
1432
|
+
return new Float32Array([this.z1q_1, this.a1r_1, this.b1r_1, this.c1r_1]);
|
|
1466
1433
|
};
|
|
1467
1434
|
protoOf(HWB).toString = function () {
|
|
1468
|
-
return 'HWB(h=' + this.
|
|
1435
|
+
return 'HWB(h=' + this.z1q_1 + ', w=' + this.a1r_1 + ', b=' + this.b1r_1 + ', alpha=' + this.c1r_1 + ')';
|
|
1469
1436
|
};
|
|
1470
1437
|
protoOf(HWB).hashCode = function () {
|
|
1471
|
-
var result = getNumberHashCode(this.
|
|
1472
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1473
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1474
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1438
|
+
var result = getNumberHashCode(this.z1q_1);
|
|
1439
|
+
result = imul(result, 31) + getNumberHashCode(this.a1r_1) | 0;
|
|
1440
|
+
result = imul(result, 31) + getNumberHashCode(this.b1r_1) | 0;
|
|
1441
|
+
result = imul(result, 31) + getNumberHashCode(this.c1r_1) | 0;
|
|
1475
1442
|
return result;
|
|
1476
1443
|
};
|
|
1477
1444
|
protoOf(HWB).equals = function (other) {
|
|
@@ -1480,13 +1447,13 @@
|
|
|
1480
1447
|
if (!(other instanceof HWB))
|
|
1481
1448
|
return false;
|
|
1482
1449
|
var tmp0_other_with_cast = other instanceof HWB ? other : THROW_CCE();
|
|
1483
|
-
if (!equals(this.
|
|
1450
|
+
if (!equals(this.z1q_1, tmp0_other_with_cast.z1q_1))
|
|
1484
1451
|
return false;
|
|
1485
|
-
if (!equals(this.
|
|
1452
|
+
if (!equals(this.a1r_1, tmp0_other_with_cast.a1r_1))
|
|
1486
1453
|
return false;
|
|
1487
|
-
if (!equals(this.
|
|
1454
|
+
if (!equals(this.b1r_1, tmp0_other_with_cast.b1r_1))
|
|
1488
1455
|
return false;
|
|
1489
|
-
if (!equals(this.
|
|
1456
|
+
if (!equals(this.c1r_1, tmp0_other_with_cast.c1r_1))
|
|
1490
1457
|
return false;
|
|
1491
1458
|
return true;
|
|
1492
1459
|
};
|
|
@@ -1528,45 +1495,43 @@
|
|
|
1528
1495
|
var ICTCP_LMS_TO_XYZ;
|
|
1529
1496
|
function ICtCp() {
|
|
1530
1497
|
}
|
|
1531
|
-
protoOf(ICtCp).
|
|
1532
|
-
var fo = RGBColorSpaces_getInstance().
|
|
1498
|
+
protoOf(ICtCp).u1r = function () {
|
|
1499
|
+
var fo = RGBColorSpaces_getInstance().z1p_1.v1r();
|
|
1533
1500
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
1534
|
-
var tmp1 = this.
|
|
1535
|
-
var tmp2 = this.
|
|
1501
|
+
var tmp1 = this.q1r_1;
|
|
1502
|
+
var tmp2 = this.r1r_1;
|
|
1536
1503
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1537
|
-
var v2 = this.
|
|
1504
|
+
var v2 = this.s1r_1;
|
|
1538
1505
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
1539
1506
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
1540
|
-
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
1541
1507
|
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
1542
1508
|
var tmp0_0 = get_ICTCP_LMS_to_RGB();
|
|
1543
|
-
var tmp1_0 = PqNonlinearity_instance.
|
|
1544
|
-
var tmp2_0 = PqNonlinearity_instance.
|
|
1509
|
+
var tmp1_0 = PqNonlinearity_instance.e1s(tmp4);
|
|
1510
|
+
var tmp2_0 = PqNonlinearity_instance.e1s(tmp5);
|
|
1545
1511
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1546
|
-
var v2_0 = PqNonlinearity_instance.
|
|
1512
|
+
var v2_0 = PqNonlinearity_instance.e1s(s);
|
|
1547
1513
|
var tmp4_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 0) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 0) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 0) * v2_0;
|
|
1548
1514
|
var tmp5_0 = Matrix__get_impl_xogbpk(tmp0_0, 0, 1) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 1) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 1) * v2_0;
|
|
1549
|
-
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
1550
1515
|
var b = Matrix__get_impl_xogbpk(tmp0_0, 0, 2) * tmp1_0 + Matrix__get_impl_xogbpk(tmp0_0, 1, 2) * tmp2_0 + Matrix__get_impl_xogbpk(tmp0_0, 2, 2) * v2_0;
|
|
1551
|
-
return RGBColorSpaces_getInstance().
|
|
1516
|
+
return RGBColorSpaces_getInstance().z1p_1.h1p(fo.f1s(tmp4_0), fo.f1s(tmp5_0), fo.f1s(b), this.t1r_1);
|
|
1552
1517
|
};
|
|
1553
1518
|
function PqNonlinearity() {
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
this.
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
}
|
|
1563
|
-
protoOf(PqNonlinearity).
|
|
1519
|
+
this.w1r_1 = 0.1593017578125;
|
|
1520
|
+
this.x1r_1 = 78.84375;
|
|
1521
|
+
this.y1r_1 = 0.8359375;
|
|
1522
|
+
this.z1r_1 = 18.8515625;
|
|
1523
|
+
this.a1s_1 = 18.6875;
|
|
1524
|
+
this.b1s_1 = 10000.0;
|
|
1525
|
+
this.c1s_1 = 6.277394636015326;
|
|
1526
|
+
this.d1s_1 = 0.012683313515655966;
|
|
1527
|
+
}
|
|
1528
|
+
protoOf(PqNonlinearity).e1s = function (x) {
|
|
1564
1529
|
var vp = spow(x, 0.012683313515655966);
|
|
1565
1530
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
1566
1531
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
1567
1532
|
return 10000.0 * l;
|
|
1568
1533
|
};
|
|
1569
|
-
protoOf(PqNonlinearity).
|
|
1534
|
+
protoOf(PqNonlinearity).f1s = function (x) {
|
|
1570
1535
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
1571
1536
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
1572
1537
|
};
|
|
@@ -1590,34 +1555,34 @@
|
|
|
1590
1555
|
}
|
|
1591
1556
|
function Companion_2() {
|
|
1592
1557
|
Companion_instance_3 = this;
|
|
1593
|
-
this.
|
|
1558
|
+
this.j1p_1 = LABColorSpaces_getInstance().k1p_1;
|
|
1594
1559
|
}
|
|
1595
1560
|
protoOf(Companion_2).equals = function (other) {
|
|
1596
|
-
return equals(LABColorSpaces_getInstance().
|
|
1561
|
+
return equals(LABColorSpaces_getInstance().k1p_1, other);
|
|
1597
1562
|
};
|
|
1598
1563
|
protoOf(Companion_2).hashCode = function () {
|
|
1599
|
-
return hashCode(LABColorSpaces_getInstance().
|
|
1564
|
+
return hashCode(LABColorSpaces_getInstance().k1p_1);
|
|
1600
1565
|
};
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
return this.
|
|
1566
|
+
protoOf(Companion_2).h1p = function (l, a, b, alpha) {
|
|
1567
|
+
return this.j1p_1.h1p(l, a, b, alpha);
|
|
1603
1568
|
};
|
|
1604
|
-
protoOf(Companion_2).
|
|
1605
|
-
return this.
|
|
1569
|
+
protoOf(Companion_2).g1s = function (l, a, b, alpha) {
|
|
1570
|
+
return this.j1p_1.g1s(l, a, b, alpha);
|
|
1606
1571
|
};
|
|
1607
|
-
protoOf(Companion_2).
|
|
1608
|
-
return this.
|
|
1572
|
+
protoOf(Companion_2).l1o = function () {
|
|
1573
|
+
return this.j1p_1.l1o();
|
|
1609
1574
|
};
|
|
1610
|
-
protoOf(Companion_2).
|
|
1611
|
-
return this.
|
|
1575
|
+
protoOf(Companion_2).l2 = function () {
|
|
1576
|
+
return this.j1p_1.l2();
|
|
1612
1577
|
};
|
|
1613
|
-
protoOf(Companion_2).
|
|
1614
|
-
return this.
|
|
1578
|
+
protoOf(Companion_2).m1o = function () {
|
|
1579
|
+
return this.j1p_1.m1o();
|
|
1615
1580
|
};
|
|
1616
|
-
protoOf(Companion_2).
|
|
1617
|
-
return this.
|
|
1581
|
+
protoOf(Companion_2).g1o = function (color) {
|
|
1582
|
+
return this.j1p_1.g1o(color);
|
|
1618
1583
|
};
|
|
1619
|
-
protoOf(Companion_2).
|
|
1620
|
-
return this.
|
|
1584
|
+
protoOf(Companion_2).n1o = function (components) {
|
|
1585
|
+
return this.j1p_1.n1o(components);
|
|
1621
1586
|
};
|
|
1622
1587
|
var Companion_instance_3;
|
|
1623
1588
|
function Companion_getInstance_2() {
|
|
@@ -1627,53 +1592,51 @@
|
|
|
1627
1592
|
}
|
|
1628
1593
|
function LAB(l, a, b, alpha, space) {
|
|
1629
1594
|
Companion_getInstance_2();
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
this.
|
|
1633
|
-
this.
|
|
1634
|
-
this.
|
|
1635
|
-
}
|
|
1636
|
-
protoOf(LAB).
|
|
1637
|
-
return this.
|
|
1638
|
-
};
|
|
1639
|
-
protoOf(LAB).
|
|
1640
|
-
return this.
|
|
1641
|
-
};
|
|
1642
|
-
protoOf(LAB).
|
|
1643
|
-
return this.
|
|
1644
|
-
};
|
|
1645
|
-
protoOf(LAB).
|
|
1646
|
-
var xyzSpace = XYZColorSpace_0(this.
|
|
1647
|
-
if (this.
|
|
1648
|
-
return xyzSpace.
|
|
1649
|
-
var fy = (this.
|
|
1650
|
-
var fz = fy - this.
|
|
1651
|
-
var fx = this.
|
|
1595
|
+
this.u1n_1 = l;
|
|
1596
|
+
this.v1n_1 = a;
|
|
1597
|
+
this.w1n_1 = b;
|
|
1598
|
+
this.x1n_1 = alpha;
|
|
1599
|
+
this.y1n_1 = space;
|
|
1600
|
+
}
|
|
1601
|
+
protoOf(LAB).d1n = function () {
|
|
1602
|
+
return this.x1n_1;
|
|
1603
|
+
};
|
|
1604
|
+
protoOf(LAB).e1n = function () {
|
|
1605
|
+
return this.y1n_1;
|
|
1606
|
+
};
|
|
1607
|
+
protoOf(LAB).f1n = function () {
|
|
1608
|
+
return this.u1n_1 === 0.0 ? Companion_getInstance_6().h1p(0.0, 0.0, 0.0, this.x1n_1) : this.m1n().f1n();
|
|
1609
|
+
};
|
|
1610
|
+
protoOf(LAB).m1n = function () {
|
|
1611
|
+
var xyzSpace = XYZColorSpace_0(this.y1n_1.l1o());
|
|
1612
|
+
if (this.u1n_1 === 0.0)
|
|
1613
|
+
return xyzSpace.h1s(0.0, 0.0, 0.0);
|
|
1614
|
+
var fy = (this.u1n_1 + 16) / 116.0;
|
|
1615
|
+
var fz = fy - this.w1n_1 / 200.0;
|
|
1616
|
+
var fx = this.v1n_1 / 500.0 + fy;
|
|
1652
1617
|
var tmp;
|
|
1653
|
-
if (this.
|
|
1618
|
+
if (this.u1n_1 > 8.0) {
|
|
1654
1619
|
// Inline function 'kotlin.math.pow' call
|
|
1655
1620
|
tmp = Math.pow(fy, 3);
|
|
1656
1621
|
} else {
|
|
1657
|
-
tmp = this.
|
|
1622
|
+
tmp = this.u1n_1 / 903.2962962962963;
|
|
1658
1623
|
}
|
|
1659
1624
|
var yr = tmp;
|
|
1660
1625
|
// Inline function 'kotlin.math.pow' call
|
|
1661
1626
|
// Inline function 'kotlin.let' call
|
|
1662
|
-
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1663
1627
|
var it = Math.pow(fz, 3);
|
|
1664
1628
|
var zr = it > 0.008856451679035631 ? it : (116 * fz - 16) / 903.2962962962963;
|
|
1665
1629
|
// Inline function 'kotlin.math.pow' call
|
|
1666
1630
|
// Inline function 'kotlin.let' call
|
|
1667
|
-
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1668
1631
|
var it_0 = Math.pow(fx, 3);
|
|
1669
1632
|
var xr = it_0 > 0.008856451679035631 ? it_0 : (116 * fx - 16) / 903.2962962962963;
|
|
1670
|
-
var wp = this.
|
|
1671
|
-
return xyzSpace.
|
|
1633
|
+
var wp = this.y1n_1.l1o().j1r_1;
|
|
1634
|
+
return xyzSpace.g1s(xr * wp.l1s(), yr * wp.k1s_1, zr * wp.m1s(), this.x1n_1);
|
|
1672
1635
|
};
|
|
1673
|
-
protoOf(LAB).
|
|
1674
|
-
var tmp0 = this.
|
|
1636
|
+
protoOf(LAB).t1n = function () {
|
|
1637
|
+
var tmp0 = this.v1n_1;
|
|
1675
1638
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
1676
|
-
var b = this.
|
|
1639
|
+
var b = this.w1n_1;
|
|
1677
1640
|
// Inline function 'kotlin.math.sqrt' call
|
|
1678
1641
|
var x = tmp0 * tmp0 + b * b;
|
|
1679
1642
|
var c = Math.sqrt(x);
|
|
@@ -1686,26 +1649,25 @@
|
|
|
1686
1649
|
tmp = radToDeg(tmp$ret$1);
|
|
1687
1650
|
}
|
|
1688
1651
|
var h = tmp;
|
|
1689
|
-
// Inline function 'com.github.ajalt.colormath.model.LAB.toLCHab.<anonymous>' call
|
|
1690
1652
|
var h_0 = normalizeDeg_0(h);
|
|
1691
|
-
return LCHabColorSpace_0(this.
|
|
1653
|
+
return LCHabColorSpace_0(this.y1n_1.l1o()).h1p(this.u1n_1, c, h_0, this.x1n_1);
|
|
1692
1654
|
};
|
|
1693
|
-
protoOf(LAB).
|
|
1655
|
+
protoOf(LAB).n1n = function () {
|
|
1694
1656
|
return this;
|
|
1695
1657
|
};
|
|
1696
|
-
protoOf(LAB).
|
|
1658
|
+
protoOf(LAB).p5 = function () {
|
|
1697
1659
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1698
|
-
return new Float32Array([this.
|
|
1660
|
+
return new Float32Array([this.u1n_1, this.v1n_1, this.w1n_1, this.x1n_1]);
|
|
1699
1661
|
};
|
|
1700
1662
|
protoOf(LAB).toString = function () {
|
|
1701
|
-
return 'LAB(l=' + this.
|
|
1663
|
+
return 'LAB(l=' + this.u1n_1 + ', a=' + this.v1n_1 + ', b=' + this.w1n_1 + ', alpha=' + this.x1n_1 + ', space=' + toString(this.y1n_1) + ')';
|
|
1702
1664
|
};
|
|
1703
1665
|
protoOf(LAB).hashCode = function () {
|
|
1704
|
-
var result = getNumberHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1706
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1707
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1708
|
-
result = imul(result, 31) + hashCode(this.
|
|
1666
|
+
var result = getNumberHashCode(this.u1n_1);
|
|
1667
|
+
result = imul(result, 31) + getNumberHashCode(this.v1n_1) | 0;
|
|
1668
|
+
result = imul(result, 31) + getNumberHashCode(this.w1n_1) | 0;
|
|
1669
|
+
result = imul(result, 31) + getNumberHashCode(this.x1n_1) | 0;
|
|
1670
|
+
result = imul(result, 31) + hashCode(this.y1n_1) | 0;
|
|
1709
1671
|
return result;
|
|
1710
1672
|
};
|
|
1711
1673
|
protoOf(LAB).equals = function (other) {
|
|
@@ -1714,27 +1676,27 @@
|
|
|
1714
1676
|
if (!(other instanceof LAB))
|
|
1715
1677
|
return false;
|
|
1716
1678
|
var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
|
|
1717
|
-
if (!equals(this.
|
|
1679
|
+
if (!equals(this.u1n_1, tmp0_other_with_cast.u1n_1))
|
|
1718
1680
|
return false;
|
|
1719
|
-
if (!equals(this.
|
|
1681
|
+
if (!equals(this.v1n_1, tmp0_other_with_cast.v1n_1))
|
|
1720
1682
|
return false;
|
|
1721
|
-
if (!equals(this.
|
|
1683
|
+
if (!equals(this.w1n_1, tmp0_other_with_cast.w1n_1))
|
|
1722
1684
|
return false;
|
|
1723
|
-
if (!equals(this.
|
|
1685
|
+
if (!equals(this.x1n_1, tmp0_other_with_cast.x1n_1))
|
|
1724
1686
|
return false;
|
|
1725
|
-
if (!equals(this.
|
|
1687
|
+
if (!equals(this.y1n_1, tmp0_other_with_cast.y1n_1))
|
|
1726
1688
|
return false;
|
|
1727
1689
|
return true;
|
|
1728
1690
|
};
|
|
1729
1691
|
function LABColorSpace() {
|
|
1730
1692
|
}
|
|
1731
1693
|
function LABColorSpace_0(whitePoint) {
|
|
1732
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1694
|
+
return whitePoint.equals(Illuminant_getInstance().m1q_1) ? LABColorSpaces_getInstance().k1p_1 : whitePoint.equals(Illuminant_getInstance().k1q_1) ? LABColorSpaces_getInstance().l1p_1 : new LABColorSpaceImpl(whitePoint);
|
|
1733
1695
|
}
|
|
1734
1696
|
function LABColorSpaces() {
|
|
1735
1697
|
LABColorSpaces_instance = this;
|
|
1736
|
-
this.
|
|
1737
|
-
this.
|
|
1698
|
+
this.k1p_1 = new LABColorSpaceImpl(Illuminant_getInstance().m1q_1);
|
|
1699
|
+
this.l1p_1 = new LABColorSpaceImpl(Illuminant_getInstance().k1q_1);
|
|
1738
1700
|
}
|
|
1739
1701
|
var LABColorSpaces_instance;
|
|
1740
1702
|
function LABColorSpaces_getInstance() {
|
|
@@ -1743,46 +1705,42 @@
|
|
|
1743
1705
|
return LABColorSpaces_instance;
|
|
1744
1706
|
}
|
|
1745
1707
|
function LABColorSpaceImpl(whitePoint) {
|
|
1746
|
-
this.
|
|
1747
|
-
this.
|
|
1708
|
+
this.n1s_1 = whitePoint;
|
|
1709
|
+
this.o1s_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
|
|
1748
1710
|
}
|
|
1749
|
-
protoOf(LABColorSpaceImpl).
|
|
1750
|
-
return this.
|
|
1711
|
+
protoOf(LABColorSpaceImpl).l1o = function () {
|
|
1712
|
+
return this.n1s_1;
|
|
1751
1713
|
};
|
|
1752
|
-
protoOf(LABColorSpaceImpl).
|
|
1714
|
+
protoOf(LABColorSpaceImpl).l2 = function () {
|
|
1753
1715
|
return 'LAB';
|
|
1754
1716
|
};
|
|
1755
|
-
protoOf(LABColorSpaceImpl).
|
|
1756
|
-
return this.
|
|
1717
|
+
protoOf(LABColorSpaceImpl).m1o = function () {
|
|
1718
|
+
return this.o1s_1;
|
|
1757
1719
|
};
|
|
1758
|
-
protoOf(LABColorSpaceImpl).
|
|
1720
|
+
protoOf(LABColorSpaceImpl).g1o = function (color) {
|
|
1759
1721
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1760
1722
|
var tmp;
|
|
1761
|
-
var tmp_0 = color.
|
|
1723
|
+
var tmp_0 = color.e1n();
|
|
1762
1724
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1763
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1764
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1765
|
-
|
|
1766
|
-
tmp = color.m1o();
|
|
1725
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1o();
|
|
1726
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().m1q_1 : tmp1_elvis_lhs).equals(this.l1o())) {
|
|
1727
|
+
tmp = color.n1n();
|
|
1767
1728
|
} else {
|
|
1768
|
-
|
|
1769
|
-
tmp = color.l1o().f1r(XYZColorSpace_0(this.k1p())).m1o();
|
|
1729
|
+
tmp = color.m1n().g1q(XYZColorSpace_0(this.l1o())).n1n();
|
|
1770
1730
|
}
|
|
1771
1731
|
return tmp;
|
|
1772
1732
|
};
|
|
1773
|
-
protoOf(LABColorSpaceImpl).
|
|
1733
|
+
protoOf(LABColorSpaceImpl).n1o = function (components) {
|
|
1774
1734
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1775
1735
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1776
|
-
var size = this.
|
|
1736
|
+
var size = this.m1o().m();
|
|
1777
1737
|
var containsLower = size - 1 | 0;
|
|
1778
1738
|
var containsArg = components.length;
|
|
1779
1739
|
// Inline function 'kotlin.require' call
|
|
1780
1740
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
1781
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
1782
1741
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
1783
1742
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1784
1743
|
}
|
|
1785
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
1786
1744
|
var tmp3 = components[0];
|
|
1787
1745
|
var tmp4 = components[1];
|
|
1788
1746
|
var tmp5 = components[2];
|
|
@@ -1791,26 +1749,24 @@
|
|
|
1791
1749
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
1792
1750
|
tmp = components[3];
|
|
1793
1751
|
} else {
|
|
1794
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1795
1752
|
tmp = 1.0;
|
|
1796
1753
|
}
|
|
1797
|
-
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.create.stub_for_inlining' call
|
|
1798
1754
|
var p3 = tmp;
|
|
1799
|
-
return this.
|
|
1755
|
+
return this.h1p(tmp3, tmp4, tmp5, p3);
|
|
1800
1756
|
};
|
|
1801
1757
|
protoOf(LABColorSpaceImpl).toString = function () {
|
|
1802
|
-
return 'LABColorSpace(' + this.
|
|
1758
|
+
return 'LABColorSpace(' + this.n1s_1.toString() + ')';
|
|
1803
1759
|
};
|
|
1804
|
-
protoOf(LABColorSpaceImpl).
|
|
1760
|
+
protoOf(LABColorSpaceImpl).h1p = function (l, a, b, alpha) {
|
|
1805
1761
|
return new LAB(l, a, b, alpha, this);
|
|
1806
1762
|
};
|
|
1807
1763
|
protoOf(LABColorSpaceImpl).hashCode = function () {
|
|
1808
|
-
return this.
|
|
1764
|
+
return this.n1s_1.hashCode();
|
|
1809
1765
|
};
|
|
1810
1766
|
protoOf(LABColorSpaceImpl).equals = function (other) {
|
|
1811
1767
|
var tmp;
|
|
1812
1768
|
if (!(other == null) ? isInterface(other, LABColorSpace) : false) {
|
|
1813
|
-
tmp = this.
|
|
1769
|
+
tmp = this.n1s_1.equals(other.l1o());
|
|
1814
1770
|
} else {
|
|
1815
1771
|
tmp = false;
|
|
1816
1772
|
}
|
|
@@ -1818,31 +1774,31 @@
|
|
|
1818
1774
|
};
|
|
1819
1775
|
function Companion_3() {
|
|
1820
1776
|
Companion_instance_4 = this;
|
|
1821
|
-
this.
|
|
1777
|
+
this.m1p_1 = LCHabColorSpaces_getInstance().n1p_1;
|
|
1822
1778
|
}
|
|
1823
1779
|
protoOf(Companion_3).equals = function (other) {
|
|
1824
|
-
return equals(LCHabColorSpaces_getInstance().
|
|
1780
|
+
return equals(LCHabColorSpaces_getInstance().n1p_1, other);
|
|
1825
1781
|
};
|
|
1826
1782
|
protoOf(Companion_3).hashCode = function () {
|
|
1827
|
-
return hashCode(LCHabColorSpaces_getInstance().
|
|
1783
|
+
return hashCode(LCHabColorSpaces_getInstance().n1p_1);
|
|
1828
1784
|
};
|
|
1829
|
-
protoOf(Companion_3).
|
|
1830
|
-
return this.
|
|
1785
|
+
protoOf(Companion_3).h1p = function (l, c, h, alpha) {
|
|
1786
|
+
return this.m1p_1.h1p(l, c, h, alpha);
|
|
1831
1787
|
};
|
|
1832
|
-
protoOf(Companion_3).
|
|
1833
|
-
return this.
|
|
1788
|
+
protoOf(Companion_3).l1o = function () {
|
|
1789
|
+
return this.m1p_1.l1o();
|
|
1834
1790
|
};
|
|
1835
|
-
protoOf(Companion_3).
|
|
1836
|
-
return this.
|
|
1791
|
+
protoOf(Companion_3).l2 = function () {
|
|
1792
|
+
return this.m1p_1.l2();
|
|
1837
1793
|
};
|
|
1838
|
-
protoOf(Companion_3).
|
|
1839
|
-
return this.
|
|
1794
|
+
protoOf(Companion_3).m1o = function () {
|
|
1795
|
+
return this.m1p_1.m1o();
|
|
1840
1796
|
};
|
|
1841
|
-
protoOf(Companion_3).
|
|
1842
|
-
return this.
|
|
1797
|
+
protoOf(Companion_3).g1o = function (color) {
|
|
1798
|
+
return this.m1p_1.g1o(color);
|
|
1843
1799
|
};
|
|
1844
|
-
protoOf(Companion_3).
|
|
1845
|
-
return this.
|
|
1800
|
+
protoOf(Companion_3).n1o = function (components) {
|
|
1801
|
+
return this.m1p_1.n1o(components);
|
|
1846
1802
|
};
|
|
1847
1803
|
var Companion_instance_4;
|
|
1848
1804
|
function Companion_getInstance_3() {
|
|
@@ -1852,55 +1808,54 @@
|
|
|
1852
1808
|
}
|
|
1853
1809
|
function LCHab(l, c, h, alpha, space) {
|
|
1854
1810
|
Companion_getInstance_3();
|
|
1855
|
-
this.
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1859
|
-
this.
|
|
1811
|
+
this.u1q_1 = l;
|
|
1812
|
+
this.v1q_1 = c;
|
|
1813
|
+
this.w1q_1 = h;
|
|
1814
|
+
this.x1q_1 = alpha;
|
|
1815
|
+
this.y1q_1 = space;
|
|
1860
1816
|
}
|
|
1861
|
-
protoOf(LCHab).
|
|
1862
|
-
return this.
|
|
1817
|
+
protoOf(LCHab).h1r = function () {
|
|
1818
|
+
return this.w1q_1;
|
|
1863
1819
|
};
|
|
1864
|
-
protoOf(LCHab).
|
|
1865
|
-
return this.
|
|
1820
|
+
protoOf(LCHab).d1n = function () {
|
|
1821
|
+
return this.x1q_1;
|
|
1866
1822
|
};
|
|
1867
|
-
protoOf(LCHab).
|
|
1868
|
-
return this.
|
|
1823
|
+
protoOf(LCHab).e1n = function () {
|
|
1824
|
+
return this.y1q_1;
|
|
1869
1825
|
};
|
|
1870
|
-
protoOf(LCHab).
|
|
1871
|
-
return this.
|
|
1826
|
+
protoOf(LCHab).f1n = function () {
|
|
1827
|
+
return this.n1n().f1n();
|
|
1872
1828
|
};
|
|
1873
|
-
protoOf(LCHab).
|
|
1874
|
-
return this.
|
|
1829
|
+
protoOf(LCHab).m1n = function () {
|
|
1830
|
+
return this.n1n().m1n();
|
|
1875
1831
|
};
|
|
1876
|
-
protoOf(LCHab).
|
|
1877
|
-
var tmp0 = this.
|
|
1832
|
+
protoOf(LCHab).n1n = function () {
|
|
1833
|
+
var tmp0 = this.v1q_1;
|
|
1878
1834
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
1879
|
-
var h = this.
|
|
1835
|
+
var h = this.w1q_1;
|
|
1880
1836
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
1881
1837
|
// Inline function 'kotlin.math.cos' call
|
|
1882
1838
|
var a = tmp0 * Math.cos(hDegrees);
|
|
1883
1839
|
// Inline function 'kotlin.math.sin' call
|
|
1884
1840
|
var b = tmp0 * Math.sin(hDegrees);
|
|
1885
|
-
|
|
1886
|
-
return LABColorSpace_0(this.x1r_1.k1p()).g1q(this.t1r_1, a, b, this.w1r_1);
|
|
1841
|
+
return LABColorSpace_0(this.y1q_1.l1o()).h1p(this.u1q_1, a, b, this.x1q_1);
|
|
1887
1842
|
};
|
|
1888
|
-
protoOf(LCHab).
|
|
1843
|
+
protoOf(LCHab).t1n = function () {
|
|
1889
1844
|
return this;
|
|
1890
1845
|
};
|
|
1891
|
-
protoOf(LCHab).
|
|
1846
|
+
protoOf(LCHab).p5 = function () {
|
|
1892
1847
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1893
|
-
return new Float32Array([this.
|
|
1848
|
+
return new Float32Array([this.u1q_1, this.v1q_1, this.w1q_1, this.x1q_1]);
|
|
1894
1849
|
};
|
|
1895
1850
|
protoOf(LCHab).toString = function () {
|
|
1896
|
-
return 'LCHab(l=' + this.
|
|
1851
|
+
return 'LCHab(l=' + this.u1q_1 + ', c=' + this.v1q_1 + ', h=' + this.w1q_1 + ', alpha=' + this.x1q_1 + ', space=' + toString(this.y1q_1) + ')';
|
|
1897
1852
|
};
|
|
1898
1853
|
protoOf(LCHab).hashCode = function () {
|
|
1899
|
-
var result = getNumberHashCode(this.
|
|
1900
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1901
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1902
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1903
|
-
result = imul(result, 31) + hashCode(this.
|
|
1854
|
+
var result = getNumberHashCode(this.u1q_1);
|
|
1855
|
+
result = imul(result, 31) + getNumberHashCode(this.v1q_1) | 0;
|
|
1856
|
+
result = imul(result, 31) + getNumberHashCode(this.w1q_1) | 0;
|
|
1857
|
+
result = imul(result, 31) + getNumberHashCode(this.x1q_1) | 0;
|
|
1858
|
+
result = imul(result, 31) + hashCode(this.y1q_1) | 0;
|
|
1904
1859
|
return result;
|
|
1905
1860
|
};
|
|
1906
1861
|
protoOf(LCHab).equals = function (other) {
|
|
@@ -1909,27 +1864,27 @@
|
|
|
1909
1864
|
if (!(other instanceof LCHab))
|
|
1910
1865
|
return false;
|
|
1911
1866
|
var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
|
|
1912
|
-
if (!equals(this.
|
|
1867
|
+
if (!equals(this.u1q_1, tmp0_other_with_cast.u1q_1))
|
|
1913
1868
|
return false;
|
|
1914
|
-
if (!equals(this.
|
|
1869
|
+
if (!equals(this.v1q_1, tmp0_other_with_cast.v1q_1))
|
|
1915
1870
|
return false;
|
|
1916
|
-
if (!equals(this.
|
|
1871
|
+
if (!equals(this.w1q_1, tmp0_other_with_cast.w1q_1))
|
|
1917
1872
|
return false;
|
|
1918
|
-
if (!equals(this.
|
|
1873
|
+
if (!equals(this.x1q_1, tmp0_other_with_cast.x1q_1))
|
|
1919
1874
|
return false;
|
|
1920
|
-
if (!equals(this.
|
|
1875
|
+
if (!equals(this.y1q_1, tmp0_other_with_cast.y1q_1))
|
|
1921
1876
|
return false;
|
|
1922
1877
|
return true;
|
|
1923
1878
|
};
|
|
1924
1879
|
function LCHabColorSpace() {
|
|
1925
1880
|
}
|
|
1926
1881
|
function LCHabColorSpace_0(whitePoint) {
|
|
1927
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1882
|
+
return whitePoint.equals(Illuminant_getInstance().m1q_1) ? LCHabColorSpaces_getInstance().n1p_1 : whitePoint.equals(Illuminant_getInstance().k1q_1) ? LCHabColorSpaces_getInstance().o1p_1 : new LCHabColorSpaceImpl(whitePoint);
|
|
1928
1883
|
}
|
|
1929
1884
|
function LCHabColorSpaces() {
|
|
1930
1885
|
LCHabColorSpaces_instance = this;
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1886
|
+
this.n1p_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().m1q_1);
|
|
1887
|
+
this.o1p_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().k1q_1);
|
|
1933
1888
|
}
|
|
1934
1889
|
var LCHabColorSpaces_instance;
|
|
1935
1890
|
function LCHabColorSpaces_getInstance() {
|
|
@@ -1938,46 +1893,42 @@
|
|
|
1938
1893
|
return LCHabColorSpaces_instance;
|
|
1939
1894
|
}
|
|
1940
1895
|
function LCHabColorSpaceImpl(whitePoint) {
|
|
1941
|
-
this.
|
|
1942
|
-
this.
|
|
1896
|
+
this.p1s_1 = whitePoint;
|
|
1897
|
+
this.q1s_1 = componentInfoList([new ColorComponentInfo('L', false, 0.0, 100.0), new ColorComponentInfo('C', false, 0.0, 150.0), new ColorComponentInfo('H', true, 0.0, 360.0)]);
|
|
1943
1898
|
}
|
|
1944
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1945
|
-
return this.
|
|
1899
|
+
protoOf(LCHabColorSpaceImpl).l1o = function () {
|
|
1900
|
+
return this.p1s_1;
|
|
1946
1901
|
};
|
|
1947
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1902
|
+
protoOf(LCHabColorSpaceImpl).l2 = function () {
|
|
1948
1903
|
return 'LCHab';
|
|
1949
1904
|
};
|
|
1950
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1951
|
-
return this.
|
|
1905
|
+
protoOf(LCHabColorSpaceImpl).m1o = function () {
|
|
1906
|
+
return this.q1s_1;
|
|
1952
1907
|
};
|
|
1953
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1908
|
+
protoOf(LCHabColorSpaceImpl).g1o = function (color) {
|
|
1954
1909
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1955
1910
|
var tmp;
|
|
1956
|
-
var tmp_0 = color.
|
|
1911
|
+
var tmp_0 = color.e1n();
|
|
1957
1912
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1958
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1959
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1960
|
-
|
|
1961
|
-
tmp = color.s1o();
|
|
1913
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1o();
|
|
1914
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().m1q_1 : tmp1_elvis_lhs).equals(this.l1o())) {
|
|
1915
|
+
tmp = color.t1n();
|
|
1962
1916
|
} else {
|
|
1963
|
-
|
|
1964
|
-
tmp = color.l1o().f1r(XYZColorSpace_0(this.k1p())).s1o();
|
|
1917
|
+
tmp = color.m1n().g1q(XYZColorSpace_0(this.l1o())).t1n();
|
|
1965
1918
|
}
|
|
1966
1919
|
return tmp;
|
|
1967
1920
|
};
|
|
1968
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1921
|
+
protoOf(LCHabColorSpaceImpl).n1o = function (components) {
|
|
1969
1922
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1970
1923
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1971
|
-
var size = this.
|
|
1924
|
+
var size = this.m1o().m();
|
|
1972
1925
|
var containsLower = size - 1 | 0;
|
|
1973
1926
|
var containsArg = components.length;
|
|
1974
1927
|
// Inline function 'kotlin.require' call
|
|
1975
1928
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
1976
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
1977
1929
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
1978
1930
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1979
1931
|
}
|
|
1980
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
1981
1932
|
var tmp3 = components[0];
|
|
1982
1933
|
var tmp4 = components[1];
|
|
1983
1934
|
var tmp5 = components[2];
|
|
@@ -1986,26 +1937,24 @@
|
|
|
1986
1937
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
1987
1938
|
tmp = components[3];
|
|
1988
1939
|
} else {
|
|
1989
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
1990
1940
|
tmp = 1.0;
|
|
1991
1941
|
}
|
|
1992
|
-
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.create.stub_for_inlining' call
|
|
1993
1942
|
var p3 = tmp;
|
|
1994
|
-
return this.
|
|
1943
|
+
return this.h1p(tmp3, tmp4, tmp5, p3);
|
|
1995
1944
|
};
|
|
1996
1945
|
protoOf(LCHabColorSpaceImpl).toString = function () {
|
|
1997
|
-
return 'LCHabColorSpace(' + this.
|
|
1946
|
+
return 'LCHabColorSpace(' + this.p1s_1.toString() + ')';
|
|
1998
1947
|
};
|
|
1999
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1948
|
+
protoOf(LCHabColorSpaceImpl).h1p = function (l, c, h, alpha) {
|
|
2000
1949
|
return new LCHab(l, c, h, alpha, this);
|
|
2001
1950
|
};
|
|
2002
1951
|
protoOf(LCHabColorSpaceImpl).hashCode = function () {
|
|
2003
|
-
return this.
|
|
1952
|
+
return this.p1s_1.hashCode();
|
|
2004
1953
|
};
|
|
2005
1954
|
protoOf(LCHabColorSpaceImpl).equals = function (other) {
|
|
2006
1955
|
var tmp;
|
|
2007
1956
|
if (!(other == null) ? isInterface(other, LCHabColorSpace) : false) {
|
|
2008
|
-
tmp = this.
|
|
1957
|
+
tmp = this.p1s_1.equals(other.l1o());
|
|
2009
1958
|
} else {
|
|
2010
1959
|
tmp = false;
|
|
2011
1960
|
}
|
|
@@ -2013,30 +1962,28 @@
|
|
|
2013
1962
|
};
|
|
2014
1963
|
function Companion_4() {
|
|
2015
1964
|
Companion_instance_5 = this;
|
|
2016
|
-
this.
|
|
1965
|
+
this.q1p_1 = threeComponentInfo('l', 0.0, 1.0, 'a', -0.4, 0.4, 'b', -0.4, 0.4);
|
|
2017
1966
|
}
|
|
2018
|
-
protoOf(Companion_4).
|
|
1967
|
+
protoOf(Companion_4).l2 = function () {
|
|
2019
1968
|
return 'Oklab';
|
|
2020
1969
|
};
|
|
2021
|
-
protoOf(Companion_4).
|
|
2022
|
-
return this.
|
|
1970
|
+
protoOf(Companion_4).m1o = function () {
|
|
1971
|
+
return this.q1p_1;
|
|
2023
1972
|
};
|
|
2024
|
-
protoOf(Companion_4).
|
|
2025
|
-
return color.
|
|
1973
|
+
protoOf(Companion_4).g1o = function (color) {
|
|
1974
|
+
return color.a1o();
|
|
2026
1975
|
};
|
|
2027
|
-
protoOf(Companion_4).
|
|
1976
|
+
protoOf(Companion_4).n1o = function (components) {
|
|
2028
1977
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2029
1978
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2030
|
-
var size = this.
|
|
1979
|
+
var size = this.m1o().m();
|
|
2031
1980
|
var containsLower = size - 1 | 0;
|
|
2032
1981
|
var containsArg = components.length;
|
|
2033
1982
|
// Inline function 'kotlin.require' call
|
|
2034
1983
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
2035
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
2036
1984
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
2037
1985
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2038
1986
|
}
|
|
2039
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
2040
1987
|
var tmp2 = components[0];
|
|
2041
1988
|
var tmp3 = components[1];
|
|
2042
1989
|
var tmp4 = components[2];
|
|
@@ -2045,10 +1992,8 @@
|
|
|
2045
1992
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
2046
1993
|
tmp = components[3];
|
|
2047
1994
|
} else {
|
|
2048
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2049
1995
|
tmp = 1.0;
|
|
2050
1996
|
}
|
|
2051
|
-
// Inline function 'com.github.ajalt.colormath.model.Companion.create.stub_for_inlining' call
|
|
2052
1997
|
var p3 = tmp;
|
|
2053
1998
|
return new Oklab(tmp2, tmp3, tmp4, p3);
|
|
2054
1999
|
};
|
|
@@ -2069,45 +2014,45 @@
|
|
|
2069
2014
|
function Oklab(l, a, b, alpha) {
|
|
2070
2015
|
Companion_getInstance_4();
|
|
2071
2016
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2075
|
-
this.
|
|
2017
|
+
this.c1o_1 = l;
|
|
2018
|
+
this.d1o_1 = a;
|
|
2019
|
+
this.e1o_1 = b;
|
|
2020
|
+
this.f1o_1 = alpha;
|
|
2076
2021
|
}
|
|
2077
|
-
protoOf(Oklab).
|
|
2078
|
-
return this.
|
|
2022
|
+
protoOf(Oklab).d1n = function () {
|
|
2023
|
+
return this.f1o_1;
|
|
2079
2024
|
};
|
|
2080
|
-
protoOf(Oklab).
|
|
2025
|
+
protoOf(Oklab).e1n = function () {
|
|
2081
2026
|
return Companion_getInstance_4();
|
|
2082
2027
|
};
|
|
2083
|
-
protoOf(Oklab).
|
|
2028
|
+
protoOf(Oklab).f1n = function () {
|
|
2084
2029
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2085
|
-
var ll = this.
|
|
2086
|
-
var mm = this.
|
|
2087
|
-
var ss = this.
|
|
2030
|
+
var ll = this.c1o_1 + 0.3963377774 * this.d1o_1 + 0.2158037573 * this.e1o_1;
|
|
2031
|
+
var mm = this.c1o_1 - 0.1055613458 * this.d1o_1 - 0.0638541728 * this.e1o_1;
|
|
2032
|
+
var ss = this.c1o_1 - 0.0894841775 * this.d1o_1 - 1.291485548 * this.e1o_1;
|
|
2088
2033
|
var l = ll * ll * ll;
|
|
2089
2034
|
var m = mm * mm * mm;
|
|
2090
2035
|
var s = ss * ss * ss;
|
|
2091
2036
|
var r = +4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
|
|
2092
2037
|
var g = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
|
|
2093
2038
|
var b = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
2094
|
-
var f = Companion_getInstance_6().
|
|
2095
|
-
return Companion_getInstance_6().
|
|
2039
|
+
var f = Companion_getInstance_6().v1r();
|
|
2040
|
+
return Companion_getInstance_6().h1p(f.f1s(r), f.f1s(g), f.f1s(b), this.f1o_1);
|
|
2096
2041
|
};
|
|
2097
|
-
protoOf(Oklab).
|
|
2042
|
+
protoOf(Oklab).m1n = function () {
|
|
2098
2043
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2099
|
-
var ll = this.
|
|
2100
|
-
var mm = this.
|
|
2101
|
-
var ss = this.
|
|
2044
|
+
var ll = this.c1o_1 + 0.3963377774 * this.d1o_1 + 0.2158037573 * this.e1o_1;
|
|
2045
|
+
var mm = this.c1o_1 - 0.1055613458 * this.d1o_1 - 0.0638541728 * this.e1o_1;
|
|
2046
|
+
var ss = this.c1o_1 - 0.0894841775 * this.d1o_1 - 1.291485548 * this.e1o_1;
|
|
2102
2047
|
var l = ll * ll * ll;
|
|
2103
2048
|
var m = mm * mm * mm;
|
|
2104
2049
|
var s = ss * ss * ss;
|
|
2105
|
-
return Companion_getInstance_8().
|
|
2050
|
+
return Companion_getInstance_8().g1s(+1.2270138511 * l - 0.5577999807 * m + 0.281256149 * s, -0.0405801784 * l + 1.1122568696 * m - 0.0716766787 * s, -0.0763812845 * l - 0.4214819784 * m + 1.5861632204 * s, this.f1o_1);
|
|
2106
2051
|
};
|
|
2107
|
-
protoOf(Oklab).
|
|
2108
|
-
var tmp0 = this.
|
|
2052
|
+
protoOf(Oklab).b1o = function () {
|
|
2053
|
+
var tmp0 = this.d1o_1;
|
|
2109
2054
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
2110
|
-
var b = this.
|
|
2055
|
+
var b = this.e1o_1;
|
|
2111
2056
|
// Inline function 'kotlin.math.sqrt' call
|
|
2112
2057
|
var x = tmp0 * tmp0 + b * b;
|
|
2113
2058
|
var c = Math.sqrt(x);
|
|
@@ -2120,25 +2065,24 @@
|
|
|
2120
2065
|
tmp = radToDeg(tmp$ret$1);
|
|
2121
2066
|
}
|
|
2122
2067
|
var h = tmp;
|
|
2123
|
-
// Inline function 'com.github.ajalt.colormath.model.Oklab.toOklch.<anonymous>' call
|
|
2124
2068
|
var h_0 = normalizeDeg_0(h);
|
|
2125
|
-
return new Oklch(this.
|
|
2069
|
+
return new Oklch(this.c1o_1, c, h_0, this.f1o_1);
|
|
2126
2070
|
};
|
|
2127
|
-
protoOf(Oklab).
|
|
2071
|
+
protoOf(Oklab).a1o = function () {
|
|
2128
2072
|
return this;
|
|
2129
2073
|
};
|
|
2130
|
-
protoOf(Oklab).
|
|
2074
|
+
protoOf(Oklab).p5 = function () {
|
|
2131
2075
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2132
|
-
return new Float32Array([this.
|
|
2076
|
+
return new Float32Array([this.c1o_1, this.d1o_1, this.e1o_1, this.f1o_1]);
|
|
2133
2077
|
};
|
|
2134
2078
|
protoOf(Oklab).toString = function () {
|
|
2135
|
-
return 'Oklab(l=' + this.
|
|
2079
|
+
return 'Oklab(l=' + this.c1o_1 + ', a=' + this.d1o_1 + ', b=' + this.e1o_1 + ', alpha=' + this.f1o_1 + ')';
|
|
2136
2080
|
};
|
|
2137
2081
|
protoOf(Oklab).hashCode = function () {
|
|
2138
|
-
var result = getNumberHashCode(this.
|
|
2139
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2140
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2141
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2082
|
+
var result = getNumberHashCode(this.c1o_1);
|
|
2083
|
+
result = imul(result, 31) + getNumberHashCode(this.d1o_1) | 0;
|
|
2084
|
+
result = imul(result, 31) + getNumberHashCode(this.e1o_1) | 0;
|
|
2085
|
+
result = imul(result, 31) + getNumberHashCode(this.f1o_1) | 0;
|
|
2142
2086
|
return result;
|
|
2143
2087
|
};
|
|
2144
2088
|
protoOf(Oklab).equals = function (other) {
|
|
@@ -2147,42 +2091,40 @@
|
|
|
2147
2091
|
if (!(other instanceof Oklab))
|
|
2148
2092
|
return false;
|
|
2149
2093
|
var tmp0_other_with_cast = other instanceof Oklab ? other : THROW_CCE();
|
|
2150
|
-
if (!equals(this.
|
|
2094
|
+
if (!equals(this.c1o_1, tmp0_other_with_cast.c1o_1))
|
|
2151
2095
|
return false;
|
|
2152
|
-
if (!equals(this.
|
|
2096
|
+
if (!equals(this.d1o_1, tmp0_other_with_cast.d1o_1))
|
|
2153
2097
|
return false;
|
|
2154
|
-
if (!equals(this.
|
|
2098
|
+
if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
|
|
2155
2099
|
return false;
|
|
2156
|
-
if (!equals(this.
|
|
2100
|
+
if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
|
|
2157
2101
|
return false;
|
|
2158
2102
|
return true;
|
|
2159
2103
|
};
|
|
2160
2104
|
function Companion_5() {
|
|
2161
2105
|
Companion_instance_6 = this;
|
|
2162
|
-
this.
|
|
2106
|
+
this.r1p_1 = componentInfoList([new ColorComponentInfo('l', false, 0.0, 1.0), new ColorComponentInfo('c', false, 0.0, 0.4), new ColorComponentInfo('h', true, 0.0, 360.0)]);
|
|
2163
2107
|
}
|
|
2164
|
-
protoOf(Companion_5).
|
|
2108
|
+
protoOf(Companion_5).l2 = function () {
|
|
2165
2109
|
return 'Oklch';
|
|
2166
2110
|
};
|
|
2167
|
-
protoOf(Companion_5).
|
|
2168
|
-
return this.
|
|
2111
|
+
protoOf(Companion_5).m1o = function () {
|
|
2112
|
+
return this.r1p_1;
|
|
2169
2113
|
};
|
|
2170
|
-
protoOf(Companion_5).
|
|
2171
|
-
return color.
|
|
2114
|
+
protoOf(Companion_5).g1o = function (color) {
|
|
2115
|
+
return color.b1o();
|
|
2172
2116
|
};
|
|
2173
|
-
protoOf(Companion_5).
|
|
2117
|
+
protoOf(Companion_5).n1o = function (components) {
|
|
2174
2118
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2175
2119
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2176
|
-
var size = this.
|
|
2120
|
+
var size = this.m1o().m();
|
|
2177
2121
|
var containsLower = size - 1 | 0;
|
|
2178
2122
|
var containsArg = components.length;
|
|
2179
2123
|
// Inline function 'kotlin.require' call
|
|
2180
2124
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
2181
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
2182
2125
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
2183
2126
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2184
2127
|
}
|
|
2185
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
2186
2128
|
var tmp2 = components[0];
|
|
2187
2129
|
var tmp3 = components[1];
|
|
2188
2130
|
var tmp4 = components[2];
|
|
@@ -2191,10 +2133,8 @@
|
|
|
2191
2133
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
2192
2134
|
tmp = components[3];
|
|
2193
2135
|
} else {
|
|
2194
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2195
2136
|
tmp = 1.0;
|
|
2196
2137
|
}
|
|
2197
|
-
// Inline function 'com.github.ajalt.colormath.model.Companion.create.stub_for_inlining' call
|
|
2198
2138
|
var p3 = tmp;
|
|
2199
2139
|
return new Oklch(tmp2, tmp3, tmp4, p3);
|
|
2200
2140
|
};
|
|
@@ -2207,53 +2147,52 @@
|
|
|
2207
2147
|
function Oklch(l, c, h, alpha) {
|
|
2208
2148
|
Companion_getInstance_5();
|
|
2209
2149
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2210
|
-
this.
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2213
|
-
this.
|
|
2150
|
+
this.d1r_1 = l;
|
|
2151
|
+
this.e1r_1 = c;
|
|
2152
|
+
this.f1r_1 = h;
|
|
2153
|
+
this.g1r_1 = alpha;
|
|
2214
2154
|
}
|
|
2215
|
-
protoOf(Oklch).
|
|
2216
|
-
return this.
|
|
2155
|
+
protoOf(Oklch).h1r = function () {
|
|
2156
|
+
return this.f1r_1;
|
|
2217
2157
|
};
|
|
2218
|
-
protoOf(Oklch).
|
|
2219
|
-
return this.
|
|
2158
|
+
protoOf(Oklch).d1n = function () {
|
|
2159
|
+
return this.g1r_1;
|
|
2220
2160
|
};
|
|
2221
|
-
protoOf(Oklch).
|
|
2161
|
+
protoOf(Oklch).e1n = function () {
|
|
2222
2162
|
return Companion_getInstance_5();
|
|
2223
2163
|
};
|
|
2224
|
-
protoOf(Oklch).
|
|
2225
|
-
return this.
|
|
2164
|
+
protoOf(Oklch).f1n = function () {
|
|
2165
|
+
return this.a1o().f1n();
|
|
2226
2166
|
};
|
|
2227
|
-
protoOf(Oklch).
|
|
2228
|
-
return this.
|
|
2167
|
+
protoOf(Oklch).m1n = function () {
|
|
2168
|
+
return this.a1o().m1n();
|
|
2229
2169
|
};
|
|
2230
|
-
protoOf(Oklch).
|
|
2231
|
-
var tmp0 = this.
|
|
2170
|
+
protoOf(Oklch).a1o = function () {
|
|
2171
|
+
var tmp0 = this.e1r_1;
|
|
2232
2172
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
2233
|
-
var h = this.
|
|
2173
|
+
var h = this.f1r_1;
|
|
2234
2174
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
2235
2175
|
// Inline function 'kotlin.math.cos' call
|
|
2236
2176
|
var a = tmp0 * Math.cos(hDegrees);
|
|
2237
2177
|
// Inline function 'kotlin.math.sin' call
|
|
2238
2178
|
var b = tmp0 * Math.sin(hDegrees);
|
|
2239
|
-
|
|
2240
|
-
return new Oklab(this.c1s_1, a, b, this.f1s_1);
|
|
2179
|
+
return new Oklab(this.d1r_1, a, b, this.g1r_1);
|
|
2241
2180
|
};
|
|
2242
|
-
protoOf(Oklch).
|
|
2181
|
+
protoOf(Oklch).b1o = function () {
|
|
2243
2182
|
return this;
|
|
2244
2183
|
};
|
|
2245
|
-
protoOf(Oklch).
|
|
2184
|
+
protoOf(Oklch).p5 = function () {
|
|
2246
2185
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2247
|
-
return new Float32Array([this.
|
|
2186
|
+
return new Float32Array([this.d1r_1, this.e1r_1, this.f1r_1, this.g1r_1]);
|
|
2248
2187
|
};
|
|
2249
2188
|
protoOf(Oklch).toString = function () {
|
|
2250
|
-
return 'Oklch(l=' + this.
|
|
2189
|
+
return 'Oklch(l=' + this.d1r_1 + ', c=' + this.e1r_1 + ', h=' + this.f1r_1 + ', alpha=' + this.g1r_1 + ')';
|
|
2251
2190
|
};
|
|
2252
2191
|
protoOf(Oklch).hashCode = function () {
|
|
2253
|
-
var result = getNumberHashCode(this.
|
|
2254
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2255
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2256
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2192
|
+
var result = getNumberHashCode(this.d1r_1);
|
|
2193
|
+
result = imul(result, 31) + getNumberHashCode(this.e1r_1) | 0;
|
|
2194
|
+
result = imul(result, 31) + getNumberHashCode(this.f1r_1) | 0;
|
|
2195
|
+
result = imul(result, 31) + getNumberHashCode(this.g1r_1) | 0;
|
|
2257
2196
|
return result;
|
|
2258
2197
|
};
|
|
2259
2198
|
protoOf(Oklch).equals = function (other) {
|
|
@@ -2262,30 +2201,30 @@
|
|
|
2262
2201
|
if (!(other instanceof Oklch))
|
|
2263
2202
|
return false;
|
|
2264
2203
|
var tmp0_other_with_cast = other instanceof Oklch ? other : THROW_CCE();
|
|
2265
|
-
if (!equals(this.
|
|
2204
|
+
if (!equals(this.d1r_1, tmp0_other_with_cast.d1r_1))
|
|
2266
2205
|
return false;
|
|
2267
|
-
if (!equals(this.
|
|
2206
|
+
if (!equals(this.e1r_1, tmp0_other_with_cast.e1r_1))
|
|
2268
2207
|
return false;
|
|
2269
|
-
if (!equals(this.
|
|
2208
|
+
if (!equals(this.f1r_1, tmp0_other_with_cast.f1r_1))
|
|
2270
2209
|
return false;
|
|
2271
|
-
if (!equals(this.
|
|
2210
|
+
if (!equals(this.g1r_1, tmp0_other_with_cast.g1r_1))
|
|
2272
2211
|
return false;
|
|
2273
2212
|
return true;
|
|
2274
2213
|
};
|
|
2275
2214
|
function GammaTransferFunctions(gamma) {
|
|
2276
|
-
this.
|
|
2215
|
+
this.s1s_1 = gamma;
|
|
2277
2216
|
}
|
|
2278
|
-
protoOf(GammaTransferFunctions).
|
|
2279
|
-
return spow(x, this.
|
|
2217
|
+
protoOf(GammaTransferFunctions).e1s = function (x) {
|
|
2218
|
+
return spow(x, this.s1s_1);
|
|
2280
2219
|
};
|
|
2281
|
-
protoOf(GammaTransferFunctions).
|
|
2282
|
-
return spow(x, 1.0 / this.
|
|
2220
|
+
protoOf(GammaTransferFunctions).f1s = function (x) {
|
|
2221
|
+
return spow(x, 1.0 / this.s1s_1);
|
|
2283
2222
|
};
|
|
2284
2223
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
2285
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
2224
|
+
return 'GammaTransferFunctions(gamma=' + this.s1s_1 + ')';
|
|
2286
2225
|
};
|
|
2287
2226
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
2288
|
-
return getNumberHashCode(this.
|
|
2227
|
+
return getNumberHashCode(this.s1s_1);
|
|
2289
2228
|
};
|
|
2290
2229
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
2291
2230
|
if (this === other)
|
|
@@ -2293,16 +2232,16 @@
|
|
|
2293
2232
|
if (!(other instanceof GammaTransferFunctions))
|
|
2294
2233
|
return false;
|
|
2295
2234
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
2296
|
-
if (!equals(this.
|
|
2235
|
+
if (!equals(this.s1s_1, tmp0_other_with_cast.s1s_1))
|
|
2297
2236
|
return false;
|
|
2298
2237
|
return true;
|
|
2299
2238
|
};
|
|
2300
2239
|
function LinearTransferFunctions() {
|
|
2301
2240
|
}
|
|
2302
|
-
protoOf(LinearTransferFunctions).
|
|
2241
|
+
protoOf(LinearTransferFunctions).e1s = function (x) {
|
|
2303
2242
|
return x;
|
|
2304
2243
|
};
|
|
2305
|
-
protoOf(LinearTransferFunctions).
|
|
2244
|
+
protoOf(LinearTransferFunctions).f1s = function (x) {
|
|
2306
2245
|
return x;
|
|
2307
2246
|
};
|
|
2308
2247
|
var LinearTransferFunctions_instance;
|
|
@@ -2313,49 +2252,49 @@
|
|
|
2313
2252
|
}
|
|
2314
2253
|
function Companion_6() {
|
|
2315
2254
|
Companion_instance_7 = this;
|
|
2316
|
-
this.
|
|
2255
|
+
this.f1p_1 = RGBColorSpaces_getInstance().s1p_1;
|
|
2317
2256
|
}
|
|
2318
2257
|
protoOf(Companion_6).equals = function (other) {
|
|
2319
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2258
|
+
return equals(RGBColorSpaces_getInstance().s1p_1, other);
|
|
2320
2259
|
};
|
|
2321
2260
|
protoOf(Companion_6).hashCode = function () {
|
|
2322
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2261
|
+
return hashCode(RGBColorSpaces_getInstance().s1p_1);
|
|
2323
2262
|
};
|
|
2324
|
-
protoOf(Companion_6).
|
|
2325
|
-
return this.
|
|
2263
|
+
protoOf(Companion_6).h1p = function (r, g, b, alpha) {
|
|
2264
|
+
return this.f1p_1.h1p(r, g, b, alpha);
|
|
2326
2265
|
};
|
|
2327
|
-
protoOf(Companion_6).
|
|
2328
|
-
return this.
|
|
2266
|
+
protoOf(Companion_6).g1s = function (r, g, b, alpha) {
|
|
2267
|
+
return this.f1p_1.g1s(r, g, b, alpha);
|
|
2329
2268
|
};
|
|
2330
|
-
protoOf(Companion_6).
|
|
2331
|
-
return this.
|
|
2269
|
+
protoOf(Companion_6).g1p = function (hex) {
|
|
2270
|
+
return this.f1p_1.g1p(hex);
|
|
2332
2271
|
};
|
|
2333
|
-
protoOf(Companion_6).
|
|
2334
|
-
return this.
|
|
2272
|
+
protoOf(Companion_6).l1r = function (r, g, b, alpha) {
|
|
2273
|
+
return this.f1p_1.l1r(r, g, b, alpha);
|
|
2335
2274
|
};
|
|
2336
|
-
protoOf(Companion_6).
|
|
2337
|
-
return this.
|
|
2275
|
+
protoOf(Companion_6).v1r = function () {
|
|
2276
|
+
return this.f1p_1.v1r();
|
|
2338
2277
|
};
|
|
2339
|
-
protoOf(Companion_6).
|
|
2340
|
-
return this.
|
|
2278
|
+
protoOf(Companion_6).t1s = function () {
|
|
2279
|
+
return this.f1p_1.t1s();
|
|
2341
2280
|
};
|
|
2342
|
-
protoOf(Companion_6).
|
|
2343
|
-
return this.
|
|
2281
|
+
protoOf(Companion_6).u1s = function () {
|
|
2282
|
+
return this.f1p_1.u1s();
|
|
2344
2283
|
};
|
|
2345
|
-
protoOf(Companion_6).
|
|
2346
|
-
return this.
|
|
2284
|
+
protoOf(Companion_6).l1o = function () {
|
|
2285
|
+
return this.f1p_1.l1o();
|
|
2347
2286
|
};
|
|
2348
|
-
protoOf(Companion_6).
|
|
2349
|
-
return this.
|
|
2287
|
+
protoOf(Companion_6).l2 = function () {
|
|
2288
|
+
return this.f1p_1.l2();
|
|
2350
2289
|
};
|
|
2351
|
-
protoOf(Companion_6).
|
|
2352
|
-
return this.
|
|
2290
|
+
protoOf(Companion_6).m1o = function () {
|
|
2291
|
+
return this.f1p_1.m1o();
|
|
2353
2292
|
};
|
|
2354
|
-
protoOf(Companion_6).
|
|
2355
|
-
return this.
|
|
2293
|
+
protoOf(Companion_6).g1o = function (color) {
|
|
2294
|
+
return this.f1p_1.g1o(color);
|
|
2356
2295
|
};
|
|
2357
|
-
protoOf(Companion_6).
|
|
2358
|
-
return this.
|
|
2296
|
+
protoOf(Companion_6).n1o = function (components) {
|
|
2297
|
+
return this.f1p_1.n1o(components);
|
|
2359
2298
|
};
|
|
2360
2299
|
var Companion_instance_7;
|
|
2361
2300
|
function Companion_getInstance_6() {
|
|
@@ -2365,93 +2304,89 @@
|
|
|
2365
2304
|
}
|
|
2366
2305
|
function RGB(r, g, b, alpha, space) {
|
|
2367
2306
|
Companion_getInstance_6();
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2307
|
+
this.h1n_1 = r;
|
|
2308
|
+
this.i1n_1 = g;
|
|
2309
|
+
this.j1n_1 = b;
|
|
2310
|
+
this.k1n_1 = alpha;
|
|
2311
|
+
this.l1n_1 = space;
|
|
2373
2312
|
}
|
|
2374
|
-
protoOf(RGB).
|
|
2375
|
-
return this.
|
|
2313
|
+
protoOf(RGB).d1n = function () {
|
|
2314
|
+
return this.k1n_1;
|
|
2376
2315
|
};
|
|
2377
|
-
protoOf(RGB).
|
|
2378
|
-
return this.
|
|
2316
|
+
protoOf(RGB).e1n = function () {
|
|
2317
|
+
return this.l1n_1;
|
|
2379
2318
|
};
|
|
2380
|
-
protoOf(RGB).
|
|
2319
|
+
protoOf(RGB).p1q = function () {
|
|
2381
2320
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
return _RGBInt___init__impl__lqova7_1($this$toSRGB.g1o_1, $this$toSRGB.h1o_1, $this$toSRGB.i1o_1, nanToOne($this$toSRGB.j1o_1));
|
|
2321
|
+
var $this$toSRGB = this.v1s(SRGB_getInstance());
|
|
2322
|
+
return _RGBInt___init__impl__lqova7_1($this$toSRGB.h1n_1, $this$toSRGB.i1n_1, $this$toSRGB.j1n_1, nanToOne($this$toSRGB.k1n_1));
|
|
2385
2323
|
};
|
|
2386
|
-
protoOf(RGB).
|
|
2387
|
-
var f = SRGB_getInstance().
|
|
2388
|
-
return equals(this.
|
|
2324
|
+
protoOf(RGB).v1s = function (space) {
|
|
2325
|
+
var f = SRGB_getInstance().v1r();
|
|
2326
|
+
return equals(this.l1n_1, space) ? this : equals(this.l1n_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().t1p_1) ? space.h1p(f.e1s(this.h1n_1), f.e1s(this.i1n_1), f.e1s(this.j1n_1), this.k1n_1) : equals(this.l1n_1, RGBColorSpaces_getInstance().t1p_1) && equals(space, SRGB_getInstance()) ? space.h1p(f.f1s(this.h1n_1), f.f1s(this.i1n_1), f.f1s(this.j1n_1), this.k1n_1) : this.m1n().x1s(space);
|
|
2389
2327
|
};
|
|
2390
|
-
protoOf(RGB).
|
|
2328
|
+
protoOf(RGB).g1n = function () {
|
|
2391
2329
|
var tmp$ret$3;
|
|
2392
2330
|
$l$block: {
|
|
2393
2331
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2394
2332
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2395
|
-
var $this$toSRGB = this.
|
|
2396
|
-
var r = $this$toSRGB.
|
|
2397
|
-
var g = $this$toSRGB.
|
|
2398
|
-
var b = $this$toSRGB.
|
|
2333
|
+
var $this$toSRGB = this.v1s(SRGB_getInstance());
|
|
2334
|
+
var r = $this$toSRGB.h1n_1;
|
|
2335
|
+
var g = $this$toSRGB.i1n_1;
|
|
2336
|
+
var b = $this$toSRGB.j1n_1;
|
|
2399
2337
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2400
2338
|
var min = Math.min(r, g, b);
|
|
2401
2339
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
2402
2340
|
var max = Math.max(r, g, b);
|
|
2403
2341
|
var chroma = max - min;
|
|
2404
2342
|
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
2405
|
-
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSL.<anonymous>' call
|
|
2406
2343
|
var h_0 = normalizeDeg(h);
|
|
2407
2344
|
var l = (min + max) / 2.0;
|
|
2408
2345
|
var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
|
|
2409
|
-
tmp$ret$3 = new HSL(h_0, s, l, this.
|
|
2346
|
+
tmp$ret$3 = new HSL(h_0, s, l, this.k1n_1);
|
|
2410
2347
|
break $l$block;
|
|
2411
2348
|
}
|
|
2412
2349
|
return tmp$ret$3;
|
|
2413
2350
|
};
|
|
2414
|
-
protoOf(RGB).
|
|
2415
|
-
var f = this.
|
|
2416
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.
|
|
2417
|
-
var tmp1 = f.
|
|
2418
|
-
var tmp2 = f.
|
|
2351
|
+
protoOf(RGB).m1n = function () {
|
|
2352
|
+
var f = this.l1n_1.v1r();
|
|
2353
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.l1n_1.t1s());
|
|
2354
|
+
var tmp1 = f.e1s(this.h1n_1);
|
|
2355
|
+
var tmp2 = f.e1s(this.i1n_1);
|
|
2419
2356
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2420
|
-
var v2 = f.
|
|
2357
|
+
var v2 = f.e1s(this.j1n_1);
|
|
2421
2358
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
2422
2359
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
2423
|
-
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
2424
2360
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
2425
|
-
return XYZColorSpace_0(this.
|
|
2361
|
+
return XYZColorSpace_0(this.l1n_1.l1o()).h1p(tmp4, tmp5, z, this.k1n_1);
|
|
2426
2362
|
};
|
|
2427
|
-
protoOf(RGB).
|
|
2363
|
+
protoOf(RGB).z1n = function () {
|
|
2428
2364
|
var tmp$ret$3;
|
|
2429
2365
|
$l$block: {
|
|
2430
2366
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2431
2367
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2432
|
-
var $this$toSRGB = this.
|
|
2433
|
-
var r = $this$toSRGB.
|
|
2434
|
-
var g = $this$toSRGB.
|
|
2435
|
-
var b = $this$toSRGB.
|
|
2368
|
+
var $this$toSRGB = this.v1s(SRGB_getInstance());
|
|
2369
|
+
var r = $this$toSRGB.h1n_1;
|
|
2370
|
+
var g = $this$toSRGB.i1n_1;
|
|
2371
|
+
var b = $this$toSRGB.j1n_1;
|
|
2436
2372
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2437
2373
|
var min = Math.min(r, g, b);
|
|
2438
2374
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
2439
2375
|
var max = Math.max(r, g, b);
|
|
2440
2376
|
var chroma = max - min;
|
|
2441
2377
|
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
2442
|
-
// Inline function 'com.github.ajalt.colormath.model.RGB.toHWB.<anonymous>' call
|
|
2443
2378
|
var hue = normalizeDeg(h);
|
|
2444
|
-
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.
|
|
2379
|
+
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.k1n_1);
|
|
2445
2380
|
break $l$block;
|
|
2446
2381
|
}
|
|
2447
2382
|
return tmp$ret$3;
|
|
2448
2383
|
};
|
|
2449
|
-
protoOf(RGB).
|
|
2450
|
-
if (!equals(this.
|
|
2451
|
-
return this.
|
|
2452
|
-
var r = this.
|
|
2453
|
-
var g = this.
|
|
2454
|
-
var b = this.
|
|
2384
|
+
protoOf(RGB).a1o = function () {
|
|
2385
|
+
if (!equals(this.l1n_1, RGBColorSpaces_getInstance().s1p_1))
|
|
2386
|
+
return this.m1n().a1o();
|
|
2387
|
+
var r = this.l1n_1.v1r().e1s(this.h1n_1);
|
|
2388
|
+
var g = this.l1n_1.v1r().e1s(this.i1n_1);
|
|
2389
|
+
var b = this.l1n_1.v1r().e1s(this.j1n_1);
|
|
2455
2390
|
var l = 0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b;
|
|
2456
2391
|
var m = 0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b;
|
|
2457
2392
|
var s = 0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b;
|
|
@@ -2461,24 +2396,24 @@
|
|
|
2461
2396
|
var mm = Math.cbrt(m);
|
|
2462
2397
|
// Inline function 'kotlin.math.cbrt' call
|
|
2463
2398
|
var ss = Math.cbrt(s);
|
|
2464
|
-
return Oklab_init_$Create$(0.21045426 * ll + 0.7936178 * mm - 0.004072047 * ss, 1.9779985 * ll - 2.4285922 * mm + 0.4505937 * ss, 0.025904037 * ll + 0.78277177 * mm - 0.80867577 * ss, this.
|
|
2399
|
+
return Oklab_init_$Create$(0.21045426 * ll + 0.7936178 * mm - 0.004072047 * ss, 1.9779985 * ll - 2.4285922 * mm + 0.4505937 * ss, 0.025904037 * ll + 0.78277177 * mm - 0.80867577 * ss, this.k1n_1);
|
|
2465
2400
|
};
|
|
2466
|
-
protoOf(RGB).
|
|
2467
|
-
return this.
|
|
2401
|
+
protoOf(RGB).f1n = function () {
|
|
2402
|
+
return this.v1s(RGBColorSpaces_getInstance().s1p_1);
|
|
2468
2403
|
};
|
|
2469
|
-
protoOf(RGB).
|
|
2404
|
+
protoOf(RGB).p5 = function () {
|
|
2470
2405
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2471
|
-
return new Float32Array([this.
|
|
2406
|
+
return new Float32Array([this.h1n_1, this.i1n_1, this.j1n_1, this.k1n_1]);
|
|
2472
2407
|
};
|
|
2473
2408
|
protoOf(RGB).toString = function () {
|
|
2474
|
-
return 'RGB(r=' + this.
|
|
2409
|
+
return 'RGB(r=' + this.h1n_1 + ', g=' + this.i1n_1 + ', b=' + this.j1n_1 + ', alpha=' + this.k1n_1 + ', space=' + toString(this.l1n_1) + ')';
|
|
2475
2410
|
};
|
|
2476
2411
|
protoOf(RGB).hashCode = function () {
|
|
2477
|
-
var result = getNumberHashCode(this.
|
|
2478
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2479
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2480
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2481
|
-
result = imul(result, 31) + hashCode(this.
|
|
2412
|
+
var result = getNumberHashCode(this.h1n_1);
|
|
2413
|
+
result = imul(result, 31) + getNumberHashCode(this.i1n_1) | 0;
|
|
2414
|
+
result = imul(result, 31) + getNumberHashCode(this.j1n_1) | 0;
|
|
2415
|
+
result = imul(result, 31) + getNumberHashCode(this.k1n_1) | 0;
|
|
2416
|
+
result = imul(result, 31) + hashCode(this.l1n_1) | 0;
|
|
2482
2417
|
return result;
|
|
2483
2418
|
};
|
|
2484
2419
|
protoOf(RGB).equals = function (other) {
|
|
@@ -2487,15 +2422,15 @@
|
|
|
2487
2422
|
if (!(other instanceof RGB))
|
|
2488
2423
|
return false;
|
|
2489
2424
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
2490
|
-
if (!equals(this.
|
|
2425
|
+
if (!equals(this.h1n_1, tmp0_other_with_cast.h1n_1))
|
|
2491
2426
|
return false;
|
|
2492
|
-
if (!equals(this.
|
|
2427
|
+
if (!equals(this.i1n_1, tmp0_other_with_cast.i1n_1))
|
|
2493
2428
|
return false;
|
|
2494
|
-
if (!equals(this.
|
|
2429
|
+
if (!equals(this.j1n_1, tmp0_other_with_cast.j1n_1))
|
|
2495
2430
|
return false;
|
|
2496
|
-
if (!equals(this.
|
|
2431
|
+
if (!equals(this.k1n_1, tmp0_other_with_cast.k1n_1))
|
|
2497
2432
|
return false;
|
|
2498
|
-
if (!equals(this.
|
|
2433
|
+
if (!equals(this.l1n_1, tmp0_other_with_cast.l1n_1))
|
|
2499
2434
|
return false;
|
|
2500
2435
|
return true;
|
|
2501
2436
|
};
|
|
@@ -2507,7 +2442,6 @@
|
|
|
2507
2442
|
} else {
|
|
2508
2443
|
var i_0 = charSequenceGet(_this__u8e3s4, 0) === _Char___init__impl__6a9atx(35) ? startIndex + 1 | 0 : startIndex;
|
|
2509
2444
|
// Inline function 'kotlin.let' call
|
|
2510
|
-
// Inline function 'com.github.ajalt.colormath.model.parseHex.<anonymous>' call
|
|
2511
2445
|
var it = charSequenceGet(_this__u8e3s4, i_0);
|
|
2512
2446
|
var tmp$ret$1 = toString_0(it) + toString_0(it);
|
|
2513
2447
|
tmp = toInt(tmp$ret$1, 16);
|
|
@@ -2516,13 +2450,10 @@
|
|
|
2516
2450
|
}
|
|
2517
2451
|
function validateHex(_this__u8e3s4) {
|
|
2518
2452
|
// Inline function 'kotlin.apply' call
|
|
2519
|
-
// Inline function 'com.github.ajalt.colormath.model.validateHex.<anonymous>' call
|
|
2520
2453
|
// Inline function 'kotlin.let' call
|
|
2521
|
-
// Inline function 'com.github.ajalt.colormath.model.validateHex.<anonymous>.<anonymous>' call
|
|
2522
2454
|
var it = get_hexLength(_this__u8e3s4);
|
|
2523
2455
|
// Inline function 'kotlin.require' call
|
|
2524
2456
|
if (!(it === 3 || it === 4 || it === 6 || it === 8)) {
|
|
2525
|
-
// Inline function 'com.github.ajalt.colormath.model.validateHex.<anonymous>.<anonymous>' call
|
|
2526
2457
|
var message = 'Hex string must be in the format "#ffffff" or "ffffff"';
|
|
2527
2458
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2528
2459
|
}
|
|
@@ -2582,17 +2513,17 @@
|
|
|
2582
2513
|
}
|
|
2583
2514
|
var ACES_AP1_B;
|
|
2584
2515
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
2585
|
-
return it.
|
|
2516
|
+
return it.f1n();
|
|
2586
2517
|
}
|
|
2587
2518
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
2588
2519
|
var tmp;
|
|
2589
2520
|
if (color instanceof RGB) {
|
|
2590
|
-
tmp = color.
|
|
2521
|
+
tmp = color.v1s($this$RGBColorSpaceImpl);
|
|
2591
2522
|
} else {
|
|
2592
2523
|
if (color instanceof ICtCp) {
|
|
2593
|
-
tmp = color.
|
|
2524
|
+
tmp = color.u1r();
|
|
2594
2525
|
} else {
|
|
2595
|
-
tmp = color.
|
|
2526
|
+
tmp = color.m1n().x1s($this$RGBColorSpaceImpl);
|
|
2596
2527
|
}
|
|
2597
2528
|
}
|
|
2598
2529
|
return tmp;
|
|
@@ -2600,29 +2531,29 @@
|
|
|
2600
2531
|
function RGBColorSpaces() {
|
|
2601
2532
|
RGBColorSpaces_instance = this;
|
|
2602
2533
|
var tmp = this;
|
|
2603
|
-
var tmp_0 = Illuminant_getInstance().
|
|
2534
|
+
var tmp_0 = Illuminant_getInstance().m1q_1;
|
|
2604
2535
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
2605
2536
|
var tmp_2 = get_SRGB_R();
|
|
2606
2537
|
var tmp_3 = get_SRGB_G();
|
|
2607
2538
|
var tmp_4 = get_SRGB_B();
|
|
2608
|
-
tmp.
|
|
2609
|
-
this.
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2612
|
-
this.
|
|
2613
|
-
this.
|
|
2614
|
-
this.
|
|
2539
|
+
tmp.s1p_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
2540
|
+
this.t1p_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().m1q_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
2541
|
+
this.u1p_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
2542
|
+
this.v1p_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2543
|
+
this.w1p_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2544
|
+
this.x1p_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2545
|
+
this.y1p_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().m1q_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
|
|
2615
2546
|
var tmp_5 = this;
|
|
2616
|
-
var tmp_6 = Illuminant_getInstance().
|
|
2547
|
+
var tmp_6 = Illuminant_getInstance().m1q_1;
|
|
2617
2548
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
2618
2549
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
2619
2550
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
2620
2551
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
2621
|
-
tmp_5.
|
|
2622
|
-
this.
|
|
2623
|
-
this.
|
|
2624
|
-
this.
|
|
2625
|
-
this.
|
|
2552
|
+
tmp_5.z1p_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
2553
|
+
this.a1q_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().m1q_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
2554
|
+
this.b1q_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2555
|
+
this.c1q_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().m1q_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2556
|
+
this.d1q_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().k1q_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
2626
2557
|
}
|
|
2627
2558
|
var RGBColorSpaces_instance;
|
|
2628
2559
|
function RGBColorSpaces_getInstance() {
|
|
@@ -2632,52 +2563,52 @@
|
|
|
2632
2563
|
}
|
|
2633
2564
|
function SRGB() {
|
|
2634
2565
|
SRGB_instance = this;
|
|
2635
|
-
this.
|
|
2566
|
+
this.n1r_1 = RGBColorSpaces_getInstance().s1p_1;
|
|
2636
2567
|
}
|
|
2637
2568
|
protoOf(SRGB).equals = function (other) {
|
|
2638
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2569
|
+
return equals(RGBColorSpaces_getInstance().s1p_1, other);
|
|
2639
2570
|
};
|
|
2640
2571
|
protoOf(SRGB).hashCode = function () {
|
|
2641
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2572
|
+
return hashCode(RGBColorSpaces_getInstance().s1p_1);
|
|
2642
2573
|
};
|
|
2643
2574
|
protoOf(SRGB).toString = function () {
|
|
2644
2575
|
return 'sRGB';
|
|
2645
2576
|
};
|
|
2646
|
-
protoOf(SRGB).
|
|
2647
|
-
return this.
|
|
2577
|
+
protoOf(SRGB).h1p = function (r, g, b, alpha) {
|
|
2578
|
+
return this.n1r_1.h1p(r, g, b, alpha);
|
|
2648
2579
|
};
|
|
2649
|
-
protoOf(SRGB).
|
|
2650
|
-
return this.
|
|
2580
|
+
protoOf(SRGB).g1s = function (r, g, b, alpha) {
|
|
2581
|
+
return this.n1r_1.g1s(r, g, b, alpha);
|
|
2651
2582
|
};
|
|
2652
|
-
protoOf(SRGB).
|
|
2653
|
-
return this.
|
|
2583
|
+
protoOf(SRGB).g1p = function (hex) {
|
|
2584
|
+
return this.n1r_1.g1p(hex);
|
|
2654
2585
|
};
|
|
2655
|
-
protoOf(SRGB).
|
|
2656
|
-
return this.
|
|
2586
|
+
protoOf(SRGB).l1r = function (r, g, b, alpha) {
|
|
2587
|
+
return this.n1r_1.l1r(r, g, b, alpha);
|
|
2657
2588
|
};
|
|
2658
|
-
protoOf(SRGB).
|
|
2659
|
-
return this.
|
|
2589
|
+
protoOf(SRGB).v1r = function () {
|
|
2590
|
+
return this.n1r_1.v1r();
|
|
2660
2591
|
};
|
|
2661
|
-
protoOf(SRGB).
|
|
2662
|
-
return this.
|
|
2592
|
+
protoOf(SRGB).t1s = function () {
|
|
2593
|
+
return this.n1r_1.t1s();
|
|
2663
2594
|
};
|
|
2664
|
-
protoOf(SRGB).
|
|
2665
|
-
return this.
|
|
2595
|
+
protoOf(SRGB).u1s = function () {
|
|
2596
|
+
return this.n1r_1.u1s();
|
|
2666
2597
|
};
|
|
2667
|
-
protoOf(SRGB).
|
|
2668
|
-
return this.
|
|
2598
|
+
protoOf(SRGB).l1o = function () {
|
|
2599
|
+
return this.n1r_1.l1o();
|
|
2669
2600
|
};
|
|
2670
|
-
protoOf(SRGB).
|
|
2671
|
-
return this.
|
|
2601
|
+
protoOf(SRGB).l2 = function () {
|
|
2602
|
+
return this.n1r_1.l2();
|
|
2672
2603
|
};
|
|
2673
|
-
protoOf(SRGB).
|
|
2674
|
-
return this.
|
|
2604
|
+
protoOf(SRGB).m1o = function () {
|
|
2605
|
+
return this.n1r_1.m1o();
|
|
2675
2606
|
};
|
|
2676
|
-
protoOf(SRGB).
|
|
2677
|
-
return this.
|
|
2607
|
+
protoOf(SRGB).g1o = function (color) {
|
|
2608
|
+
return this.n1r_1.g1o(color);
|
|
2678
2609
|
};
|
|
2679
|
-
protoOf(SRGB).
|
|
2680
|
-
return this.
|
|
2610
|
+
protoOf(SRGB).n1o = function (components) {
|
|
2611
|
+
return this.n1r_1.n1o(components);
|
|
2681
2612
|
};
|
|
2682
2613
|
var SRGB_instance;
|
|
2683
2614
|
function SRGB_getInstance() {
|
|
@@ -2686,45 +2617,43 @@
|
|
|
2686
2617
|
return SRGB_instance;
|
|
2687
2618
|
}
|
|
2688
2619
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
2689
|
-
this.
|
|
2690
|
-
this.
|
|
2691
|
-
this.
|
|
2692
|
-
this.
|
|
2693
|
-
this.
|
|
2694
|
-
this.
|
|
2695
|
-
this.
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2698
|
-
this.
|
|
2699
|
-
}
|
|
2700
|
-
protoOf(RGBColorSpaceImpl).
|
|
2701
|
-
return this.
|
|
2702
|
-
};
|
|
2703
|
-
protoOf(RGBColorSpaceImpl).k1p = function () {
|
|
2704
|
-
return this.y1t_1;
|
|
2620
|
+
this.y1s_1 = name;
|
|
2621
|
+
this.z1s_1 = whitePoint;
|
|
2622
|
+
this.a1t_1 = transferFunctions;
|
|
2623
|
+
this.b1t_1 = r;
|
|
2624
|
+
this.c1t_1 = g;
|
|
2625
|
+
this.d1t_1 = b;
|
|
2626
|
+
this.e1t_1 = convertImpl;
|
|
2627
|
+
this.f1t_1 = zeroOneComponentInfo('RGB');
|
|
2628
|
+
this.g1t_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.z1s_1, this.b1t_1, this.c1t_1, this.d1t_1));
|
|
2629
|
+
this.h1t_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.g1t_1)));
|
|
2630
|
+
}
|
|
2631
|
+
protoOf(RGBColorSpaceImpl).l2 = function () {
|
|
2632
|
+
return this.y1s_1;
|
|
2705
2633
|
};
|
|
2706
|
-
protoOf(RGBColorSpaceImpl).
|
|
2707
|
-
return this.
|
|
2634
|
+
protoOf(RGBColorSpaceImpl).l1o = function () {
|
|
2635
|
+
return this.z1s_1;
|
|
2708
2636
|
};
|
|
2709
|
-
protoOf(RGBColorSpaceImpl).
|
|
2710
|
-
return this.
|
|
2637
|
+
protoOf(RGBColorSpaceImpl).v1r = function () {
|
|
2638
|
+
return this.a1t_1;
|
|
2711
2639
|
};
|
|
2712
|
-
protoOf(RGBColorSpaceImpl).
|
|
2713
|
-
return this.
|
|
2640
|
+
protoOf(RGBColorSpaceImpl).m1o = function () {
|
|
2641
|
+
return this.f1t_1;
|
|
2714
2642
|
};
|
|
2715
|
-
protoOf(RGBColorSpaceImpl).
|
|
2643
|
+
protoOf(RGBColorSpaceImpl).g1o = function (color) {
|
|
2644
|
+
return this.e1t_1(this, color);
|
|
2645
|
+
};
|
|
2646
|
+
protoOf(RGBColorSpaceImpl).n1o = function (components) {
|
|
2716
2647
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2717
2648
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2718
|
-
var size = this.
|
|
2649
|
+
var size = this.m1o().m();
|
|
2719
2650
|
var containsLower = size - 1 | 0;
|
|
2720
2651
|
var containsArg = components.length;
|
|
2721
2652
|
// Inline function 'kotlin.require' call
|
|
2722
2653
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
2723
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
2724
2654
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
2725
2655
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2726
2656
|
}
|
|
2727
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
2728
2657
|
var tmp3 = components[0];
|
|
2729
2658
|
var tmp4 = components[1];
|
|
2730
2659
|
var tmp5 = components[2];
|
|
@@ -2733,23 +2662,21 @@
|
|
|
2733
2662
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
2734
2663
|
tmp = components[3];
|
|
2735
2664
|
} else {
|
|
2736
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
2737
2665
|
tmp = 1.0;
|
|
2738
2666
|
}
|
|
2739
|
-
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpaceImpl.create.stub_for_inlining' call
|
|
2740
2667
|
var p3 = tmp;
|
|
2741
|
-
return this.
|
|
2668
|
+
return this.h1p(tmp3, tmp4, tmp5, p3);
|
|
2742
2669
|
};
|
|
2743
|
-
protoOf(RGBColorSpaceImpl).
|
|
2744
|
-
return this.
|
|
2670
|
+
protoOf(RGBColorSpaceImpl).t1s = function () {
|
|
2671
|
+
return this.g1t_1;
|
|
2745
2672
|
};
|
|
2746
|
-
protoOf(RGBColorSpaceImpl).
|
|
2747
|
-
return this.
|
|
2673
|
+
protoOf(RGBColorSpaceImpl).u1s = function () {
|
|
2674
|
+
return this.h1t_1;
|
|
2748
2675
|
};
|
|
2749
2676
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
2750
|
-
return this.
|
|
2677
|
+
return this.y1s_1;
|
|
2751
2678
|
};
|
|
2752
|
-
protoOf(RGBColorSpaceImpl).
|
|
2679
|
+
protoOf(RGBColorSpaceImpl).h1p = function (r, g, b, alpha) {
|
|
2753
2680
|
return new RGB(r, g, b, alpha, this);
|
|
2754
2681
|
};
|
|
2755
2682
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -2757,42 +2684,42 @@
|
|
|
2757
2684
|
return true;
|
|
2758
2685
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
2759
2686
|
return false;
|
|
2760
|
-
if (!(this.
|
|
2687
|
+
if (!(this.y1s_1 === other.l2()))
|
|
2761
2688
|
return false;
|
|
2762
|
-
if (!this.
|
|
2689
|
+
if (!this.z1s_1.equals(other.l1o()))
|
|
2763
2690
|
return false;
|
|
2764
|
-
if (!equals(this.
|
|
2691
|
+
if (!equals(this.a1t_1, other.v1r()))
|
|
2765
2692
|
return false;
|
|
2766
2693
|
if (other instanceof RGBColorSpaceImpl) {
|
|
2767
|
-
if (!this.
|
|
2694
|
+
if (!this.b1t_1.equals(other.b1t_1))
|
|
2768
2695
|
return false;
|
|
2769
|
-
if (!this.
|
|
2696
|
+
if (!this.c1t_1.equals(other.c1t_1))
|
|
2770
2697
|
return false;
|
|
2771
|
-
if (!this.
|
|
2698
|
+
if (!this.d1t_1.equals(other.d1t_1))
|
|
2772
2699
|
return false;
|
|
2773
2700
|
} else {
|
|
2774
|
-
if (!contentEquals(this.
|
|
2701
|
+
if (!contentEquals(this.g1t_1, other.t1s()))
|
|
2775
2702
|
return false;
|
|
2776
|
-
if (!contentEquals(this.
|
|
2703
|
+
if (!contentEquals(this.h1t_1, other.u1s()))
|
|
2777
2704
|
return false;
|
|
2778
2705
|
}
|
|
2779
2706
|
return true;
|
|
2780
2707
|
};
|
|
2781
2708
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
2782
|
-
var result = getStringHashCode(this.
|
|
2783
|
-
result = imul(31, result) + this.
|
|
2784
|
-
result = imul(31, result) + hashCode(this.
|
|
2785
|
-
result = imul(31, result) + this.
|
|
2786
|
-
result = imul(31, result) + this.
|
|
2787
|
-
result = imul(31, result) + this.
|
|
2709
|
+
var result = getStringHashCode(this.y1s_1);
|
|
2710
|
+
result = imul(31, result) + this.z1s_1.hashCode() | 0;
|
|
2711
|
+
result = imul(31, result) + hashCode(this.a1t_1) | 0;
|
|
2712
|
+
result = imul(31, result) + this.b1t_1.hashCode() | 0;
|
|
2713
|
+
result = imul(31, result) + this.c1t_1.hashCode() | 0;
|
|
2714
|
+
result = imul(31, result) + this.d1t_1.hashCode() | 0;
|
|
2788
2715
|
return result;
|
|
2789
2716
|
};
|
|
2790
2717
|
function SRGBTransferFunctions() {
|
|
2791
2718
|
}
|
|
2792
|
-
protoOf(SRGBTransferFunctions).
|
|
2719
|
+
protoOf(SRGBTransferFunctions).f1s = function (x) {
|
|
2793
2720
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
2794
2721
|
};
|
|
2795
|
-
protoOf(SRGBTransferFunctions).
|
|
2722
|
+
protoOf(SRGBTransferFunctions).e1s = function (x) {
|
|
2796
2723
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
2797
2724
|
};
|
|
2798
2725
|
var SRGBTransferFunctions_instance;
|
|
@@ -2805,18 +2732,18 @@
|
|
|
2805
2732
|
}
|
|
2806
2733
|
function ACESccTransferFunctions() {
|
|
2807
2734
|
ACESccTransferFunctions_instance = this;
|
|
2808
|
-
this.
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2735
|
+
this.i1t_1 = 3.0517578125E-5;
|
|
2736
|
+
this.j1t_1 = 1.52587890625E-5;
|
|
2737
|
+
this.k1t_1 = -0.3013698630136986;
|
|
2811
2738
|
var tmp = this;
|
|
2812
2739
|
// Inline function 'kotlin.math.log2' call
|
|
2813
|
-
tmp.
|
|
2740
|
+
tmp.l1t_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2814
2741
|
}
|
|
2815
|
-
protoOf(ACESccTransferFunctions).
|
|
2742
|
+
protoOf(ACESccTransferFunctions).e1s = function (x) {
|
|
2816
2743
|
var tmp;
|
|
2817
2744
|
if (x <= -0.3013698630136986) {
|
|
2818
2745
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
2819
|
-
} else if (x < this.
|
|
2746
|
+
} else if (x < this.l1t_1) {
|
|
2820
2747
|
// Inline function 'kotlin.math.pow' call
|
|
2821
2748
|
var x_0 = x * 17.52 - 9.72;
|
|
2822
2749
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2825,7 +2752,7 @@
|
|
|
2825
2752
|
}
|
|
2826
2753
|
return tmp;
|
|
2827
2754
|
};
|
|
2828
|
-
protoOf(ACESccTransferFunctions).
|
|
2755
|
+
protoOf(ACESccTransferFunctions).f1s = function (x) {
|
|
2829
2756
|
var tmp;
|
|
2830
2757
|
if (x < 3.0517578125E-5) {
|
|
2831
2758
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -2845,17 +2772,17 @@
|
|
|
2845
2772
|
}
|
|
2846
2773
|
function ACEScctTransferFunctions() {
|
|
2847
2774
|
ACEScctTransferFunctions_instance = this;
|
|
2848
|
-
this.
|
|
2849
|
-
this.
|
|
2775
|
+
this.m1t_1 = 10.5402377416545;
|
|
2776
|
+
this.n1t_1 = 0.0729055341958355;
|
|
2850
2777
|
var tmp = this;
|
|
2851
2778
|
// Inline function 'kotlin.math.log2' call
|
|
2852
|
-
tmp.
|
|
2779
|
+
tmp.o1t_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2853
2780
|
}
|
|
2854
|
-
protoOf(ACEScctTransferFunctions).
|
|
2781
|
+
protoOf(ACEScctTransferFunctions).e1s = function (x) {
|
|
2855
2782
|
var tmp;
|
|
2856
2783
|
if (x <= 0.155251141552511) {
|
|
2857
2784
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
2858
|
-
} else if (x < this.
|
|
2785
|
+
} else if (x < this.o1t_1) {
|
|
2859
2786
|
// Inline function 'kotlin.math.pow' call
|
|
2860
2787
|
var x_0 = x * 17.52 - 9.72;
|
|
2861
2788
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2864,7 +2791,7 @@
|
|
|
2864
2791
|
}
|
|
2865
2792
|
return tmp;
|
|
2866
2793
|
};
|
|
2867
|
-
protoOf(ACEScctTransferFunctions).
|
|
2794
|
+
protoOf(ACEScctTransferFunctions).f1s = function (x) {
|
|
2868
2795
|
var tmp;
|
|
2869
2796
|
if (x < 0.0078125) {
|
|
2870
2797
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -2882,16 +2809,16 @@
|
|
|
2882
2809
|
}
|
|
2883
2810
|
function BT2020TransferFunctions() {
|
|
2884
2811
|
BT2020TransferFunctions_instance = this;
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2812
|
+
this.p1t_1 = 1.0993;
|
|
2813
|
+
this.q1t_1 = 0.0181;
|
|
2887
2814
|
var tmp = this;
|
|
2888
2815
|
// Inline function 'kotlin.math.pow' call
|
|
2889
|
-
tmp.
|
|
2816
|
+
tmp.r1t_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
2890
2817
|
}
|
|
2891
|
-
protoOf(BT2020TransferFunctions).
|
|
2892
|
-
return numberToDouble(x < this.
|
|
2818
|
+
protoOf(BT2020TransferFunctions).e1s = function (x) {
|
|
2819
|
+
return numberToDouble(x < this.r1t_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
2893
2820
|
};
|
|
2894
|
-
protoOf(BT2020TransferFunctions).
|
|
2821
|
+
protoOf(BT2020TransferFunctions).f1s = function (x) {
|
|
2895
2822
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
2896
2823
|
};
|
|
2897
2824
|
var BT2020TransferFunctions_instance;
|
|
@@ -2902,12 +2829,12 @@
|
|
|
2902
2829
|
}
|
|
2903
2830
|
function BT709TransferFunctions() {
|
|
2904
2831
|
BT709TransferFunctions_instance = this;
|
|
2905
|
-
this.
|
|
2832
|
+
this.s1t_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
2906
2833
|
}
|
|
2907
|
-
protoOf(BT709TransferFunctions).
|
|
2908
|
-
return numberToDouble(x < this.
|
|
2834
|
+
protoOf(BT709TransferFunctions).e1s = function (x) {
|
|
2835
|
+
return numberToDouble(x < this.s1t_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
2909
2836
|
};
|
|
2910
|
-
protoOf(BT709TransferFunctions).
|
|
2837
|
+
protoOf(BT709TransferFunctions).f1s = function (x) {
|
|
2911
2838
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
2912
2839
|
};
|
|
2913
2840
|
var BT709TransferFunctions_instance;
|
|
@@ -2917,12 +2844,12 @@
|
|
|
2917
2844
|
return BT709TransferFunctions_instance;
|
|
2918
2845
|
}
|
|
2919
2846
|
function ROMMTransferFunctions() {
|
|
2920
|
-
this.
|
|
2847
|
+
this.t1t_1 = 0.001953;
|
|
2921
2848
|
}
|
|
2922
|
-
protoOf(ROMMTransferFunctions).
|
|
2849
|
+
protoOf(ROMMTransferFunctions).e1s = function (x) {
|
|
2923
2850
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
2924
2851
|
};
|
|
2925
|
-
protoOf(ROMMTransferFunctions).
|
|
2852
|
+
protoOf(ROMMTransferFunctions).f1s = function (x) {
|
|
2926
2853
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
2927
2854
|
};
|
|
2928
2855
|
var ROMMTransferFunctions_instance;
|
|
@@ -2931,16 +2858,15 @@
|
|
|
2931
2858
|
}
|
|
2932
2859
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
2933
2860
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2934
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
2935
|
-
var wp = whitePoint.
|
|
2861
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.i1s_1, g.i1s_1, b.i1s_1, r.j1s_1, g.j1s_1, b.j1s_1, r.u1t(), g.u1t(), b.u1t());
|
|
2862
|
+
var wp = whitePoint.j1r_1;
|
|
2936
2863
|
var tmp0 = inverse(primaries);
|
|
2937
|
-
var tmp1 = wp.
|
|
2938
|
-
var tmp2 = wp.
|
|
2864
|
+
var tmp1 = wp.l1s();
|
|
2865
|
+
var tmp2 = wp.k1s_1;
|
|
2939
2866
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2940
|
-
var v2 = wp.
|
|
2867
|
+
var v2 = wp.m1s();
|
|
2941
2868
|
var tmp4 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
2942
2869
|
var tmp5 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
2943
|
-
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
2944
2870
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
2945
2871
|
return dotDiagonal(primaries, tmp4, tmp5, z);
|
|
2946
2872
|
}
|
|
@@ -2948,9 +2874,9 @@
|
|
|
2948
2874
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2949
2875
|
var tmp;
|
|
2950
2876
|
if (color instanceof RGB) {
|
|
2951
|
-
tmp = color.
|
|
2877
|
+
tmp = color.v1s($this$RGBColorSpaceImpl);
|
|
2952
2878
|
} else {
|
|
2953
|
-
tmp = color.
|
|
2879
|
+
tmp = color.m1n().x1s($this$RGBColorSpaceImpl);
|
|
2954
2880
|
}
|
|
2955
2881
|
return tmp;
|
|
2956
2882
|
}
|
|
@@ -2978,33 +2904,31 @@
|
|
|
2978
2904
|
}
|
|
2979
2905
|
function Companion_7() {
|
|
2980
2906
|
Companion_instance_8 = this;
|
|
2981
|
-
this.
|
|
2907
|
+
this.v1t_1 = threeComponentInfo('R', 0.0, 255.0, 'G', 0.0, 255.0, 'B', 0.0, 255.0);
|
|
2982
2908
|
}
|
|
2983
|
-
protoOf(Companion_7).
|
|
2909
|
+
protoOf(Companion_7).l2 = function () {
|
|
2984
2910
|
return 'RGBInt';
|
|
2985
2911
|
};
|
|
2986
|
-
protoOf(Companion_7).
|
|
2987
|
-
return this.
|
|
2912
|
+
protoOf(Companion_7).m1o = function () {
|
|
2913
|
+
return this.v1t_1;
|
|
2988
2914
|
};
|
|
2989
|
-
protoOf(Companion_7).
|
|
2990
|
-
return color.
|
|
2915
|
+
protoOf(Companion_7).w1t = function (color) {
|
|
2916
|
+
return color.f1n().p1q();
|
|
2991
2917
|
};
|
|
2992
|
-
protoOf(Companion_7).
|
|
2993
|
-
return new RGBInt(this.
|
|
2918
|
+
protoOf(Companion_7).g1o = function (color) {
|
|
2919
|
+
return new RGBInt(this.w1t(color));
|
|
2994
2920
|
};
|
|
2995
|
-
protoOf(Companion_7).
|
|
2921
|
+
protoOf(Companion_7).x1t = function (components) {
|
|
2996
2922
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2997
2923
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2998
|
-
var size = this.
|
|
2924
|
+
var size = this.m1o().m();
|
|
2999
2925
|
var containsLower = size - 1 | 0;
|
|
3000
2926
|
var containsArg = components.length;
|
|
3001
2927
|
// Inline function 'kotlin.require' call
|
|
3002
2928
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
3003
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
3004
2929
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
3005
2930
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3006
2931
|
}
|
|
3007
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
3008
2932
|
var tmp2 = components[0];
|
|
3009
2933
|
var tmp3 = components[1];
|
|
3010
2934
|
var tmp4 = components[2];
|
|
@@ -3013,15 +2937,13 @@
|
|
|
3013
2937
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
3014
2938
|
tmp = components[3];
|
|
3015
2939
|
} else {
|
|
3016
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
3017
2940
|
tmp = 1.0;
|
|
3018
2941
|
}
|
|
3019
|
-
// Inline function 'com.github.ajalt.colormath.model.Companion.create.<anonymous>' call
|
|
3020
2942
|
var a = tmp;
|
|
3021
2943
|
return _RGBInt___init__impl__lqova7_0(numberToInt(tmp2), numberToInt(tmp3), numberToInt(tmp4), numberToInt(a));
|
|
3022
2944
|
};
|
|
3023
|
-
protoOf(Companion_7).
|
|
3024
|
-
return new RGBInt(this.
|
|
2945
|
+
protoOf(Companion_7).n1o = function (components) {
|
|
2946
|
+
return new RGBInt(this.x1t(components));
|
|
3025
2947
|
};
|
|
3026
2948
|
var Companion_instance_8;
|
|
3027
2949
|
function Companion_getInstance_7() {
|
|
@@ -3153,7 +3075,7 @@
|
|
|
3153
3075
|
return (_UByte___get_data__impl__jof9qr(this_0) & 255) / 255.0;
|
|
3154
3076
|
}
|
|
3155
3077
|
function RGBInt__toSRGB_impl_m0acyy($this) {
|
|
3156
|
-
return Companion_getInstance_6().
|
|
3078
|
+
return Companion_getInstance_6().h1p(_RGBInt___get_redFloat__impl__lnt6cx($this), _RGBInt___get_greenFloat__impl__opq1mn($this), _RGBInt___get_blueFloat__impl__jt6mw2($this), _RGBInt___get_alpha__impl__yl2tay($this));
|
|
3157
3079
|
}
|
|
3158
3080
|
function RGBInt__toArray_impl_73rlu9($this) {
|
|
3159
3081
|
// Inline function 'kotlin.UByte.toFloat' call
|
|
@@ -3192,65 +3114,65 @@
|
|
|
3192
3114
|
function RGBInt__equals_impl_qmmpmc($this, other) {
|
|
3193
3115
|
if (!(other instanceof RGBInt))
|
|
3194
3116
|
return false;
|
|
3195
|
-
if (!($this === (other instanceof RGBInt ? other.
|
|
3117
|
+
if (!($this === (other instanceof RGBInt ? other.w1s_1 : THROW_CCE())))
|
|
3196
3118
|
return false;
|
|
3197
3119
|
return true;
|
|
3198
3120
|
}
|
|
3199
3121
|
function RGBInt(argb) {
|
|
3200
3122
|
Companion_getInstance_7();
|
|
3201
|
-
this.
|
|
3123
|
+
this.w1s_1 = argb;
|
|
3202
3124
|
}
|
|
3203
|
-
protoOf(RGBInt).
|
|
3204
|
-
return _RGBInt___get_alpha__impl__yl2tay(this.
|
|
3125
|
+
protoOf(RGBInt).d1n = function () {
|
|
3126
|
+
return _RGBInt___get_alpha__impl__yl2tay(this.w1s_1);
|
|
3205
3127
|
};
|
|
3206
|
-
protoOf(RGBInt).
|
|
3207
|
-
return _RGBInt___get_space__impl__emgnsy(this.
|
|
3128
|
+
protoOf(RGBInt).e1n = function () {
|
|
3129
|
+
return _RGBInt___get_space__impl__emgnsy(this.w1s_1);
|
|
3208
3130
|
};
|
|
3209
|
-
protoOf(RGBInt).
|
|
3210
|
-
return RGBInt__toSRGB_impl_m0acyy(this.
|
|
3131
|
+
protoOf(RGBInt).f1n = function () {
|
|
3132
|
+
return RGBInt__toSRGB_impl_m0acyy(this.w1s_1);
|
|
3211
3133
|
};
|
|
3212
|
-
protoOf(RGBInt).
|
|
3213
|
-
return RGBInt__toArray_impl_73rlu9(this.
|
|
3134
|
+
protoOf(RGBInt).p5 = function () {
|
|
3135
|
+
return RGBInt__toArray_impl_73rlu9(this.w1s_1);
|
|
3214
3136
|
};
|
|
3215
3137
|
protoOf(RGBInt).toString = function () {
|
|
3216
|
-
return RGBInt__toString_impl_cf5r29(this.
|
|
3138
|
+
return RGBInt__toString_impl_cf5r29(this.w1s_1);
|
|
3217
3139
|
};
|
|
3218
3140
|
protoOf(RGBInt).hashCode = function () {
|
|
3219
|
-
return RGBInt__hashCode_impl_y6bnv4(this.
|
|
3141
|
+
return RGBInt__hashCode_impl_y6bnv4(this.w1s_1);
|
|
3220
3142
|
};
|
|
3221
3143
|
protoOf(RGBInt).equals = function (other) {
|
|
3222
|
-
return RGBInt__equals_impl_qmmpmc(this.
|
|
3144
|
+
return RGBInt__equals_impl_qmmpmc(this.w1s_1, other);
|
|
3223
3145
|
};
|
|
3224
3146
|
function Companion_8() {
|
|
3225
3147
|
Companion_instance_9 = this;
|
|
3226
|
-
this.
|
|
3148
|
+
this.r1s_1 = XYZColorSpaces_getInstance().e1q_1;
|
|
3227
3149
|
}
|
|
3228
3150
|
protoOf(Companion_8).hashCode = function () {
|
|
3229
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
3151
|
+
return hashCode(XYZColorSpaces_getInstance().e1q_1);
|
|
3230
3152
|
};
|
|
3231
3153
|
protoOf(Companion_8).equals = function (other) {
|
|
3232
|
-
return equals(XYZColorSpaces_getInstance().
|
|
3154
|
+
return equals(XYZColorSpaces_getInstance().e1q_1, other);
|
|
3233
3155
|
};
|
|
3234
|
-
protoOf(Companion_8).
|
|
3235
|
-
return this.
|
|
3156
|
+
protoOf(Companion_8).h1p = function (x, y, z, alpha) {
|
|
3157
|
+
return this.r1s_1.h1p(x, y, z, alpha);
|
|
3236
3158
|
};
|
|
3237
|
-
protoOf(Companion_8).
|
|
3238
|
-
return this.
|
|
3159
|
+
protoOf(Companion_8).g1s = function (x, y, z, alpha) {
|
|
3160
|
+
return this.r1s_1.g1s(x, y, z, alpha);
|
|
3239
3161
|
};
|
|
3240
|
-
protoOf(Companion_8).
|
|
3241
|
-
return this.
|
|
3162
|
+
protoOf(Companion_8).l1o = function () {
|
|
3163
|
+
return this.r1s_1.l1o();
|
|
3242
3164
|
};
|
|
3243
|
-
protoOf(Companion_8).
|
|
3244
|
-
return this.
|
|
3165
|
+
protoOf(Companion_8).l2 = function () {
|
|
3166
|
+
return this.r1s_1.l2();
|
|
3245
3167
|
};
|
|
3246
|
-
protoOf(Companion_8).
|
|
3247
|
-
return this.
|
|
3168
|
+
protoOf(Companion_8).m1o = function () {
|
|
3169
|
+
return this.r1s_1.m1o();
|
|
3248
3170
|
};
|
|
3249
|
-
protoOf(Companion_8).
|
|
3250
|
-
return this.
|
|
3171
|
+
protoOf(Companion_8).g1o = function (color) {
|
|
3172
|
+
return this.r1s_1.g1o(color);
|
|
3251
3173
|
};
|
|
3252
|
-
protoOf(Companion_8).
|
|
3253
|
-
return this.
|
|
3174
|
+
protoOf(Companion_8).n1o = function (components) {
|
|
3175
|
+
return this.r1s_1.n1o(components);
|
|
3254
3176
|
};
|
|
3255
3177
|
var Companion_instance_9;
|
|
3256
3178
|
function Companion_getInstance_8() {
|
|
@@ -3259,18 +3181,17 @@
|
|
|
3259
3181
|
return Companion_instance_9;
|
|
3260
3182
|
}
|
|
3261
3183
|
function adaptToM($this, space, m, mi) {
|
|
3262
|
-
if (space.
|
|
3184
|
+
if (space.l1o().equals($this.s1n_1.l1o()))
|
|
3263
3185
|
return $this;
|
|
3264
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
3265
|
-
var tmp1 = $this.
|
|
3266
|
-
var tmp2 = $this.
|
|
3186
|
+
var transform = chromaticAdaptationMatrix(space, $this.s1n_1.l1o().j1r_1, m, mi);
|
|
3187
|
+
var tmp1 = $this.o1n_1;
|
|
3188
|
+
var tmp2 = $this.p1n_1;
|
|
3267
3189
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3268
|
-
var v2 = $this.
|
|
3190
|
+
var v2 = $this.q1n_1;
|
|
3269
3191
|
var tmp4 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
3270
3192
|
var tmp5 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
3271
|
-
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
3272
3193
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp1 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
3273
|
-
return space.
|
|
3194
|
+
return space.h1p(tmp4, tmp5, zz, $this.r1n_1);
|
|
3274
3195
|
}
|
|
3275
3196
|
function toLAB$f(t) {
|
|
3276
3197
|
var tmp;
|
|
@@ -3284,100 +3205,99 @@
|
|
|
3284
3205
|
}
|
|
3285
3206
|
function XYZ(x, y, z, alpha, space) {
|
|
3286
3207
|
Companion_getInstance_8();
|
|
3287
|
-
this.
|
|
3288
|
-
this.
|
|
3289
|
-
this.
|
|
3290
|
-
this.
|
|
3291
|
-
this.
|
|
3208
|
+
this.o1n_1 = x;
|
|
3209
|
+
this.p1n_1 = y;
|
|
3210
|
+
this.q1n_1 = z;
|
|
3211
|
+
this.r1n_1 = alpha;
|
|
3212
|
+
this.s1n_1 = space;
|
|
3292
3213
|
}
|
|
3293
|
-
protoOf(XYZ).
|
|
3294
|
-
return this.
|
|
3214
|
+
protoOf(XYZ).d1n = function () {
|
|
3215
|
+
return this.r1n_1;
|
|
3295
3216
|
};
|
|
3296
|
-
protoOf(XYZ).
|
|
3297
|
-
return this.
|
|
3217
|
+
protoOf(XYZ).e1n = function () {
|
|
3218
|
+
return this.s1n_1;
|
|
3298
3219
|
};
|
|
3299
|
-
protoOf(XYZ).
|
|
3220
|
+
protoOf(XYZ).g1q = function (space) {
|
|
3300
3221
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
3301
3222
|
};
|
|
3302
|
-
protoOf(XYZ).
|
|
3303
|
-
var _destruct__k2r9zo = this.
|
|
3304
|
-
var x = _destruct__k2r9zo.
|
|
3305
|
-
var y = _destruct__k2r9zo.
|
|
3306
|
-
var z = _destruct__k2r9zo.
|
|
3307
|
-
var f = space.
|
|
3223
|
+
protoOf(XYZ).x1s = function (space) {
|
|
3224
|
+
var _destruct__k2r9zo = this.g1q(XYZColorSpace_0(space.l1o()));
|
|
3225
|
+
var x = _destruct__k2r9zo.ye();
|
|
3226
|
+
var y = _destruct__k2r9zo.ze();
|
|
3227
|
+
var z = _destruct__k2r9zo.y1t();
|
|
3228
|
+
var f = space.v1r();
|
|
3308
3229
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3309
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
3230
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.u1s());
|
|
3310
3231
|
var tmp4 = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
3311
3232
|
var tmp5 = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
3312
|
-
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
3313
3233
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
3314
|
-
return space.
|
|
3234
|
+
return space.h1p(f.f1s(tmp4), f.f1s(tmp5), f.f1s(b), this.r1n_1);
|
|
3315
3235
|
};
|
|
3316
|
-
protoOf(XYZ).
|
|
3317
|
-
return this.
|
|
3236
|
+
protoOf(XYZ).f1n = function () {
|
|
3237
|
+
return this.x1s(RGBColorSpaces_getInstance().s1p_1);
|
|
3318
3238
|
};
|
|
3319
|
-
protoOf(XYZ).
|
|
3320
|
-
var fx = toLAB$f(this.
|
|
3321
|
-
var fy = toLAB$f(this.
|
|
3322
|
-
var fz = toLAB$f(this.
|
|
3239
|
+
protoOf(XYZ).n1n = function () {
|
|
3240
|
+
var fx = toLAB$f(this.o1n_1 / this.s1n_1.l1o().j1r_1.l1s());
|
|
3241
|
+
var fy = toLAB$f(this.p1n_1 / this.s1n_1.l1o().j1r_1.k1s_1);
|
|
3242
|
+
var fz = toLAB$f(this.q1n_1 / this.s1n_1.l1o().j1r_1.m1s());
|
|
3323
3243
|
var l = 116 * fy - 16;
|
|
3324
3244
|
var a = 500 * (fx - fy);
|
|
3325
3245
|
var b = 200 * (fy - fz);
|
|
3326
|
-
return LABColorSpace_0(this.
|
|
3246
|
+
return LABColorSpace_0(this.s1n_1.l1o()).g1s(l, a, b, this.r1n_1);
|
|
3327
3247
|
};
|
|
3328
|
-
protoOf(XYZ).
|
|
3248
|
+
protoOf(XYZ).a1o = function () {
|
|
3329
3249
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toD65' call
|
|
3330
3250
|
var tmp;
|
|
3331
|
-
if (equals(this.
|
|
3332
|
-
var l = +0.8189330101 * this.
|
|
3333
|
-
var m = +0.0329845436 * this.
|
|
3334
|
-
var s = +0.0482003018 * this.
|
|
3251
|
+
if (equals(this.s1n_1, XYZColorSpaces_getInstance().e1q_1)) {
|
|
3252
|
+
var l = +0.8189330101 * this.o1n_1 + 0.3618667424 * this.p1n_1 - 0.1288597137 * this.q1n_1;
|
|
3253
|
+
var m = +0.0329845436 * this.o1n_1 + 0.9293118715 * this.p1n_1 + 0.0361456387 * this.q1n_1;
|
|
3254
|
+
var s = +0.0482003018 * this.o1n_1 + 0.2643662691 * this.p1n_1 + 0.633851707 * this.q1n_1;
|
|
3335
3255
|
// Inline function 'kotlin.math.cbrt' call
|
|
3336
3256
|
var ll = Math.cbrt(l);
|
|
3337
3257
|
// Inline function 'kotlin.math.cbrt' call
|
|
3338
3258
|
var mm = Math.cbrt(m);
|
|
3339
3259
|
// Inline function 'kotlin.math.cbrt' call
|
|
3340
3260
|
var ss = Math.cbrt(s);
|
|
3341
|
-
return Oklab_init_$Create$(+0.2104542553 * ll + 0.793617785 * mm - 0.0040720468 * ss, +1.9779984951 * ll - 2.428592205 * mm + 0.4505937099 * ss, +0.0259040371 * ll + 0.7827717662 * mm - 0.808675766 * ss, this.
|
|
3261
|
+
return Oklab_init_$Create$(+0.2104542553 * ll + 0.793617785 * mm - 0.0040720468 * ss, +1.9779984951 * ll - 2.428592205 * mm + 0.4505937099 * ss, +0.0259040371 * ll + 0.7827717662 * mm - 0.808675766 * ss, this.r1n_1);
|
|
3342
3262
|
} else {
|
|
3343
|
-
var $this$toD65 = this.
|
|
3344
|
-
var l_0 = +0.8189330101 * $this$toD65.
|
|
3345
|
-
var m_0 = +0.0329845436 * $this$toD65.
|
|
3346
|
-
var s_0 = +0.0482003018 * $this$toD65.
|
|
3263
|
+
var $this$toD65 = this.g1q(XYZColorSpaces_getInstance().e1q_1);
|
|
3264
|
+
var l_0 = +0.8189330101 * $this$toD65.o1n_1 + 0.3618667424 * $this$toD65.p1n_1 - 0.1288597137 * $this$toD65.q1n_1;
|
|
3265
|
+
var m_0 = +0.0329845436 * $this$toD65.o1n_1 + 0.9293118715 * $this$toD65.p1n_1 + 0.0361456387 * $this$toD65.q1n_1;
|
|
3266
|
+
var s_0 = +0.0482003018 * $this$toD65.o1n_1 + 0.2643662691 * $this$toD65.p1n_1 + 0.633851707 * $this$toD65.q1n_1;
|
|
3347
3267
|
// Inline function 'kotlin.math.cbrt' call
|
|
3348
3268
|
var ll_0 = Math.cbrt(l_0);
|
|
3349
3269
|
// Inline function 'kotlin.math.cbrt' call
|
|
3350
3270
|
var mm_0 = Math.cbrt(m_0);
|
|
3351
3271
|
// Inline function 'kotlin.math.cbrt' call
|
|
3352
3272
|
var ss_0 = Math.cbrt(s_0);
|
|
3353
|
-
return Oklab_init_$Create$(+0.2104542553 * ll_0 + 0.793617785 * mm_0 - 0.0040720468 * ss_0, +1.9779984951 * ll_0 - 2.428592205 * mm_0 + 0.4505937099 * ss_0, +0.0259040371 * ll_0 + 0.7827717662 * mm_0 - 0.808675766 * ss_0, $this$toD65.
|
|
3273
|
+
return Oklab_init_$Create$(+0.2104542553 * ll_0 + 0.793617785 * mm_0 - 0.0040720468 * ss_0, +1.9779984951 * ll_0 - 2.428592205 * mm_0 + 0.4505937099 * ss_0, +0.0259040371 * ll_0 + 0.7827717662 * mm_0 - 0.808675766 * ss_0, $this$toD65.r1n_1);
|
|
3354
3274
|
}
|
|
3355
3275
|
};
|
|
3356
|
-
protoOf(XYZ).
|
|
3276
|
+
protoOf(XYZ).m1n = function () {
|
|
3357
3277
|
return this;
|
|
3358
3278
|
};
|
|
3359
|
-
protoOf(XYZ).
|
|
3279
|
+
protoOf(XYZ).p5 = function () {
|
|
3360
3280
|
// Inline function 'kotlin.floatArrayOf' call
|
|
3361
|
-
return new Float32Array([this.
|
|
3281
|
+
return new Float32Array([this.o1n_1, this.p1n_1, this.q1n_1, this.r1n_1]);
|
|
3362
3282
|
};
|
|
3363
|
-
protoOf(XYZ).
|
|
3364
|
-
return this.
|
|
3283
|
+
protoOf(XYZ).ye = function () {
|
|
3284
|
+
return this.o1n_1;
|
|
3365
3285
|
};
|
|
3366
|
-
protoOf(XYZ).
|
|
3367
|
-
return this.
|
|
3286
|
+
protoOf(XYZ).ze = function () {
|
|
3287
|
+
return this.p1n_1;
|
|
3368
3288
|
};
|
|
3369
|
-
protoOf(XYZ).
|
|
3370
|
-
return this.
|
|
3289
|
+
protoOf(XYZ).y1t = function () {
|
|
3290
|
+
return this.q1n_1;
|
|
3371
3291
|
};
|
|
3372
3292
|
protoOf(XYZ).toString = function () {
|
|
3373
|
-
return 'XYZ(x=' + this.
|
|
3293
|
+
return 'XYZ(x=' + this.o1n_1 + ', y=' + this.p1n_1 + ', z=' + this.q1n_1 + ', alpha=' + this.r1n_1 + ', space=' + toString(this.s1n_1) + ')';
|
|
3374
3294
|
};
|
|
3375
3295
|
protoOf(XYZ).hashCode = function () {
|
|
3376
|
-
var result = getNumberHashCode(this.
|
|
3377
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3378
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3379
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3380
|
-
result = imul(result, 31) + hashCode(this.
|
|
3296
|
+
var result = getNumberHashCode(this.o1n_1);
|
|
3297
|
+
result = imul(result, 31) + getNumberHashCode(this.p1n_1) | 0;
|
|
3298
|
+
result = imul(result, 31) + getNumberHashCode(this.q1n_1) | 0;
|
|
3299
|
+
result = imul(result, 31) + getNumberHashCode(this.r1n_1) | 0;
|
|
3300
|
+
result = imul(result, 31) + hashCode(this.s1n_1) | 0;
|
|
3381
3301
|
return result;
|
|
3382
3302
|
};
|
|
3383
3303
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -3386,27 +3306,27 @@
|
|
|
3386
3306
|
if (!(other instanceof XYZ))
|
|
3387
3307
|
return false;
|
|
3388
3308
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
3389
|
-
if (!equals(this.
|
|
3309
|
+
if (!equals(this.o1n_1, tmp0_other_with_cast.o1n_1))
|
|
3390
3310
|
return false;
|
|
3391
|
-
if (!equals(this.
|
|
3311
|
+
if (!equals(this.p1n_1, tmp0_other_with_cast.p1n_1))
|
|
3392
3312
|
return false;
|
|
3393
|
-
if (!equals(this.
|
|
3313
|
+
if (!equals(this.q1n_1, tmp0_other_with_cast.q1n_1))
|
|
3394
3314
|
return false;
|
|
3395
|
-
if (!equals(this.
|
|
3315
|
+
if (!equals(this.r1n_1, tmp0_other_with_cast.r1n_1))
|
|
3396
3316
|
return false;
|
|
3397
|
-
if (!equals(this.
|
|
3317
|
+
if (!equals(this.s1n_1, tmp0_other_with_cast.s1n_1))
|
|
3398
3318
|
return false;
|
|
3399
3319
|
return true;
|
|
3400
3320
|
};
|
|
3401
3321
|
function XYZColorSpace() {
|
|
3402
3322
|
}
|
|
3403
3323
|
function XYZColorSpace_0(whitePoint) {
|
|
3404
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
3324
|
+
return whitePoint.equals(Illuminant_getInstance().m1q_1) ? XYZColorSpaces_getInstance().e1q_1 : whitePoint.equals(Illuminant_getInstance().k1q_1) ? XYZColorSpaces_getInstance().f1q_1 : new XYZColorSpaceImpl(whitePoint);
|
|
3405
3325
|
}
|
|
3406
3326
|
function XYZColorSpaces() {
|
|
3407
3327
|
XYZColorSpaces_instance = this;
|
|
3408
|
-
this.
|
|
3409
|
-
this.
|
|
3328
|
+
this.e1q_1 = new XYZColorSpaceImpl(Illuminant_getInstance().m1q_1);
|
|
3329
|
+
this.f1q_1 = new XYZColorSpaceImpl(Illuminant_getInstance().k1q_1);
|
|
3410
3330
|
}
|
|
3411
3331
|
var XYZColorSpaces_instance;
|
|
3412
3332
|
function XYZColorSpaces_getInstance() {
|
|
@@ -3417,40 +3337,38 @@
|
|
|
3417
3337
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
3418
3338
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
3419
3339
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
3420
|
-
var dstWp = _this__u8e3s4.
|
|
3421
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
3422
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
3340
|
+
var dstWp = _this__u8e3s4.l1o().j1r_1;
|
|
3341
|
+
var src = dot_0(xyzToLms, srcWp.l1s(), srcWp.k1s_1, srcWp.m1s());
|
|
3342
|
+
var dst = dot_0(xyzToLms, dstWp.l1s(), dstWp.k1s_1, dstWp.m1s());
|
|
3423
3343
|
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
|
|
3424
3344
|
}
|
|
3425
3345
|
function XYZColorSpaceImpl(whitePoint) {
|
|
3426
|
-
this.
|
|
3427
|
-
this.
|
|
3346
|
+
this.z1t_1 = whitePoint;
|
|
3347
|
+
this.a1u_1 = zeroOneComponentInfo('XYZ');
|
|
3428
3348
|
}
|
|
3429
|
-
protoOf(XYZColorSpaceImpl).
|
|
3430
|
-
return this.
|
|
3349
|
+
protoOf(XYZColorSpaceImpl).l1o = function () {
|
|
3350
|
+
return this.z1t_1;
|
|
3431
3351
|
};
|
|
3432
|
-
protoOf(XYZColorSpaceImpl).
|
|
3352
|
+
protoOf(XYZColorSpaceImpl).l2 = function () {
|
|
3433
3353
|
return 'XYZ';
|
|
3434
3354
|
};
|
|
3435
|
-
protoOf(XYZColorSpaceImpl).
|
|
3436
|
-
return this.
|
|
3355
|
+
protoOf(XYZColorSpaceImpl).m1o = function () {
|
|
3356
|
+
return this.a1u_1;
|
|
3437
3357
|
};
|
|
3438
|
-
protoOf(XYZColorSpaceImpl).
|
|
3439
|
-
return color.
|
|
3358
|
+
protoOf(XYZColorSpaceImpl).g1o = function (color) {
|
|
3359
|
+
return color.m1n().g1q(this);
|
|
3440
3360
|
};
|
|
3441
|
-
protoOf(XYZColorSpaceImpl).
|
|
3361
|
+
protoOf(XYZColorSpaceImpl).n1o = function (components) {
|
|
3442
3362
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
3443
3363
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
3444
|
-
var size = this.
|
|
3364
|
+
var size = this.m1o().m();
|
|
3445
3365
|
var containsLower = size - 1 | 0;
|
|
3446
3366
|
var containsArg = components.length;
|
|
3447
3367
|
// Inline function 'kotlin.require' call
|
|
3448
3368
|
if (!(containsLower <= containsArg ? containsArg <= size : false)) {
|
|
3449
|
-
// Inline function 'com.github.ajalt.colormath.internal.withValidComps.<anonymous>' call
|
|
3450
3369
|
var message = 'Invalid component array length: ' + components.length + ', expected ' + (size - 1 | 0) + ' or ' + size;
|
|
3451
3370
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3452
3371
|
}
|
|
3453
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>' call
|
|
3454
3372
|
var tmp3 = components[0];
|
|
3455
3373
|
var tmp4 = components[1];
|
|
3456
3374
|
var tmp5 = components[2];
|
|
@@ -3459,26 +3377,24 @@
|
|
|
3459
3377
|
if (0 <= 3 ? 3 <= (components.length - 1 | 0) : false) {
|
|
3460
3378
|
tmp = components[3];
|
|
3461
3379
|
} else {
|
|
3462
|
-
// Inline function 'com.github.ajalt.colormath.internal.doCreate.<anonymous>.<anonymous>' call
|
|
3463
3380
|
tmp = 1.0;
|
|
3464
3381
|
}
|
|
3465
|
-
// Inline function 'com.github.ajalt.colormath.model.XYZColorSpaceImpl.create.stub_for_inlining' call
|
|
3466
3382
|
var p3 = tmp;
|
|
3467
|
-
return this.
|
|
3383
|
+
return this.h1p(tmp3, tmp4, tmp5, p3);
|
|
3468
3384
|
};
|
|
3469
3385
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
3470
|
-
return 'XYZColorSpace(' + this.
|
|
3386
|
+
return 'XYZColorSpace(' + this.z1t_1.toString() + ')';
|
|
3471
3387
|
};
|
|
3472
|
-
protoOf(XYZColorSpaceImpl).
|
|
3388
|
+
protoOf(XYZColorSpaceImpl).h1p = function (x, y, z, alpha) {
|
|
3473
3389
|
return new XYZ(x, y, z, alpha, this);
|
|
3474
3390
|
};
|
|
3475
3391
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
3476
|
-
return this.
|
|
3392
|
+
return this.z1t_1.hashCode();
|
|
3477
3393
|
};
|
|
3478
3394
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
3479
3395
|
var tmp;
|
|
3480
3396
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
3481
|
-
tmp = this.
|
|
3397
|
+
tmp = this.z1t_1.equals(other.l1o());
|
|
3482
3398
|
} else {
|
|
3483
3399
|
tmp = false;
|
|
3484
3400
|
}
|
|
@@ -3494,26 +3410,26 @@
|
|
|
3494
3410
|
}
|
|
3495
3411
|
function xyY(x, y, Y) {
|
|
3496
3412
|
Y = Y === VOID ? 1.0 : Y;
|
|
3497
|
-
this.
|
|
3498
|
-
this.
|
|
3499
|
-
this.
|
|
3413
|
+
this.i1s_1 = x;
|
|
3414
|
+
this.j1s_1 = y;
|
|
3415
|
+
this.k1s_1 = Y;
|
|
3500
3416
|
}
|
|
3501
|
-
protoOf(xyY).
|
|
3502
|
-
return 1 - this.
|
|
3417
|
+
protoOf(xyY).u1t = function () {
|
|
3418
|
+
return 1 - this.i1s_1 - this.j1s_1;
|
|
3503
3419
|
};
|
|
3504
|
-
protoOf(xyY).
|
|
3505
|
-
return this.
|
|
3420
|
+
protoOf(xyY).l1s = function () {
|
|
3421
|
+
return this.i1s_1 * this.k1s_1 / this.j1s_1;
|
|
3506
3422
|
};
|
|
3507
|
-
protoOf(xyY).
|
|
3508
|
-
return (1 - this.
|
|
3423
|
+
protoOf(xyY).m1s = function () {
|
|
3424
|
+
return (1 - this.i1s_1 - this.j1s_1) * this.k1s_1 / this.j1s_1;
|
|
3509
3425
|
};
|
|
3510
3426
|
protoOf(xyY).toString = function () {
|
|
3511
|
-
return 'xyY(x=' + this.
|
|
3427
|
+
return 'xyY(x=' + this.i1s_1 + ', y=' + this.j1s_1 + ', Y=' + this.k1s_1 + ')';
|
|
3512
3428
|
};
|
|
3513
3429
|
protoOf(xyY).hashCode = function () {
|
|
3514
|
-
var result = getNumberHashCode(this.
|
|
3515
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3516
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3430
|
+
var result = getNumberHashCode(this.i1s_1);
|
|
3431
|
+
result = imul(result, 31) + getNumberHashCode(this.j1s_1) | 0;
|
|
3432
|
+
result = imul(result, 31) + getNumberHashCode(this.k1s_1) | 0;
|
|
3517
3433
|
return result;
|
|
3518
3434
|
};
|
|
3519
3435
|
protoOf(xyY).equals = function (other) {
|
|
@@ -3522,67 +3438,67 @@
|
|
|
3522
3438
|
if (!(other instanceof xyY))
|
|
3523
3439
|
return false;
|
|
3524
3440
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
3525
|
-
if (!equals(this.
|
|
3441
|
+
if (!equals(this.i1s_1, tmp0_other_with_cast.i1s_1))
|
|
3526
3442
|
return false;
|
|
3527
|
-
if (!equals(this.
|
|
3443
|
+
if (!equals(this.j1s_1, tmp0_other_with_cast.j1s_1))
|
|
3528
3444
|
return false;
|
|
3529
|
-
if (!equals(this.
|
|
3445
|
+
if (!equals(this.k1s_1, tmp0_other_with_cast.k1s_1))
|
|
3530
3446
|
return false;
|
|
3531
3447
|
return true;
|
|
3532
3448
|
};
|
|
3533
3449
|
//region block: post-declaration
|
|
3534
|
-
protoOf(HSL).
|
|
3535
|
-
protoOf(HSL).
|
|
3536
|
-
protoOf(HSL).
|
|
3537
|
-
protoOf(HSL).
|
|
3538
|
-
protoOf(HSL).
|
|
3539
|
-
protoOf(HSL).
|
|
3540
|
-
protoOf(HWB).
|
|
3541
|
-
protoOf(HWB).
|
|
3542
|
-
protoOf(HWB).
|
|
3543
|
-
protoOf(HWB).
|
|
3544
|
-
protoOf(HWB).
|
|
3545
|
-
protoOf(HWB).
|
|
3546
|
-
protoOf(LAB).
|
|
3547
|
-
protoOf(LAB).
|
|
3548
|
-
protoOf(LAB).
|
|
3549
|
-
protoOf(LAB).
|
|
3550
|
-
protoOf(LABColorSpaceImpl).
|
|
3551
|
-
protoOf(LCHab).
|
|
3552
|
-
protoOf(LCHab).
|
|
3553
|
-
protoOf(LCHab).
|
|
3554
|
-
protoOf(LCHab).
|
|
3555
|
-
protoOf(Oklab).
|
|
3556
|
-
protoOf(Oklab).
|
|
3557
|
-
protoOf(Oklab).
|
|
3558
|
-
protoOf(Oklab).
|
|
3559
|
-
protoOf(Oklch).
|
|
3560
|
-
protoOf(Oklch).
|
|
3561
|
-
protoOf(Oklch).
|
|
3562
|
-
protoOf(Oklch).
|
|
3563
|
-
protoOf(Companion_6).
|
|
3564
|
-
protoOf(RGB).
|
|
3565
|
-
protoOf(RGB).
|
|
3566
|
-
protoOf(RGB).
|
|
3567
|
-
protoOf(SRGB).
|
|
3568
|
-
protoOf(RGBColorSpaceImpl).
|
|
3569
|
-
protoOf(RGBColorSpaceImpl).
|
|
3570
|
-
protoOf(RGBColorSpaceImpl).
|
|
3571
|
-
protoOf(RGBColorSpaceImpl).
|
|
3572
|
-
protoOf(RGBInt).
|
|
3573
|
-
protoOf(RGBInt).
|
|
3574
|
-
protoOf(RGBInt).
|
|
3575
|
-
protoOf(RGBInt).
|
|
3576
|
-
protoOf(RGBInt).
|
|
3577
|
-
protoOf(RGBInt).
|
|
3578
|
-
protoOf(RGBInt).
|
|
3579
|
-
protoOf(Companion_8).
|
|
3580
|
-
protoOf(XYZ).
|
|
3581
|
-
protoOf(XYZ).
|
|
3582
|
-
protoOf(XYZ).
|
|
3583
|
-
protoOf(XYZ).
|
|
3584
|
-
protoOf(XYZColorSpaceImpl).
|
|
3585
|
-
protoOf(XYZColorSpaceImpl).
|
|
3450
|
+
protoOf(HSL).m1n = toXYZ;
|
|
3451
|
+
protoOf(HSL).n1n = toLAB;
|
|
3452
|
+
protoOf(HSL).t1n = toLCHab;
|
|
3453
|
+
protoOf(HSL).z1n = toHWB;
|
|
3454
|
+
protoOf(HSL).a1o = toOklab;
|
|
3455
|
+
protoOf(HSL).b1o = toOklch;
|
|
3456
|
+
protoOf(HWB).g1n = toHSL;
|
|
3457
|
+
protoOf(HWB).m1n = toXYZ;
|
|
3458
|
+
protoOf(HWB).n1n = toLAB;
|
|
3459
|
+
protoOf(HWB).t1n = toLCHab;
|
|
3460
|
+
protoOf(HWB).a1o = toOklab;
|
|
3461
|
+
protoOf(HWB).b1o = toOklch;
|
|
3462
|
+
protoOf(LAB).g1n = toHSL;
|
|
3463
|
+
protoOf(LAB).z1n = toHWB;
|
|
3464
|
+
protoOf(LAB).a1o = toOklab;
|
|
3465
|
+
protoOf(LAB).b1o = toOklch;
|
|
3466
|
+
protoOf(LABColorSpaceImpl).g1s = invoke;
|
|
3467
|
+
protoOf(LCHab).g1n = toHSL;
|
|
3468
|
+
protoOf(LCHab).z1n = toHWB;
|
|
3469
|
+
protoOf(LCHab).a1o = toOklab;
|
|
3470
|
+
protoOf(LCHab).b1o = toOklch;
|
|
3471
|
+
protoOf(Oklab).g1n = toHSL;
|
|
3472
|
+
protoOf(Oklab).n1n = toLAB;
|
|
3473
|
+
protoOf(Oklab).t1n = toLCHab;
|
|
3474
|
+
protoOf(Oklab).z1n = toHWB;
|
|
3475
|
+
protoOf(Oklch).g1n = toHSL;
|
|
3476
|
+
protoOf(Oklch).n1n = toLAB;
|
|
3477
|
+
protoOf(Oklch).t1n = toLCHab;
|
|
3478
|
+
protoOf(Oklch).z1n = toHWB;
|
|
3479
|
+
protoOf(Companion_6).k1r = from255$default;
|
|
3480
|
+
protoOf(RGB).n1n = toLAB;
|
|
3481
|
+
protoOf(RGB).t1n = toLCHab;
|
|
3482
|
+
protoOf(RGB).b1o = toOklch;
|
|
3483
|
+
protoOf(SRGB).k1r = from255$default;
|
|
3484
|
+
protoOf(RGBColorSpaceImpl).g1s = invoke_0;
|
|
3485
|
+
protoOf(RGBColorSpaceImpl).g1p = invoke_1;
|
|
3486
|
+
protoOf(RGBColorSpaceImpl).l1r = from255;
|
|
3487
|
+
protoOf(RGBColorSpaceImpl).k1r = from255$default;
|
|
3488
|
+
protoOf(RGBInt).g1n = toHSL;
|
|
3489
|
+
protoOf(RGBInt).m1n = toXYZ;
|
|
3490
|
+
protoOf(RGBInt).n1n = toLAB;
|
|
3491
|
+
protoOf(RGBInt).t1n = toLCHab;
|
|
3492
|
+
protoOf(RGBInt).z1n = toHWB;
|
|
3493
|
+
protoOf(RGBInt).a1o = toOklab;
|
|
3494
|
+
protoOf(RGBInt).b1o = toOklch;
|
|
3495
|
+
protoOf(Companion_8).h1s = invoke$default;
|
|
3496
|
+
protoOf(XYZ).g1n = toHSL;
|
|
3497
|
+
protoOf(XYZ).t1n = toLCHab;
|
|
3498
|
+
protoOf(XYZ).z1n = toHWB;
|
|
3499
|
+
protoOf(XYZ).b1o = toOklch;
|
|
3500
|
+
protoOf(XYZColorSpaceImpl).g1s = invoke_2;
|
|
3501
|
+
protoOf(XYZColorSpaceImpl).h1s = invoke$default;
|
|
3586
3502
|
//endregion
|
|
3587
3503
|
//region block: init
|
|
3588
3504
|
Companion_instance_0 = new Companion();
|