@cruglobal/godtools-shared 1.0.2-SNAPSHOT.1545 → 1.0.2-SNAPSHOT.1548
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 -49
- package/Kermit-kermit.js +11 -11
- package/antlr-kotlin-antlr-kotlin-runtime.js +3756 -3463
- package/antlr-kotlin-antlr-kotlin-runtime.js.map +1 -1
- package/colormath-root-colormath.js +875 -875
- package/fluid-locale.js +154 -154
- package/kotlin-js.js +138 -5
- package/kotlin-js.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +623 -516
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +542 -431
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2105 -2096
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +119 -119
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +2 -0
- package/kotlinx-atomicfu.js +20 -20
- package/kotlinx-coroutines-core.js +2147 -2147
- package/package.json +1 -1
|
@@ -14,101 +14,101 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var log2 = Math.log2;
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
19
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
20
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
21
|
-
var toString = kotlin_kotlin.$_$.
|
|
22
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
23
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
24
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.t6;
|
|
18
|
+
var objectMeta = kotlin_kotlin.$_$.s6;
|
|
19
|
+
var setMetadataFor = kotlin_kotlin.$_$.u6;
|
|
20
|
+
var interfaceMeta = kotlin_kotlin.$_$.i6;
|
|
21
|
+
var toString = kotlin_kotlin.$_$.x6;
|
|
22
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
23
|
+
var classMeta = kotlin_kotlin.$_$.y5;
|
|
24
|
+
var emptyMap = kotlin_kotlin.$_$.o3;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.d;
|
|
26
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
27
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
28
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
29
|
-
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.
|
|
30
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
-
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.
|
|
32
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
26
|
+
var Companion_instance = kotlin_kotlin.$_$.m2;
|
|
27
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
28
|
+
var createFailure = kotlin_kotlin.$_$.o9;
|
|
29
|
+
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b2;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.i9;
|
|
31
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
32
|
+
var startsWith = kotlin_kotlin.$_$.h8;
|
|
33
33
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
34
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
35
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
34
|
+
var endsWith = kotlin_kotlin.$_$.t7;
|
|
35
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.d3;
|
|
36
36
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
37
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
38
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
39
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
40
|
-
var get_lastIndex_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
42
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
43
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
44
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
45
|
-
var FloatCompanionObject_instance = kotlin_kotlin.$_$.
|
|
46
|
-
var Enum = kotlin_kotlin.$_$.
|
|
47
|
-
var equals = kotlin_kotlin.$_$.
|
|
48
|
-
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.
|
|
49
|
-
var dropLast_0 = kotlin_kotlin.$_$.
|
|
50
|
-
var joinTo = kotlin_kotlin.$_$.
|
|
51
|
-
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.
|
|
52
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
53
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
54
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
55
|
-
var padStart = kotlin_kotlin.$_$.
|
|
56
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
57
|
-
var trimEnd = kotlin_kotlin.$_$.
|
|
58
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
59
|
-
var joinTo_0 = kotlin_kotlin.$_$.
|
|
60
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
61
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
62
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
37
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.c3;
|
|
38
|
+
var Unit_instance = kotlin_kotlin.$_$.o2;
|
|
39
|
+
var get_lastIndex = kotlin_kotlin.$_$.c4;
|
|
40
|
+
var get_lastIndex_0 = kotlin_kotlin.$_$.e4;
|
|
41
|
+
var dropLast = kotlin_kotlin.$_$.s7;
|
|
42
|
+
var toDouble = kotlin_kotlin.$_$.m8;
|
|
43
|
+
var charSequenceLength = kotlin_kotlin.$_$.x5;
|
|
44
|
+
var coerceIn = kotlin_kotlin.$_$.f7;
|
|
45
|
+
var FloatCompanionObject_instance = kotlin_kotlin.$_$.j2;
|
|
46
|
+
var Enum = kotlin_kotlin.$_$.y8;
|
|
47
|
+
var equals = kotlin_kotlin.$_$.b6;
|
|
48
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
49
|
+
var dropLast_0 = kotlin_kotlin.$_$.m3;
|
|
50
|
+
var joinTo = kotlin_kotlin.$_$.b4;
|
|
51
|
+
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.d2;
|
|
52
|
+
var numberToInt = kotlin_kotlin.$_$.q6;
|
|
53
|
+
var roundToInt = kotlin_kotlin.$_$.z6;
|
|
54
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
55
|
+
var padStart = kotlin_kotlin.$_$.b8;
|
|
56
|
+
var charArrayOf = kotlin_kotlin.$_$.v5;
|
|
57
|
+
var trimEnd = kotlin_kotlin.$_$.t8;
|
|
58
|
+
var isNaN_0 = kotlin_kotlin.$_$.q9;
|
|
59
|
+
var joinTo_0 = kotlin_kotlin.$_$.a4;
|
|
60
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.s9;
|
|
61
|
+
var numberToDouble = kotlin_kotlin.$_$.p6;
|
|
62
|
+
var getStringHashCode = kotlin_kotlin.$_$.g6;
|
|
63
63
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
64
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
65
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
64
|
+
var charSequenceGet = kotlin_kotlin.$_$.w5;
|
|
65
|
+
var toString_0 = kotlin_kotlin.$_$.x1;
|
|
66
66
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
67
|
-
var listOf = kotlin_kotlin.$_$.
|
|
68
|
-
var to = kotlin_kotlin.$_$.
|
|
69
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
70
|
-
var withSign = kotlin_kotlin.$_$.
|
|
71
|
-
var get_PI = kotlin_kotlin.$_$.
|
|
72
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
73
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
74
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
75
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
76
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
77
|
-
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.
|
|
78
|
-
var Char = kotlin_kotlin.$_$.
|
|
79
|
-
var toInt = kotlin_kotlin.$_$.
|
|
80
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
81
|
-
var slice = kotlin_kotlin.$_$.
|
|
82
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
83
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
84
|
-
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.
|
|
85
|
-
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.
|
|
86
|
-
var coerceIn_0 = kotlin_kotlin.$_$.
|
|
87
|
-
var toByte = kotlin_kotlin.$_$.
|
|
88
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
67
|
+
var listOf = kotlin_kotlin.$_$.i4;
|
|
68
|
+
var to = kotlin_kotlin.$_$.x9;
|
|
69
|
+
var mapOf = kotlin_kotlin.$_$.k4;
|
|
70
|
+
var withSign = kotlin_kotlin.$_$.a7;
|
|
71
|
+
var get_PI = kotlin_kotlin.$_$.y6;
|
|
72
|
+
var coerceAtLeast = kotlin_kotlin.$_$.b7;
|
|
73
|
+
var getNumberHashCode = kotlin_kotlin.$_$.e6;
|
|
74
|
+
var hashCode = kotlin_kotlin.$_$.h6;
|
|
75
|
+
var isInterface = kotlin_kotlin.$_$.l6;
|
|
76
|
+
var objectCreate = kotlin_kotlin.$_$.r6;
|
|
77
|
+
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.i2;
|
|
78
|
+
var Char = kotlin_kotlin.$_$.v8;
|
|
79
|
+
var toInt = kotlin_kotlin.$_$.q8;
|
|
80
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.m6;
|
|
81
|
+
var slice = kotlin_kotlin.$_$.d8;
|
|
82
|
+
var contentEquals = kotlin_kotlin.$_$.g3;
|
|
83
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.d7;
|
|
84
|
+
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.e2;
|
|
85
|
+
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.f2;
|
|
86
|
+
var coerceIn_0 = kotlin_kotlin.$_$.g7;
|
|
87
|
+
var toByte = kotlin_kotlin.$_$.v6;
|
|
88
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.c2;
|
|
89
89
|
//endregion
|
|
90
90
|
//region block: pre-declaration
|
|
91
91
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
92
92
|
function toHSL() {
|
|
93
|
-
return this.
|
|
93
|
+
return this.q1k().r1k();
|
|
94
94
|
}
|
|
95
95
|
function toXYZ() {
|
|
96
|
-
return this.
|
|
96
|
+
return this.q1k().x1k();
|
|
97
97
|
}
|
|
98
98
|
function toLAB() {
|
|
99
|
-
return this.
|
|
99
|
+
return this.x1k().y1k();
|
|
100
100
|
}
|
|
101
101
|
function toLCHab() {
|
|
102
|
-
return this.
|
|
102
|
+
return this.y1k().e1l();
|
|
103
103
|
}
|
|
104
104
|
function toHWB() {
|
|
105
|
-
return this.
|
|
105
|
+
return this.q1k().k1l();
|
|
106
106
|
}
|
|
107
107
|
function toOklab() {
|
|
108
|
-
return this.
|
|
108
|
+
return this.x1k().l1l();
|
|
109
109
|
}
|
|
110
110
|
function toOklch() {
|
|
111
|
-
return this.
|
|
111
|
+
return this.l1l().m1l();
|
|
112
112
|
}
|
|
113
113
|
setMetadataFor(Color, 'Color', interfaceMeta);
|
|
114
114
|
setMetadataFor(ColorComponentInfo, 'ColorComponentInfo', classMeta);
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
setMetadataFor(ICtCp, 'ICtCp', classMeta, VOID, [Color]);
|
|
127
127
|
setMetadataFor(PqNonlinearity, 'PqNonlinearity', objectMeta);
|
|
128
128
|
function invoke(l, a, b, alpha) {
|
|
129
|
-
return this.
|
|
129
|
+
return this.s1m(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
|
|
130
130
|
}
|
|
131
131
|
setMetadataFor(LABColorSpace, 'LABColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
132
132
|
setMetadataFor(Companion_2, 'Companion', objectMeta, VOID, [LABColorSpace]);
|
|
@@ -145,14 +145,14 @@
|
|
|
145
145
|
setMetadataFor(GammaTransferFunctions, 'GammaTransferFunctions', classMeta);
|
|
146
146
|
setMetadataFor(LinearTransferFunctions, 'LinearTransferFunctions', objectMeta);
|
|
147
147
|
function invoke_0(r, g, b, alpha) {
|
|
148
|
-
return this.
|
|
148
|
+
return this.s1m(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
149
149
|
}
|
|
150
150
|
function from255(r, g, b, alpha) {
|
|
151
|
-
return this.
|
|
151
|
+
return this.s1m(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
152
152
|
}
|
|
153
153
|
function from255$default(r, g, b, alpha, $super) {
|
|
154
154
|
alpha = alpha === VOID ? 255 : alpha;
|
|
155
|
-
return $super === VOID ? this.
|
|
155
|
+
return $super === VOID ? this.w1o(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
156
156
|
}
|
|
157
157
|
function invoke_1(hex) {
|
|
158
158
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
} else {
|
|
169
169
|
tmp_2 = 255;
|
|
170
170
|
}
|
|
171
|
-
return this.
|
|
171
|
+
return this.w1o(tmp, tmp_0, tmp_1, tmp_2);
|
|
172
172
|
}
|
|
173
173
|
setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
174
174
|
setMetadataFor(Companion_6, 'Companion', objectMeta, VOID, [RGBColorSpace]);
|
|
@@ -183,11 +183,11 @@
|
|
|
183
183
|
setMetadataFor(BT709TransferFunctions, 'BT709TransferFunctions', objectMeta);
|
|
184
184
|
setMetadataFor(ROMMTransferFunctions, 'ROMMTransferFunctions', objectMeta);
|
|
185
185
|
function invoke_2(x, y, z, alpha) {
|
|
186
|
-
return this.
|
|
186
|
+
return this.s1m(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
|
|
187
187
|
}
|
|
188
188
|
function invoke$default(x, y, z, alpha, $super) {
|
|
189
189
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
190
|
-
return $super === VOID ? this.
|
|
190
|
+
return $super === VOID ? this.q1p(x, y, z, alpha) : invoke_2(x, y, z, alpha);
|
|
191
191
|
}
|
|
192
192
|
setMetadataFor(XYZColorSpace, 'XYZColorSpace', interfaceMeta, VOID, [WhitePointColorSpace]);
|
|
193
193
|
setMetadataFor(Companion_7, 'Companion', objectMeta, VOID, [XYZColorSpace]);
|
|
@@ -205,16 +205,16 @@
|
|
|
205
205
|
function Color() {
|
|
206
206
|
}
|
|
207
207
|
function convertTo(_this__u8e3s4, space) {
|
|
208
|
-
return space.
|
|
208
|
+
return space.r1l(_this__u8e3s4);
|
|
209
209
|
}
|
|
210
210
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
this.
|
|
214
|
-
this.
|
|
211
|
+
this.s1l_1 = name;
|
|
212
|
+
this.t1l_1 = isPolar;
|
|
213
|
+
this.u1l_1 = min;
|
|
214
|
+
this.v1l_1 = max;
|
|
215
215
|
// Inline function 'kotlin.require' call
|
|
216
216
|
// Inline function 'kotlin.contracts.contract' call
|
|
217
|
-
if (!(this.
|
|
217
|
+
if (!(this.u1l_1 <= this.v1l_1)) {
|
|
218
218
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
219
219
|
var message = 'min must be less than or equal to max';
|
|
220
220
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
}
|
|
236
236
|
function parseOrNull(_this__u8e3s4, color_0, customColorSpaces) {
|
|
237
237
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
238
|
-
var keywordColor = CssColors_getInstance().
|
|
238
|
+
var keywordColor = CssColors_getInstance().z1l_1.q2(color_0);
|
|
239
239
|
var tmp;
|
|
240
240
|
if (!(keywordColor == null)) {
|
|
241
241
|
tmp = keywordColor;
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
try {
|
|
247
247
|
// Inline function 'kotlin.Companion.success' call
|
|
248
248
|
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
249
|
-
var value = Companion_getInstance_6().
|
|
249
|
+
var value = Companion_getInstance_6().r1m(color_0);
|
|
250
250
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
251
251
|
} catch ($p) {
|
|
252
252
|
var tmp_1;
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
}
|
|
270
270
|
tmp = tmp_2;
|
|
271
271
|
} else {
|
|
272
|
-
var tmp0_safe_receiver = PATTERNS_getInstance().
|
|
272
|
+
var tmp0_safe_receiver = PATTERNS_getInstance().g1m_1.l8(color_0);
|
|
273
273
|
var tmp_4;
|
|
274
274
|
if (tmp0_safe_receiver == null) {
|
|
275
275
|
tmp_4 = null;
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
var tmp2_elvis_lhs = tmp_4;
|
|
283
283
|
var tmp_5;
|
|
284
284
|
if (tmp2_elvis_lhs == null) {
|
|
285
|
-
var tmp1_safe_receiver = PATTERNS_getInstance().
|
|
285
|
+
var tmp1_safe_receiver = PATTERNS_getInstance().h1m_1.l8(color_0);
|
|
286
286
|
var tmp_6;
|
|
287
287
|
if (tmp1_safe_receiver == null) {
|
|
288
288
|
tmp_6 = null;
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
var tmp4_elvis_lhs = tmp_5;
|
|
300
300
|
var tmp_7;
|
|
301
301
|
if (tmp4_elvis_lhs == null) {
|
|
302
|
-
var tmp3_safe_receiver = PATTERNS_getInstance().
|
|
302
|
+
var tmp3_safe_receiver = PATTERNS_getInstance().i1m_1.l8(color_0);
|
|
303
303
|
var tmp_8;
|
|
304
304
|
if (tmp3_safe_receiver == null) {
|
|
305
305
|
tmp_8 = null;
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
var tmp6_elvis_lhs = tmp_7;
|
|
317
317
|
var tmp_9;
|
|
318
318
|
if (tmp6_elvis_lhs == null) {
|
|
319
|
-
var tmp5_safe_receiver = PATTERNS_getInstance().
|
|
319
|
+
var tmp5_safe_receiver = PATTERNS_getInstance().j1m_1.l8(color_0);
|
|
320
320
|
var tmp_10;
|
|
321
321
|
if (tmp5_safe_receiver == null) {
|
|
322
322
|
tmp_10 = null;
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
var tmp8_elvis_lhs = tmp_9;
|
|
334
334
|
var tmp_11;
|
|
335
335
|
if (tmp8_elvis_lhs == null) {
|
|
336
|
-
var tmp7_safe_receiver = PATTERNS_getInstance().
|
|
336
|
+
var tmp7_safe_receiver = PATTERNS_getInstance().k1m_1.l8(color_0);
|
|
337
337
|
var tmp_12;
|
|
338
338
|
if (tmp7_safe_receiver == null) {
|
|
339
339
|
tmp_12 = null;
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
var tmp10_elvis_lhs = tmp_11;
|
|
351
351
|
var tmp_13;
|
|
352
352
|
if (tmp10_elvis_lhs == null) {
|
|
353
|
-
var tmp9_safe_receiver = PATTERNS_getInstance().
|
|
353
|
+
var tmp9_safe_receiver = PATTERNS_getInstance().l1m_1.l8(color_0);
|
|
354
354
|
var tmp_14;
|
|
355
355
|
if (tmp9_safe_receiver == null) {
|
|
356
356
|
tmp_14 = null;
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
var tmp12_elvis_lhs = tmp_13;
|
|
368
368
|
var tmp_15;
|
|
369
369
|
if (tmp12_elvis_lhs == null) {
|
|
370
|
-
var tmp11_safe_receiver = PATTERNS_getInstance().
|
|
370
|
+
var tmp11_safe_receiver = PATTERNS_getInstance().m1m_1.l8(color_0);
|
|
371
371
|
var tmp_16;
|
|
372
372
|
if (tmp11_safe_receiver == null) {
|
|
373
373
|
tmp_16 = null;
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
var tmp14_elvis_lhs = tmp_15;
|
|
385
385
|
var tmp_17;
|
|
386
386
|
if (tmp14_elvis_lhs == null) {
|
|
387
|
-
var tmp13_safe_receiver = PATTERNS_getInstance().
|
|
387
|
+
var tmp13_safe_receiver = PATTERNS_getInstance().n1m_1.l8(color_0);
|
|
388
388
|
var tmp_18;
|
|
389
389
|
if (tmp13_safe_receiver == null) {
|
|
390
390
|
tmp_18 = null;
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
var tmp16_elvis_lhs = tmp_17;
|
|
402
402
|
var tmp_19;
|
|
403
403
|
if (tmp16_elvis_lhs == null) {
|
|
404
|
-
var tmp15_safe_receiver = PATTERNS_getInstance().
|
|
404
|
+
var tmp15_safe_receiver = PATTERNS_getInstance().o1m_1.l8(color_0);
|
|
405
405
|
var tmp_20;
|
|
406
406
|
if (tmp15_safe_receiver == null) {
|
|
407
407
|
tmp_20 = null;
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
var tmp18_elvis_lhs = tmp_19;
|
|
419
419
|
var tmp_21;
|
|
420
420
|
if (tmp18_elvis_lhs == null) {
|
|
421
|
-
var tmp17_safe_receiver = PATTERNS_getInstance().
|
|
421
|
+
var tmp17_safe_receiver = PATTERNS_getInstance().p1m_1.l8(color_0);
|
|
422
422
|
var tmp_22;
|
|
423
423
|
if (tmp17_safe_receiver == null) {
|
|
424
424
|
tmp_22 = null;
|
|
@@ -438,22 +438,22 @@
|
|
|
438
438
|
}
|
|
439
439
|
function PATTERNS() {
|
|
440
440
|
PATTERNS_instance = this;
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
453
|
-
this.
|
|
454
|
-
this.
|
|
455
|
-
this.
|
|
456
|
-
this.
|
|
441
|
+
this.a1m_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?';
|
|
442
|
+
this.b1m_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)';
|
|
443
|
+
this.c1m_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?';
|
|
444
|
+
this.d1m_1 = '\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
445
|
+
this.e1m_1 = '\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
446
|
+
this.f1m_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)';
|
|
447
|
+
this.g1m_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*\\)');
|
|
448
|
+
this.h1m_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*\\)');
|
|
449
|
+
this.i1m_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*\\)');
|
|
450
|
+
this.j1m_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*\\)');
|
|
451
|
+
this.k1m_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*\\)');
|
|
452
|
+
this.l1m_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*\\)');
|
|
453
|
+
this.m1m_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*\\)');
|
|
454
|
+
this.n1m_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*\\)');
|
|
455
|
+
this.o1m_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*\\)');
|
|
456
|
+
this.p1m_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*\\)');
|
|
457
457
|
}
|
|
458
458
|
var PATTERNS_instance;
|
|
459
459
|
function PATTERNS_getInstance() {
|
|
@@ -462,56 +462,56 @@
|
|
|
462
462
|
return PATTERNS_instance;
|
|
463
463
|
}
|
|
464
464
|
function rgb(match) {
|
|
465
|
-
var r = percentOrNumber(match.p9().b1(1), Companion_getInstance_6().
|
|
466
|
-
var g = percentOrNumber(match.p9().b1(2), Companion_getInstance_6().
|
|
467
|
-
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_6().
|
|
465
|
+
var r = percentOrNumber(match.p9().b1(1), Companion_getInstance_6().x1l().b1(0).v1l_1);
|
|
466
|
+
var g = percentOrNumber(match.p9().b1(2), Companion_getInstance_6().x1l().b1(1).v1l_1);
|
|
467
|
+
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_6().x1l().b1(2).v1l_1);
|
|
468
468
|
var a = alpha(match.p9().b1(4));
|
|
469
469
|
var tmp;
|
|
470
470
|
if (endsWith(match.p9().b1(1), '%')) {
|
|
471
|
-
tmp = Companion_getInstance_6().
|
|
471
|
+
tmp = Companion_getInstance_6().s1m(r, g, b, a);
|
|
472
472
|
} else {
|
|
473
|
-
tmp = Companion_getInstance_6().
|
|
473
|
+
tmp = Companion_getInstance_6().s1m(r / 255.0, g / 255.0, b / 255.0, a);
|
|
474
474
|
}
|
|
475
475
|
return tmp;
|
|
476
476
|
}
|
|
477
477
|
function hsl(match) {
|
|
478
478
|
var h = hue(match.p9().b1(1));
|
|
479
|
-
var s = percentOrNumber(match.p9().b1(2), Companion_getInstance_0().
|
|
480
|
-
var l = percentOrNumber(match.p9().b1(3), Companion_getInstance_0().
|
|
479
|
+
var s = percentOrNumber(match.p9().b1(2), Companion_getInstance_0().t1m_1.b1(1).v1l_1);
|
|
480
|
+
var l = percentOrNumber(match.p9().b1(3), Companion_getInstance_0().t1m_1.b1(2).v1l_1);
|
|
481
481
|
var a = alpha(match.p9().b1(4));
|
|
482
482
|
return new HSL(h, s, l, a);
|
|
483
483
|
}
|
|
484
484
|
function lab(match) {
|
|
485
|
-
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_2().
|
|
486
|
-
var a = percentOrNumber(match.p9().b1(2), Companion_getInstance_2().
|
|
487
|
-
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_2().
|
|
485
|
+
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_2().x1l().b1(0).v1l_1);
|
|
486
|
+
var a = percentOrNumber(match.p9().b1(2), Companion_getInstance_2().x1l().b1(1).v1l_1);
|
|
487
|
+
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_2().x1l().b1(2).v1l_1);
|
|
488
488
|
var alpha_0 = alpha(match.p9().b1(4));
|
|
489
|
-
return LABColorSpaces_getInstance().
|
|
489
|
+
return LABColorSpaces_getInstance().w1m_1.s1m(l, a, b, alpha_0);
|
|
490
490
|
}
|
|
491
491
|
function lch(match) {
|
|
492
|
-
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_3().
|
|
493
|
-
var c = percentOrNumber(match.p9().b1(2), Companion_getInstance_3().
|
|
492
|
+
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_3().x1l().b1(0).v1l_1);
|
|
493
|
+
var c = percentOrNumber(match.p9().b1(2), Companion_getInstance_3().x1l().b1(1).v1l_1);
|
|
494
494
|
var h = hue(match.p9().b1(3));
|
|
495
495
|
var a = alpha(match.p9().b1(4));
|
|
496
|
-
return LCHabColorSpaces_getInstance().
|
|
496
|
+
return LCHabColorSpaces_getInstance().z1m_1.s1m(l, c, h, a);
|
|
497
497
|
}
|
|
498
498
|
function hwb(match) {
|
|
499
499
|
var h = hue(match.p9().b1(1));
|
|
500
|
-
var w = percentOrNumber(match.p9().b1(2), Companion_getInstance_1().
|
|
501
|
-
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_1().
|
|
500
|
+
var w = percentOrNumber(match.p9().b1(2), Companion_getInstance_1().a1n_1.b1(1).v1l_1);
|
|
501
|
+
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_1().a1n_1.b1(2).v1l_1);
|
|
502
502
|
var a = alpha(match.p9().b1(4));
|
|
503
503
|
return new HWB(h, w, b, a);
|
|
504
504
|
}
|
|
505
505
|
function oklab(match) {
|
|
506
|
-
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_4().
|
|
507
|
-
var a = percentOrNumber(match.p9().b1(2), Companion_getInstance_4().
|
|
508
|
-
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_4().
|
|
506
|
+
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_4().b1n_1.b1(0).v1l_1);
|
|
507
|
+
var a = percentOrNumber(match.p9().b1(2), Companion_getInstance_4().b1n_1.b1(1).v1l_1);
|
|
508
|
+
var b = percentOrNumber(match.p9().b1(3), Companion_getInstance_4().b1n_1.b1(2).v1l_1);
|
|
509
509
|
var alpha_0 = alpha(match.p9().b1(4));
|
|
510
510
|
return new Oklab(l, a, b, alpha_0);
|
|
511
511
|
}
|
|
512
512
|
function oklch(match) {
|
|
513
|
-
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_5().
|
|
514
|
-
var c = percentOrNumber(match.p9().b1(2), Companion_getInstance_5().
|
|
513
|
+
var l = percentOrNumber(match.p9().b1(1), Companion_getInstance_5().c1n_1.b1(0).v1l_1);
|
|
514
|
+
var c = percentOrNumber(match.p9().b1(2), Companion_getInstance_5().c1n_1.b1(1).v1l_1);
|
|
515
515
|
var h = hue(match.p9().b1(3));
|
|
516
516
|
var a = alpha(match.p9().b1(4));
|
|
517
517
|
return new Oklch(l, c, h, a);
|
|
@@ -524,26 +524,26 @@
|
|
|
524
524
|
tmp = SRGB_getInstance();
|
|
525
525
|
break;
|
|
526
526
|
case 'srgb-linear':
|
|
527
|
-
tmp = RGBColorSpaces_getInstance().
|
|
527
|
+
tmp = RGBColorSpaces_getInstance().e1n_1;
|
|
528
528
|
break;
|
|
529
529
|
case 'display-p3':
|
|
530
|
-
tmp = RGBColorSpaces_getInstance().
|
|
530
|
+
tmp = RGBColorSpaces_getInstance().n1n_1;
|
|
531
531
|
break;
|
|
532
532
|
case 'a98-rgb':
|
|
533
|
-
tmp = RGBColorSpaces_getInstance().
|
|
533
|
+
tmp = RGBColorSpaces_getInstance().j1n_1;
|
|
534
534
|
break;
|
|
535
535
|
case 'prophoto-rgb':
|
|
536
|
-
tmp = RGBColorSpaces_getInstance().
|
|
536
|
+
tmp = RGBColorSpaces_getInstance().o1n_1;
|
|
537
537
|
break;
|
|
538
538
|
case 'rec2020':
|
|
539
|
-
tmp = RGBColorSpaces_getInstance().
|
|
539
|
+
tmp = RGBColorSpaces_getInstance().k1n_1;
|
|
540
540
|
break;
|
|
541
541
|
case 'xyz':
|
|
542
542
|
case 'xyz-d50':
|
|
543
|
-
tmp = XYZColorSpaces_getInstance().
|
|
543
|
+
tmp = XYZColorSpaces_getInstance().q1n_1;
|
|
544
544
|
break;
|
|
545
545
|
case 'xyz-d65':
|
|
546
|
-
tmp = XYZColorSpaces_getInstance().
|
|
546
|
+
tmp = XYZColorSpaces_getInstance().p1n_1;
|
|
547
547
|
break;
|
|
548
548
|
default:
|
|
549
549
|
var tmp$ret$1;
|
|
@@ -587,12 +587,12 @@
|
|
|
587
587
|
var tmp1 = index;
|
|
588
588
|
index = tmp1 + 1 | 0;
|
|
589
589
|
var i = checkIndexOverflow(tmp1);
|
|
590
|
-
var tmp$ret$3 = percentOrNumber(item, space.
|
|
590
|
+
var tmp$ret$3 = percentOrNumber(item, space.x1l().b1(i).v1l_1);
|
|
591
591
|
destination.p(tmp$ret$3);
|
|
592
592
|
}
|
|
593
593
|
var values = destination;
|
|
594
594
|
var tmp_1 = 0;
|
|
595
|
-
var tmp_2 = space.
|
|
595
|
+
var tmp_2 = space.x1l().l();
|
|
596
596
|
var tmp_3 = new Float32Array(tmp_2);
|
|
597
597
|
while (tmp_1 < tmp_2) {
|
|
598
598
|
var tmp_4 = tmp_1;
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
}
|
|
610
610
|
var components = tmp_3;
|
|
611
611
|
components[get_lastIndex_0(components)] = alpha(match.p9().b1(3));
|
|
612
|
-
return space.
|
|
612
|
+
return space.y1l(components);
|
|
613
613
|
}
|
|
614
614
|
function percentOrNumber(str, max) {
|
|
615
615
|
var tmp;
|
|
@@ -740,7 +740,7 @@
|
|
|
740
740
|
while (tmp0_iterator.t()) {
|
|
741
741
|
var element = tmp0_iterator.u();
|
|
742
742
|
// Inline function 'com.github.ajalt.colormath.formatCssStringOrNull.<anonymous>' call
|
|
743
|
-
if (equals(element.k2(), _this__u8e3s4.
|
|
743
|
+
if (equals(element.k2(), _this__u8e3s4.p1k())) {
|
|
744
744
|
tmp$ret$1 = element;
|
|
745
745
|
break $l$block;
|
|
746
746
|
}
|
|
@@ -763,17 +763,17 @@
|
|
|
763
763
|
if (tmp5_elvis_lhs == null) {
|
|
764
764
|
var tmp_1;
|
|
765
765
|
if (_this__u8e3s4 instanceof RGB) {
|
|
766
|
-
var tmp3_subject = _this__u8e3s4.
|
|
767
|
-
tmp_1 = equals(tmp3_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().
|
|
766
|
+
var tmp3_subject = _this__u8e3s4.w1k_1;
|
|
767
|
+
tmp_1 = equals(tmp3_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().n1n_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().j1n_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().o1n_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().k1n_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp3_subject, RGBColorSpaces_getInstance().e1n_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
|
|
768
768
|
} else {
|
|
769
769
|
if (_this__u8e3s4 instanceof HSL) {
|
|
770
770
|
tmp_1 = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
|
|
771
771
|
} else {
|
|
772
772
|
if (_this__u8e3s4 instanceof LAB) {
|
|
773
|
-
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().
|
|
773
|
+
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().w1m_1), alphaPercent, renderAlpha);
|
|
774
774
|
} else {
|
|
775
775
|
if (_this__u8e3s4 instanceof LCHab) {
|
|
776
|
-
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().
|
|
776
|
+
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().z1m_1), hueUnit, alphaPercent, renderAlpha);
|
|
777
777
|
} else {
|
|
778
778
|
if (_this__u8e3s4 instanceof HWB) {
|
|
779
779
|
tmp_1 = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
@@ -785,7 +785,7 @@
|
|
|
785
785
|
tmp_1 = renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
786
786
|
} else {
|
|
787
787
|
if (_this__u8e3s4 instanceof XYZ) {
|
|
788
|
-
tmp_1 = _this__u8e3s4.
|
|
788
|
+
tmp_1 = _this__u8e3s4.d1l_1.w1l().equals(Illuminant_getInstance().x1n_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.r1n(XYZColorSpaces_getInstance().q1n_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
|
|
789
789
|
} else {
|
|
790
790
|
tmp_1 = null;
|
|
791
791
|
}
|
|
@@ -819,30 +819,30 @@
|
|
|
819
819
|
function get_dashName(_this__u8e3s4) {
|
|
820
820
|
// Inline function 'kotlin.text.lowercase' call
|
|
821
821
|
// Inline function 'kotlin.text.replace' call
|
|
822
|
-
var this_0 = _this__u8e3s4.
|
|
822
|
+
var this_0 = _this__u8e3s4.p1k().pa();
|
|
823
823
|
// Inline function 'kotlin.js.asDynamic' call
|
|
824
824
|
return '--' + Regex_init_$Create$('\\W').m8(this_0, '-').toLowerCase();
|
|
825
825
|
}
|
|
826
826
|
function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
|
|
827
|
-
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.
|
|
827
|
+
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.s1k_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.a1o())), rgbPercent ? render(_this__u8e3s4.t1k_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.a1o())), rgbPercent ? render(_this__u8e3s4.u1k_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.a1o()))], alphaPercent, renderAlpha, commas);
|
|
828
828
|
}
|
|
829
829
|
function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
|
|
830
|
-
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
830
|
+
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.c1o_1, true), render(_this__u8e3s4.d1o_1, true)], alphaPercent, renderAlpha, commas);
|
|
831
831
|
}
|
|
832
832
|
function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
833
|
-
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.
|
|
833
|
+
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.f1l_1 / 100, true), render(_this__u8e3s4.g1l_1), render(_this__u8e3s4.h1l_1)], alphaPercent, renderAlpha);
|
|
834
834
|
}
|
|
835
835
|
function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
836
|
-
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.
|
|
836
|
+
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.f1o_1 / 100, true), render(_this__u8e3s4.g1o_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
837
837
|
}
|
|
838
838
|
function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
839
|
-
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
839
|
+
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.l1o_1, true), render(_this__u8e3s4.m1o_1, true)], alphaPercent, renderAlpha);
|
|
840
840
|
}
|
|
841
841
|
function renderOklab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
842
|
-
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.
|
|
842
|
+
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.n1l_1, true), render(_this__u8e3s4.o1l_1), render(_this__u8e3s4.p1l_1)], alphaPercent, renderAlpha);
|
|
843
843
|
}
|
|
844
844
|
function renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
845
|
-
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.
|
|
845
|
+
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.o1o_1, true), render(_this__u8e3s4.p1o_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
846
846
|
}
|
|
847
847
|
function render(_this__u8e3s4, percent, precision) {
|
|
848
848
|
percent = percent === VOID ? false : percent;
|
|
@@ -869,8 +869,8 @@
|
|
|
869
869
|
}
|
|
870
870
|
function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
|
|
871
871
|
var tmp;
|
|
872
|
-
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) ? true : (renderAlpha.equals(RenderCondition_AUTO_getInstance()) ? !isNaN_0(_this__u8e3s4.
|
|
873
|
-
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.
|
|
872
|
+
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) ? true : (renderAlpha.equals(RenderCondition_AUTO_getInstance()) ? !isNaN_0(_this__u8e3s4.o1k()) : false) ? !(_this__u8e3s4.o1k() === 1.0) : false) {
|
|
873
|
+
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.o1k()), alphaPercent);
|
|
874
874
|
} else {
|
|
875
875
|
tmp = '';
|
|
876
876
|
}
|
|
@@ -893,16 +893,16 @@
|
|
|
893
893
|
}
|
|
894
894
|
function renderHue(_this__u8e3s4, hueUnit) {
|
|
895
895
|
var tmp;
|
|
896
|
-
if (isNaN_0(_this__u8e3s4.
|
|
896
|
+
if (isNaN_0(_this__u8e3s4.s1o())) {
|
|
897
897
|
tmp = 'none';
|
|
898
898
|
} else {
|
|
899
899
|
var tmp_0;
|
|
900
900
|
switch (hueUnit.a9_1) {
|
|
901
901
|
case 0:
|
|
902
|
-
tmp_0 = render(_this__u8e3s4.
|
|
902
|
+
tmp_0 = render(_this__u8e3s4.s1o());
|
|
903
903
|
break;
|
|
904
904
|
case 1:
|
|
905
|
-
tmp_0 = render(_this__u8e3s4.
|
|
905
|
+
tmp_0 = render(_this__u8e3s4.s1o()) + 'deg';
|
|
906
906
|
break;
|
|
907
907
|
case 2:
|
|
908
908
|
tmp_0 = render(hueAsRad(_this__u8e3s4)) + 'rad';
|
|
@@ -939,27 +939,27 @@
|
|
|
939
939
|
return AngleUnit_AUTO_instance;
|
|
940
940
|
}
|
|
941
941
|
function hueOr(_this__u8e3s4, whenNaN) {
|
|
942
|
-
return isNaN_0(_this__u8e3s4.
|
|
942
|
+
return isNaN_0(_this__u8e3s4.s1o()) ? numberToDouble(whenNaN) : _this__u8e3s4.s1o();
|
|
943
943
|
}
|
|
944
944
|
function hueAsRad(_this__u8e3s4) {
|
|
945
|
-
return degToRad(_this__u8e3s4.
|
|
945
|
+
return degToRad(_this__u8e3s4.s1o());
|
|
946
946
|
}
|
|
947
947
|
function hueAsGrad(_this__u8e3s4) {
|
|
948
|
-
return degToGrad(_this__u8e3s4.
|
|
948
|
+
return degToGrad(_this__u8e3s4.s1o());
|
|
949
949
|
}
|
|
950
950
|
function hueAsTurns(_this__u8e3s4) {
|
|
951
|
-
return degToTurns(_this__u8e3s4.
|
|
951
|
+
return degToTurns(_this__u8e3s4.s1o());
|
|
952
952
|
}
|
|
953
953
|
function WhitePoint(name, chromaticity) {
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
954
|
+
this.t1o_1 = name;
|
|
955
|
+
this.u1o_1 = chromaticity;
|
|
956
956
|
}
|
|
957
957
|
protoOf(WhitePoint).toString = function () {
|
|
958
|
-
return this.
|
|
958
|
+
return this.t1o_1;
|
|
959
959
|
};
|
|
960
960
|
protoOf(WhitePoint).hashCode = function () {
|
|
961
|
-
var result = getStringHashCode(this.
|
|
962
|
-
result = imul(result, 31) + this.
|
|
961
|
+
var result = getStringHashCode(this.t1o_1);
|
|
962
|
+
result = imul(result, 31) + this.u1o_1.hashCode() | 0;
|
|
963
963
|
return result;
|
|
964
964
|
};
|
|
965
965
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -968,22 +968,22 @@
|
|
|
968
968
|
if (!(other instanceof WhitePoint))
|
|
969
969
|
return false;
|
|
970
970
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
971
|
-
if (!(this.
|
|
971
|
+
if (!(this.t1o_1 === tmp0_other_with_cast.t1o_1))
|
|
972
972
|
return false;
|
|
973
|
-
if (!this.
|
|
973
|
+
if (!this.u1o_1.equals(tmp0_other_with_cast.u1o_1))
|
|
974
974
|
return false;
|
|
975
975
|
return true;
|
|
976
976
|
};
|
|
977
977
|
function Illuminant() {
|
|
978
978
|
Illuminant_instance = this;
|
|
979
|
-
this.
|
|
980
|
-
this.
|
|
981
|
-
this.
|
|
982
|
-
this.
|
|
983
|
-
this.
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
979
|
+
this.s1n_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
980
|
+
this.t1n_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
981
|
+
this.u1n_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
982
|
+
this.v1n_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
983
|
+
this.w1n_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
984
|
+
this.x1n_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
985
|
+
this.y1n_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
986
|
+
this.z1n_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333));
|
|
987
987
|
}
|
|
988
988
|
var Illuminant_instance;
|
|
989
989
|
function Illuminant_getInstance() {
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
}
|
|
1086
1086
|
function CssColors() {
|
|
1087
1087
|
CssColors_instance = this;
|
|
1088
|
-
this.
|
|
1088
|
+
this.z1l_1 = mapOf([to('black', Companion_getInstance_6().v1o(0, 0, 0)), to('silver', Companion_getInstance_6().v1o(192, 192, 192)), to('gray', Companion_getInstance_6().v1o(128, 128, 128)), to('white', Companion_getInstance_6().v1o(255, 255, 255)), to('maroon', Companion_getInstance_6().v1o(128, 0, 0)), to('red', Companion_getInstance_6().v1o(255, 0, 0)), to('purple', Companion_getInstance_6().v1o(128, 0, 128)), to('fuchsia', Companion_getInstance_6().v1o(255, 0, 255)), to('green', Companion_getInstance_6().v1o(0, 128, 0)), to('lime', Companion_getInstance_6().v1o(0, 255, 0)), to('olive', Companion_getInstance_6().v1o(128, 128, 0)), to('yellow', Companion_getInstance_6().v1o(255, 255, 0)), to('navy', Companion_getInstance_6().v1o(0, 0, 128)), to('blue', Companion_getInstance_6().v1o(0, 0, 255)), to('teal', Companion_getInstance_6().v1o(0, 128, 128)), to('aqua', Companion_getInstance_6().v1o(0, 255, 255)), to('orange', Companion_getInstance_6().v1o(255, 165, 0)), to('aliceblue', Companion_getInstance_6().v1o(240, 248, 255)), to('antiquewhite', Companion_getInstance_6().v1o(250, 235, 215)), to('aquamarine', Companion_getInstance_6().v1o(127, 255, 212)), to('azure', Companion_getInstance_6().v1o(240, 255, 255)), to('beige', Companion_getInstance_6().v1o(245, 245, 220)), to('bisque', Companion_getInstance_6().v1o(255, 228, 196)), to('blanchedalmond', Companion_getInstance_6().v1o(255, 235, 205)), to('blueviolet', Companion_getInstance_6().v1o(138, 43, 226)), to('brown', Companion_getInstance_6().v1o(165, 42, 42)), to('burlywood', Companion_getInstance_6().v1o(222, 184, 135)), to('cadetblue', Companion_getInstance_6().v1o(95, 158, 160)), to('chartreuse', Companion_getInstance_6().v1o(127, 255, 0)), to('chocolate', Companion_getInstance_6().v1o(210, 105, 30)), to('coral', Companion_getInstance_6().v1o(255, 127, 80)), to('cornflowerblue', Companion_getInstance_6().v1o(100, 149, 237)), to('cornsilk', Companion_getInstance_6().v1o(255, 248, 220)), to('crimson', Companion_getInstance_6().v1o(220, 20, 60)), to('cyan', Companion_getInstance_6().v1o(0, 255, 255)), to('darkblue', Companion_getInstance_6().v1o(0, 0, 139)), to('darkcyan', Companion_getInstance_6().v1o(0, 139, 139)), to('darkgoldenrod', Companion_getInstance_6().v1o(184, 134, 11)), to('darkgray', Companion_getInstance_6().v1o(169, 169, 169)), to('darkgreen', Companion_getInstance_6().v1o(0, 100, 0)), to('darkgrey', Companion_getInstance_6().v1o(169, 169, 169)), to('darkkhaki', Companion_getInstance_6().v1o(189, 183, 107)), to('darkmagenta', Companion_getInstance_6().v1o(139, 0, 139)), to('darkolivegreen', Companion_getInstance_6().v1o(85, 107, 47)), to('darkorange', Companion_getInstance_6().v1o(255, 140, 0)), to('darkorchid', Companion_getInstance_6().v1o(153, 50, 204)), to('darkred', Companion_getInstance_6().v1o(139, 0, 0)), to('darksalmon', Companion_getInstance_6().v1o(233, 150, 122)), to('darkseagreen', Companion_getInstance_6().v1o(143, 188, 143)), to('darkslateblue', Companion_getInstance_6().v1o(72, 61, 139)), to('darkslategray', Companion_getInstance_6().v1o(47, 79, 79)), to('darkslategrey', Companion_getInstance_6().v1o(47, 79, 79)), to('darkturquoise', Companion_getInstance_6().v1o(0, 206, 209)), to('darkviolet', Companion_getInstance_6().v1o(148, 0, 211)), to('deeppink', Companion_getInstance_6().v1o(255, 20, 147)), to('deepskyblue', Companion_getInstance_6().v1o(0, 191, 255)), to('dimgray', Companion_getInstance_6().v1o(105, 105, 105)), to('dimgrey', Companion_getInstance_6().v1o(105, 105, 105)), to('dodgerblue', Companion_getInstance_6().v1o(30, 144, 255)), to('firebrick', Companion_getInstance_6().v1o(178, 34, 34)), to('floralwhite', Companion_getInstance_6().v1o(255, 250, 240)), to('forestgreen', Companion_getInstance_6().v1o(34, 139, 34)), to('gainsboro', Companion_getInstance_6().v1o(220, 220, 220)), to('ghostwhite', Companion_getInstance_6().v1o(248, 248, 255)), to('gold', Companion_getInstance_6().v1o(255, 215, 0)), to('goldenrod', Companion_getInstance_6().v1o(218, 165, 32)), to('greenyellow', Companion_getInstance_6().v1o(173, 255, 47)), to('grey', Companion_getInstance_6().v1o(128, 128, 128)), to('honeydew', Companion_getInstance_6().v1o(240, 255, 240)), to('hotpink', Companion_getInstance_6().v1o(255, 105, 180)), to('indianred', Companion_getInstance_6().v1o(205, 92, 92)), to('indigo', Companion_getInstance_6().v1o(75, 0, 130)), to('ivory', Companion_getInstance_6().v1o(255, 255, 240)), to('khaki', Companion_getInstance_6().v1o(240, 230, 140)), to('lavender', Companion_getInstance_6().v1o(230, 230, 250)), to('lavenderblush', Companion_getInstance_6().v1o(255, 240, 245)), to('lawngreen', Companion_getInstance_6().v1o(124, 252, 0)), to('lemonchiffon', Companion_getInstance_6().v1o(255, 250, 205)), to('lightblue', Companion_getInstance_6().v1o(173, 216, 230)), to('lightcoral', Companion_getInstance_6().v1o(240, 128, 128)), to('lightcyan', Companion_getInstance_6().v1o(224, 255, 255)), to('lightgoldenrodyellow', Companion_getInstance_6().v1o(250, 250, 210)), to('lightgray', Companion_getInstance_6().v1o(211, 211, 211)), to('lightgreen', Companion_getInstance_6().v1o(144, 238, 144)), to('lightgrey', Companion_getInstance_6().v1o(211, 211, 211)), to('lightpink', Companion_getInstance_6().v1o(255, 182, 193)), to('lightsalmon', Companion_getInstance_6().v1o(255, 160, 122)), to('lightseagreen', Companion_getInstance_6().v1o(32, 178, 170)), to('lightskyblue', Companion_getInstance_6().v1o(135, 206, 250)), to('lightslategray', Companion_getInstance_6().v1o(119, 136, 153)), to('lightslategrey', Companion_getInstance_6().v1o(119, 136, 153)), to('lightsteelblue', Companion_getInstance_6().v1o(176, 196, 222)), to('lightyellow', Companion_getInstance_6().v1o(255, 255, 224)), to('limegreen', Companion_getInstance_6().v1o(50, 205, 50)), to('linen', Companion_getInstance_6().v1o(250, 240, 230)), to('magenta', Companion_getInstance_6().v1o(255, 0, 255)), to('mediumaquamarine', Companion_getInstance_6().v1o(102, 205, 170)), to('mediumblue', Companion_getInstance_6().v1o(0, 0, 205)), to('mediumorchid', Companion_getInstance_6().v1o(186, 85, 211)), to('mediumpurple', Companion_getInstance_6().v1o(147, 112, 219)), to('mediumseagreen', Companion_getInstance_6().v1o(60, 179, 113)), to('mediumslateblue', Companion_getInstance_6().v1o(123, 104, 238)), to('mediumspringgreen', Companion_getInstance_6().v1o(0, 250, 154)), to('mediumturquoise', Companion_getInstance_6().v1o(72, 209, 204)), to('mediumvioletred', Companion_getInstance_6().v1o(199, 21, 133)), to('midnightblue', Companion_getInstance_6().v1o(25, 25, 112)), to('mintcream', Companion_getInstance_6().v1o(245, 255, 250)), to('mistyrose', Companion_getInstance_6().v1o(255, 228, 225)), to('moccasin', Companion_getInstance_6().v1o(255, 228, 181)), to('navajowhite', Companion_getInstance_6().v1o(255, 222, 173)), to('oldlace', Companion_getInstance_6().v1o(253, 245, 230)), to('olivedrab', Companion_getInstance_6().v1o(107, 142, 35)), to('orangered', Companion_getInstance_6().v1o(255, 69, 0)), to('orchid', Companion_getInstance_6().v1o(218, 112, 214)), to('palegoldenrod', Companion_getInstance_6().v1o(238, 232, 170)), to('palegreen', Companion_getInstance_6().v1o(152, 251, 152)), to('paleturquoise', Companion_getInstance_6().v1o(175, 238, 238)), to('palevioletred', Companion_getInstance_6().v1o(219, 112, 147)), to('papayawhip', Companion_getInstance_6().v1o(255, 239, 213)), to('peachpuff', Companion_getInstance_6().v1o(255, 218, 185)), to('peru', Companion_getInstance_6().v1o(205, 133, 63)), to('pink', Companion_getInstance_6().v1o(255, 192, 203)), to('plum', Companion_getInstance_6().v1o(221, 160, 221)), to('powderblue', Companion_getInstance_6().v1o(176, 224, 230)), to('rosybrown', Companion_getInstance_6().v1o(188, 143, 143)), to('royalblue', Companion_getInstance_6().v1o(65, 105, 225)), to('saddlebrown', Companion_getInstance_6().v1o(139, 69, 19)), to('salmon', Companion_getInstance_6().v1o(250, 128, 114)), to('sandybrown', Companion_getInstance_6().v1o(244, 164, 96)), to('seagreen', Companion_getInstance_6().v1o(46, 139, 87)), to('seashell', Companion_getInstance_6().v1o(255, 245, 238)), to('sienna', Companion_getInstance_6().v1o(160, 82, 45)), to('skyblue', Companion_getInstance_6().v1o(135, 206, 235)), to('slateblue', Companion_getInstance_6().v1o(106, 90, 205)), to('slategray', Companion_getInstance_6().v1o(112, 128, 144)), to('slategrey', Companion_getInstance_6().v1o(112, 128, 144)), to('snow', Companion_getInstance_6().v1o(255, 250, 250)), to('springgreen', Companion_getInstance_6().v1o(0, 255, 127)), to('steelblue', Companion_getInstance_6().v1o(70, 130, 180)), to('tan', Companion_getInstance_6().v1o(210, 180, 140)), to('thistle', Companion_getInstance_6().v1o(216, 191, 216)), to('tomato', Companion_getInstance_6().v1o(255, 99, 71)), to('turquoise', Companion_getInstance_6().v1o(64, 224, 208)), to('violet', Companion_getInstance_6().v1o(238, 130, 238)), to('wheat', Companion_getInstance_6().v1o(245, 222, 179)), to('whitesmoke', Companion_getInstance_6().v1o(245, 245, 245)), to('yellowgreen', Companion_getInstance_6().v1o(154, 205, 50)), to('rebeccapurple', Companion_getInstance_6().v1o(102, 51, 153)), to('transparent', Companion_getInstance_6().w1o(0, 0, 0, 0))]);
|
|
1089
1089
|
}
|
|
1090
1090
|
var CssColors_instance;
|
|
1091
1091
|
function CssColors_getInstance() {
|
|
@@ -1238,21 +1238,21 @@
|
|
|
1238
1238
|
}
|
|
1239
1239
|
function Companion_0() {
|
|
1240
1240
|
Companion_instance_1 = this;
|
|
1241
|
-
this.
|
|
1241
|
+
this.t1m_1 = polarComponentInfo('HSL', 0.0, 1.0);
|
|
1242
1242
|
}
|
|
1243
1243
|
protoOf(Companion_0).pa = function () {
|
|
1244
1244
|
return 'HSL';
|
|
1245
1245
|
};
|
|
1246
|
-
protoOf(Companion_0).
|
|
1247
|
-
return this.
|
|
1246
|
+
protoOf(Companion_0).x1l = function () {
|
|
1247
|
+
return this.t1m_1;
|
|
1248
1248
|
};
|
|
1249
|
-
protoOf(Companion_0).
|
|
1250
|
-
return color.
|
|
1249
|
+
protoOf(Companion_0).r1l = function (color) {
|
|
1250
|
+
return color.r1k();
|
|
1251
1251
|
};
|
|
1252
|
-
protoOf(Companion_0).
|
|
1252
|
+
protoOf(Companion_0).y1l = function (components) {
|
|
1253
1253
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1254
1254
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1255
|
-
var size = this.
|
|
1255
|
+
var size = this.x1l().l();
|
|
1256
1256
|
// Inline function 'kotlin.require' call
|
|
1257
1257
|
var containsLower = size - 1 | 0;
|
|
1258
1258
|
var containsArg = components.length;
|
|
@@ -1297,53 +1297,53 @@
|
|
|
1297
1297
|
function HSL(h, s, l, alpha) {
|
|
1298
1298
|
Companion_getInstance_0();
|
|
1299
1299
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1300
|
+
this.b1o_1 = h;
|
|
1301
|
+
this.c1o_1 = s;
|
|
1302
|
+
this.d1o_1 = l;
|
|
1303
|
+
this.e1o_1 = alpha;
|
|
1304
1304
|
}
|
|
1305
|
-
protoOf(HSL).
|
|
1306
|
-
return this.
|
|
1305
|
+
protoOf(HSL).s1o = function () {
|
|
1306
|
+
return this.b1o_1;
|
|
1307
1307
|
};
|
|
1308
|
-
protoOf(HSL).
|
|
1309
|
-
return this.
|
|
1308
|
+
protoOf(HSL).o1k = function () {
|
|
1309
|
+
return this.e1o_1;
|
|
1310
1310
|
};
|
|
1311
|
-
protoOf(HSL).
|
|
1311
|
+
protoOf(HSL).p1k = function () {
|
|
1312
1312
|
return Companion_getInstance_0();
|
|
1313
1313
|
};
|
|
1314
|
-
protoOf(HSL).
|
|
1315
|
-
if (this.
|
|
1316
|
-
return Companion_getInstance_6().
|
|
1314
|
+
protoOf(HSL).q1k = function () {
|
|
1315
|
+
if (this.c1o_1 < 1.0E-7)
|
|
1316
|
+
return Companion_getInstance_6().s1m(this.d1o_1, this.d1o_1, this.d1o_1, this.e1o_1);
|
|
1317
1317
|
var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
|
|
1318
|
-
var s = this.
|
|
1319
|
-
var l = this.
|
|
1320
|
-
return SRGB_getInstance().
|
|
1318
|
+
var s = this.c1o_1;
|
|
1319
|
+
var l = this.d1o_1;
|
|
1320
|
+
return SRGB_getInstance().s1m(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.e1o_1);
|
|
1321
1321
|
};
|
|
1322
|
-
protoOf(HSL).
|
|
1322
|
+
protoOf(HSL).r1k = function () {
|
|
1323
1323
|
return this;
|
|
1324
1324
|
};
|
|
1325
1325
|
protoOf(HSL).z2 = function () {
|
|
1326
1326
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1327
|
-
return new Float32Array([this.
|
|
1327
|
+
return new Float32Array([this.b1o_1, this.c1o_1, this.d1o_1, this.e1o_1]);
|
|
1328
1328
|
};
|
|
1329
|
-
protoOf(HSL).
|
|
1329
|
+
protoOf(HSL).y1o = function (h, s, l, alpha) {
|
|
1330
1330
|
return new HSL(h, s, l, alpha);
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(HSL).
|
|
1333
|
-
h = h === VOID ? this.
|
|
1334
|
-
s = s === VOID ? this.
|
|
1335
|
-
l = l === VOID ? this.
|
|
1336
|
-
alpha = alpha === VOID ? this.
|
|
1337
|
-
return $super === VOID ? this.
|
|
1332
|
+
protoOf(HSL).z1o = function (h, s, l, alpha, $super) {
|
|
1333
|
+
h = h === VOID ? this.b1o_1 : h;
|
|
1334
|
+
s = s === VOID ? this.c1o_1 : s;
|
|
1335
|
+
l = l === VOID ? this.d1o_1 : l;
|
|
1336
|
+
alpha = alpha === VOID ? this.e1o_1 : alpha;
|
|
1337
|
+
return $super === VOID ? this.y1o(h, s, l, alpha) : $super.y1o.call(this, h, s, l, alpha);
|
|
1338
1338
|
};
|
|
1339
1339
|
protoOf(HSL).toString = function () {
|
|
1340
|
-
return 'HSL(h=' + this.
|
|
1340
|
+
return 'HSL(h=' + this.b1o_1 + ', s=' + this.c1o_1 + ', l=' + this.d1o_1 + ', alpha=' + this.e1o_1 + ')';
|
|
1341
1341
|
};
|
|
1342
1342
|
protoOf(HSL).hashCode = function () {
|
|
1343
|
-
var result = getNumberHashCode(this.
|
|
1344
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1345
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1346
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1343
|
+
var result = getNumberHashCode(this.b1o_1);
|
|
1344
|
+
result = imul(result, 31) + getNumberHashCode(this.c1o_1) | 0;
|
|
1345
|
+
result = imul(result, 31) + getNumberHashCode(this.d1o_1) | 0;
|
|
1346
|
+
result = imul(result, 31) + getNumberHashCode(this.e1o_1) | 0;
|
|
1347
1347
|
return result;
|
|
1348
1348
|
};
|
|
1349
1349
|
protoOf(HSL).equals = function (other) {
|
|
@@ -1352,33 +1352,33 @@
|
|
|
1352
1352
|
if (!(other instanceof HSL))
|
|
1353
1353
|
return false;
|
|
1354
1354
|
var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
|
|
1355
|
-
if (!equals(this.
|
|
1355
|
+
if (!equals(this.b1o_1, tmp0_other_with_cast.b1o_1))
|
|
1356
1356
|
return false;
|
|
1357
|
-
if (!equals(this.
|
|
1357
|
+
if (!equals(this.c1o_1, tmp0_other_with_cast.c1o_1))
|
|
1358
1358
|
return false;
|
|
1359
|
-
if (!equals(this.
|
|
1359
|
+
if (!equals(this.d1o_1, tmp0_other_with_cast.d1o_1))
|
|
1360
1360
|
return false;
|
|
1361
|
-
if (!equals(this.
|
|
1361
|
+
if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
|
|
1362
1362
|
return false;
|
|
1363
1363
|
return true;
|
|
1364
1364
|
};
|
|
1365
1365
|
function Companion_1() {
|
|
1366
1366
|
Companion_instance_2 = this;
|
|
1367
|
-
this.
|
|
1367
|
+
this.a1n_1 = polarComponentInfo('HWB', 0.0, 1.0);
|
|
1368
1368
|
}
|
|
1369
1369
|
protoOf(Companion_1).pa = function () {
|
|
1370
1370
|
return 'HWB';
|
|
1371
1371
|
};
|
|
1372
|
-
protoOf(Companion_1).
|
|
1373
|
-
return this.
|
|
1372
|
+
protoOf(Companion_1).x1l = function () {
|
|
1373
|
+
return this.a1n_1;
|
|
1374
1374
|
};
|
|
1375
|
-
protoOf(Companion_1).
|
|
1376
|
-
return color.
|
|
1375
|
+
protoOf(Companion_1).r1l = function (color) {
|
|
1376
|
+
return color.k1l();
|
|
1377
1377
|
};
|
|
1378
|
-
protoOf(Companion_1).
|
|
1378
|
+
protoOf(Companion_1).y1l = function (components) {
|
|
1379
1379
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1380
1380
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1381
|
-
var size = this.
|
|
1381
|
+
var size = this.x1l().l();
|
|
1382
1382
|
// Inline function 'kotlin.require' call
|
|
1383
1383
|
var containsLower = size - 1 | 0;
|
|
1384
1384
|
var containsArg = components.length;
|
|
@@ -1412,28 +1412,28 @@
|
|
|
1412
1412
|
function HWB(h, w, b, alpha) {
|
|
1413
1413
|
Companion_getInstance_1();
|
|
1414
1414
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1415
|
+
this.k1o_1 = h;
|
|
1416
|
+
this.l1o_1 = w;
|
|
1417
|
+
this.m1o_1 = b;
|
|
1418
|
+
this.n1o_1 = alpha;
|
|
1419
1419
|
}
|
|
1420
|
-
protoOf(HWB).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf(HWB).s1o = function () {
|
|
1421
|
+
return this.k1o_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf(HWB).
|
|
1424
|
-
return this.
|
|
1423
|
+
protoOf(HWB).o1k = function () {
|
|
1424
|
+
return this.n1o_1;
|
|
1425
1425
|
};
|
|
1426
|
-
protoOf(HWB).
|
|
1426
|
+
protoOf(HWB).p1k = function () {
|
|
1427
1427
|
return Companion_getInstance_1();
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf(HWB).
|
|
1430
|
-
var h = this.
|
|
1431
|
-
var w = this.
|
|
1432
|
-
var b = this.
|
|
1433
|
-
var a = this.
|
|
1429
|
+
protoOf(HWB).q1k = function () {
|
|
1430
|
+
var h = this.k1o_1 / 60.0;
|
|
1431
|
+
var w = this.l1o_1;
|
|
1432
|
+
var b = this.m1o_1;
|
|
1433
|
+
var a = this.n1o_1;
|
|
1434
1434
|
if (w + b >= 1.0) {
|
|
1435
1435
|
var gray = w / (w + b);
|
|
1436
|
-
return Companion_getInstance_6().
|
|
1436
|
+
return Companion_getInstance_6().s1m(gray, gray, gray, a);
|
|
1437
1437
|
}
|
|
1438
1438
|
var v = 1 - b;
|
|
1439
1439
|
var i = numberToInt(h);
|
|
@@ -1441,34 +1441,34 @@
|
|
|
1441
1441
|
var n = w + f * (v - w);
|
|
1442
1442
|
switch (i) {
|
|
1443
1443
|
case 1:
|
|
1444
|
-
return Companion_getInstance_6().
|
|
1444
|
+
return Companion_getInstance_6().s1m(n, v, w, a);
|
|
1445
1445
|
case 2:
|
|
1446
|
-
return Companion_getInstance_6().
|
|
1446
|
+
return Companion_getInstance_6().s1m(w, v, n, a);
|
|
1447
1447
|
case 3:
|
|
1448
|
-
return Companion_getInstance_6().
|
|
1448
|
+
return Companion_getInstance_6().s1m(w, n, v, a);
|
|
1449
1449
|
case 4:
|
|
1450
|
-
return Companion_getInstance_6().
|
|
1450
|
+
return Companion_getInstance_6().s1m(n, w, v, a);
|
|
1451
1451
|
case 5:
|
|
1452
|
-
return Companion_getInstance_6().
|
|
1452
|
+
return Companion_getInstance_6().s1m(v, w, n, a);
|
|
1453
1453
|
default:
|
|
1454
|
-
return Companion_getInstance_6().
|
|
1454
|
+
return Companion_getInstance_6().s1m(v, n, w, a);
|
|
1455
1455
|
}
|
|
1456
1456
|
};
|
|
1457
|
-
protoOf(HWB).
|
|
1457
|
+
protoOf(HWB).k1l = function () {
|
|
1458
1458
|
return this;
|
|
1459
1459
|
};
|
|
1460
1460
|
protoOf(HWB).z2 = function () {
|
|
1461
1461
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1462
|
-
return new Float32Array([this.
|
|
1462
|
+
return new Float32Array([this.k1o_1, this.l1o_1, this.m1o_1, this.n1o_1]);
|
|
1463
1463
|
};
|
|
1464
1464
|
protoOf(HWB).toString = function () {
|
|
1465
|
-
return 'HWB(h=' + this.
|
|
1465
|
+
return 'HWB(h=' + this.k1o_1 + ', w=' + this.l1o_1 + ', b=' + this.m1o_1 + ', alpha=' + this.n1o_1 + ')';
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(HWB).hashCode = function () {
|
|
1468
|
-
var result = getNumberHashCode(this.
|
|
1469
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1470
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1471
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1468
|
+
var result = getNumberHashCode(this.k1o_1);
|
|
1469
|
+
result = imul(result, 31) + getNumberHashCode(this.l1o_1) | 0;
|
|
1470
|
+
result = imul(result, 31) + getNumberHashCode(this.m1o_1) | 0;
|
|
1471
|
+
result = imul(result, 31) + getNumberHashCode(this.n1o_1) | 0;
|
|
1472
1472
|
return result;
|
|
1473
1473
|
};
|
|
1474
1474
|
protoOf(HWB).equals = function (other) {
|
|
@@ -1477,13 +1477,13 @@
|
|
|
1477
1477
|
if (!(other instanceof HWB))
|
|
1478
1478
|
return false;
|
|
1479
1479
|
var tmp0_other_with_cast = other instanceof HWB ? other : THROW_CCE();
|
|
1480
|
-
if (!equals(this.
|
|
1480
|
+
if (!equals(this.k1o_1, tmp0_other_with_cast.k1o_1))
|
|
1481
1481
|
return false;
|
|
1482
|
-
if (!equals(this.
|
|
1482
|
+
if (!equals(this.l1o_1, tmp0_other_with_cast.l1o_1))
|
|
1483
1483
|
return false;
|
|
1484
|
-
if (!equals(this.
|
|
1484
|
+
if (!equals(this.m1o_1, tmp0_other_with_cast.m1o_1))
|
|
1485
1485
|
return false;
|
|
1486
|
-
if (!equals(this.
|
|
1486
|
+
if (!equals(this.n1o_1, tmp0_other_with_cast.n1o_1))
|
|
1487
1487
|
return false;
|
|
1488
1488
|
return true;
|
|
1489
1489
|
};
|
|
@@ -1525,45 +1525,45 @@
|
|
|
1525
1525
|
var ICTCP_LMS_TO_XYZ;
|
|
1526
1526
|
function ICtCp() {
|
|
1527
1527
|
}
|
|
1528
|
-
protoOf(ICtCp).
|
|
1529
|
-
var fo = RGBColorSpaces_getInstance().
|
|
1528
|
+
protoOf(ICtCp).e1p = function () {
|
|
1529
|
+
var fo = RGBColorSpaces_getInstance().k1n_1.f1p();
|
|
1530
1530
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1531
1531
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
1532
|
-
var v0 = this.
|
|
1533
|
-
var v1 = this.
|
|
1534
|
-
var v2 = this.
|
|
1532
|
+
var v0 = this.a1p_1;
|
|
1533
|
+
var v1 = this.b1p_1;
|
|
1534
|
+
var v2 = this.c1p_1;
|
|
1535
1535
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
1536
1536
|
var l = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1537
1537
|
var m = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
1538
1538
|
var s = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
1539
1539
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1540
1540
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
1541
|
-
var v0_0 = PqNonlinearity_instance.
|
|
1542
|
-
var v1_0 = PqNonlinearity_instance.
|
|
1543
|
-
var v2_0 = PqNonlinearity_instance.
|
|
1541
|
+
var v0_0 = PqNonlinearity_instance.o1p(l);
|
|
1542
|
+
var v1_0 = PqNonlinearity_instance.o1p(m);
|
|
1543
|
+
var v2_0 = PqNonlinearity_instance.o1p(s);
|
|
1544
1544
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
1545
1545
|
var r = Matrix__get_impl_xogbpk(this_1, 0, 0) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 0) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 0) * v2_0;
|
|
1546
1546
|
var g = Matrix__get_impl_xogbpk(this_1, 0, 1) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 1) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 1) * v2_0;
|
|
1547
1547
|
var b = Matrix__get_impl_xogbpk(this_1, 0, 2) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 2) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 2) * v2_0;
|
|
1548
|
-
return RGBColorSpaces_getInstance().
|
|
1548
|
+
return RGBColorSpaces_getInstance().k1n_1.s1m(fo.p1p(r), fo.p1p(g), fo.p1p(b), this.d1p_1);
|
|
1549
1549
|
};
|
|
1550
1550
|
function PqNonlinearity() {
|
|
1551
|
-
this.
|
|
1552
|
-
this.
|
|
1553
|
-
this.
|
|
1554
|
-
this.
|
|
1555
|
-
this.
|
|
1556
|
-
this.
|
|
1557
|
-
this.
|
|
1558
|
-
this.
|
|
1559
|
-
}
|
|
1560
|
-
protoOf(PqNonlinearity).
|
|
1551
|
+
this.g1p_1 = 0.1593017578125;
|
|
1552
|
+
this.h1p_1 = 78.84375;
|
|
1553
|
+
this.i1p_1 = 0.8359375;
|
|
1554
|
+
this.j1p_1 = 18.8515625;
|
|
1555
|
+
this.k1p_1 = 18.6875;
|
|
1556
|
+
this.l1p_1 = 10000.0;
|
|
1557
|
+
this.m1p_1 = 6.277394636015326;
|
|
1558
|
+
this.n1p_1 = 0.012683313515655966;
|
|
1559
|
+
}
|
|
1560
|
+
protoOf(PqNonlinearity).o1p = function (x) {
|
|
1561
1561
|
var vp = spow(x, 0.012683313515655966);
|
|
1562
1562
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
1563
1563
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
1564
1564
|
return 10000.0 * l;
|
|
1565
1565
|
};
|
|
1566
|
-
protoOf(PqNonlinearity).
|
|
1566
|
+
protoOf(PqNonlinearity).p1p = function (x) {
|
|
1567
1567
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
1568
1568
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
1569
1569
|
};
|
|
@@ -1587,34 +1587,34 @@
|
|
|
1587
1587
|
}
|
|
1588
1588
|
function Companion_2() {
|
|
1589
1589
|
Companion_instance_3 = this;
|
|
1590
|
-
this.
|
|
1590
|
+
this.u1m_1 = LABColorSpaces_getInstance().v1m_1;
|
|
1591
1591
|
}
|
|
1592
|
-
protoOf(Companion_2).
|
|
1593
|
-
return this.
|
|
1592
|
+
protoOf(Companion_2).x1l = function () {
|
|
1593
|
+
return this.u1m_1.x1l();
|
|
1594
1594
|
};
|
|
1595
1595
|
protoOf(Companion_2).pa = function () {
|
|
1596
|
-
return this.
|
|
1596
|
+
return this.u1m_1.pa();
|
|
1597
1597
|
};
|
|
1598
|
-
protoOf(Companion_2).
|
|
1599
|
-
return this.
|
|
1598
|
+
protoOf(Companion_2).w1l = function () {
|
|
1599
|
+
return this.u1m_1.w1l();
|
|
1600
1600
|
};
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
return this.
|
|
1601
|
+
protoOf(Companion_2).r1l = function (color) {
|
|
1602
|
+
return this.u1m_1.r1l(color);
|
|
1603
1603
|
};
|
|
1604
|
-
protoOf(Companion_2).
|
|
1605
|
-
return this.
|
|
1604
|
+
protoOf(Companion_2).y1l = function (components) {
|
|
1605
|
+
return this.u1m_1.y1l(components);
|
|
1606
1606
|
};
|
|
1607
|
-
protoOf(Companion_2).
|
|
1608
|
-
return this.
|
|
1607
|
+
protoOf(Companion_2).s1m = function (l, a, b, alpha) {
|
|
1608
|
+
return this.u1m_1.s1m(l, a, b, alpha);
|
|
1609
1609
|
};
|
|
1610
|
-
protoOf(Companion_2).
|
|
1611
|
-
return this.
|
|
1610
|
+
protoOf(Companion_2).q1p = function (l, a, b, alpha) {
|
|
1611
|
+
return this.u1m_1.q1p(l, a, b, alpha);
|
|
1612
1612
|
};
|
|
1613
1613
|
protoOf(Companion_2).equals = function (other) {
|
|
1614
|
-
return equals(LABColorSpaces_getInstance().
|
|
1614
|
+
return equals(LABColorSpaces_getInstance().v1m_1, other);
|
|
1615
1615
|
};
|
|
1616
1616
|
protoOf(Companion_2).hashCode = function () {
|
|
1617
|
-
return hashCode(LABColorSpaces_getInstance().
|
|
1617
|
+
return hashCode(LABColorSpaces_getInstance().v1m_1);
|
|
1618
1618
|
};
|
|
1619
1619
|
var Companion_instance_3;
|
|
1620
1620
|
function Companion_getInstance_2() {
|
|
@@ -1624,34 +1624,34 @@
|
|
|
1624
1624
|
}
|
|
1625
1625
|
function LAB(l, a, b, alpha, space) {
|
|
1626
1626
|
Companion_getInstance_2();
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1631
|
-
this.
|
|
1632
|
-
}
|
|
1633
|
-
protoOf(LAB).
|
|
1634
|
-
return this.
|
|
1635
|
-
};
|
|
1636
|
-
protoOf(LAB).
|
|
1637
|
-
return this.
|
|
1638
|
-
};
|
|
1639
|
-
protoOf(LAB).
|
|
1640
|
-
return this.
|
|
1641
|
-
};
|
|
1642
|
-
protoOf(LAB).
|
|
1643
|
-
var xyzSpace = XYZColorSpace_0(this.
|
|
1644
|
-
if (this.
|
|
1645
|
-
return xyzSpace.
|
|
1646
|
-
var fy = (this.
|
|
1647
|
-
var fz = fy - this.
|
|
1648
|
-
var fx = this.
|
|
1627
|
+
this.f1l_1 = l;
|
|
1628
|
+
this.g1l_1 = a;
|
|
1629
|
+
this.h1l_1 = b;
|
|
1630
|
+
this.i1l_1 = alpha;
|
|
1631
|
+
this.j1l_1 = space;
|
|
1632
|
+
}
|
|
1633
|
+
protoOf(LAB).o1k = function () {
|
|
1634
|
+
return this.i1l_1;
|
|
1635
|
+
};
|
|
1636
|
+
protoOf(LAB).p1k = function () {
|
|
1637
|
+
return this.j1l_1;
|
|
1638
|
+
};
|
|
1639
|
+
protoOf(LAB).q1k = function () {
|
|
1640
|
+
return this.f1l_1 === 0.0 ? Companion_getInstance_6().s1m(0.0, 0.0, 0.0, this.i1l_1) : this.x1k().q1k();
|
|
1641
|
+
};
|
|
1642
|
+
protoOf(LAB).x1k = function () {
|
|
1643
|
+
var xyzSpace = XYZColorSpace_0(this.j1l_1.w1l());
|
|
1644
|
+
if (this.f1l_1 === 0.0)
|
|
1645
|
+
return xyzSpace.r1p(0.0, 0.0, 0.0);
|
|
1646
|
+
var fy = (this.f1l_1 + 16) / 116.0;
|
|
1647
|
+
var fz = fy - this.h1l_1 / 200.0;
|
|
1648
|
+
var fx = this.g1l_1 / 500.0 + fy;
|
|
1649
1649
|
var tmp;
|
|
1650
|
-
if (this.
|
|
1650
|
+
if (this.f1l_1 > get_CIE_E_times_K()) {
|
|
1651
1651
|
// Inline function 'kotlin.math.pow' call
|
|
1652
1652
|
tmp = Math.pow(fy, 3);
|
|
1653
1653
|
} else {
|
|
1654
|
-
tmp = this.
|
|
1654
|
+
tmp = this.f1l_1 / get_CIE_K();
|
|
1655
1655
|
}
|
|
1656
1656
|
var yr = tmp;
|
|
1657
1657
|
// Inline function 'kotlin.let' call
|
|
@@ -1666,13 +1666,13 @@
|
|
|
1666
1666
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1667
1667
|
var it_0 = Math.pow(fx, 3);
|
|
1668
1668
|
var xr = it_0 > get_CIE_E() ? it_0 : (116 * fx - 16) / get_CIE_K();
|
|
1669
|
-
var wp = this.
|
|
1670
|
-
return xyzSpace.
|
|
1669
|
+
var wp = this.j1l_1.w1l().u1o_1;
|
|
1670
|
+
return xyzSpace.q1p(xr * wp.v1p(), yr * wp.u1p_1, zr * wp.w1p(), this.i1l_1);
|
|
1671
1671
|
};
|
|
1672
|
-
protoOf(LAB).
|
|
1672
|
+
protoOf(LAB).e1l = function () {
|
|
1673
1673
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
1674
|
-
var a = this.
|
|
1675
|
-
var b = this.
|
|
1674
|
+
var a = this.g1l_1;
|
|
1675
|
+
var b = this.h1l_1;
|
|
1676
1676
|
// Inline function 'kotlin.math.sqrt' call
|
|
1677
1677
|
var x = a * a + b * b;
|
|
1678
1678
|
var c = Math.sqrt(x);
|
|
@@ -1687,24 +1687,24 @@
|
|
|
1687
1687
|
var h = tmp;
|
|
1688
1688
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toLCHab.<anonymous>' call
|
|
1689
1689
|
var h_0 = normalizeDeg_0(h);
|
|
1690
|
-
return LCHabColorSpace_0(this.
|
|
1690
|
+
return LCHabColorSpace_0(this.j1l_1.w1l()).s1m(this.f1l_1, c, h_0, this.i1l_1);
|
|
1691
1691
|
};
|
|
1692
|
-
protoOf(LAB).
|
|
1692
|
+
protoOf(LAB).y1k = function () {
|
|
1693
1693
|
return this;
|
|
1694
1694
|
};
|
|
1695
1695
|
protoOf(LAB).z2 = function () {
|
|
1696
1696
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1697
|
-
return new Float32Array([this.
|
|
1697
|
+
return new Float32Array([this.f1l_1, this.g1l_1, this.h1l_1, this.i1l_1]);
|
|
1698
1698
|
};
|
|
1699
1699
|
protoOf(LAB).toString = function () {
|
|
1700
|
-
return 'LAB(l=' + this.
|
|
1700
|
+
return 'LAB(l=' + this.f1l_1 + ', a=' + this.g1l_1 + ', b=' + this.h1l_1 + ', alpha=' + this.i1l_1 + ', space=' + this.j1l_1 + ')';
|
|
1701
1701
|
};
|
|
1702
1702
|
protoOf(LAB).hashCode = function () {
|
|
1703
|
-
var result = getNumberHashCode(this.
|
|
1704
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1705
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1706
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1707
|
-
result = imul(result, 31) + hashCode(this.
|
|
1703
|
+
var result = getNumberHashCode(this.f1l_1);
|
|
1704
|
+
result = imul(result, 31) + getNumberHashCode(this.g1l_1) | 0;
|
|
1705
|
+
result = imul(result, 31) + getNumberHashCode(this.h1l_1) | 0;
|
|
1706
|
+
result = imul(result, 31) + getNumberHashCode(this.i1l_1) | 0;
|
|
1707
|
+
result = imul(result, 31) + hashCode(this.j1l_1) | 0;
|
|
1708
1708
|
return result;
|
|
1709
1709
|
};
|
|
1710
1710
|
protoOf(LAB).equals = function (other) {
|
|
@@ -1713,27 +1713,27 @@
|
|
|
1713
1713
|
if (!(other instanceof LAB))
|
|
1714
1714
|
return false;
|
|
1715
1715
|
var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
|
|
1716
|
-
if (!equals(this.
|
|
1716
|
+
if (!equals(this.f1l_1, tmp0_other_with_cast.f1l_1))
|
|
1717
1717
|
return false;
|
|
1718
|
-
if (!equals(this.
|
|
1718
|
+
if (!equals(this.g1l_1, tmp0_other_with_cast.g1l_1))
|
|
1719
1719
|
return false;
|
|
1720
|
-
if (!equals(this.
|
|
1720
|
+
if (!equals(this.h1l_1, tmp0_other_with_cast.h1l_1))
|
|
1721
1721
|
return false;
|
|
1722
|
-
if (!equals(this.
|
|
1722
|
+
if (!equals(this.i1l_1, tmp0_other_with_cast.i1l_1))
|
|
1723
1723
|
return false;
|
|
1724
|
-
if (!equals(this.
|
|
1724
|
+
if (!equals(this.j1l_1, tmp0_other_with_cast.j1l_1))
|
|
1725
1725
|
return false;
|
|
1726
1726
|
return true;
|
|
1727
1727
|
};
|
|
1728
1728
|
function LABColorSpace() {
|
|
1729
1729
|
}
|
|
1730
1730
|
function LABColorSpace_0(whitePoint) {
|
|
1731
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1731
|
+
return whitePoint.equals(Illuminant_getInstance().x1n_1) ? LABColorSpaces_getInstance().v1m_1 : whitePoint.equals(Illuminant_getInstance().v1n_1) ? LABColorSpaces_getInstance().w1m_1 : new LABColorSpaceImpl(whitePoint);
|
|
1732
1732
|
}
|
|
1733
1733
|
function LABColorSpaces() {
|
|
1734
1734
|
LABColorSpaces_instance = this;
|
|
1735
|
-
this.
|
|
1736
|
-
this.
|
|
1735
|
+
this.v1m_1 = new LABColorSpaceImpl(Illuminant_getInstance().x1n_1);
|
|
1736
|
+
this.w1m_1 = new LABColorSpaceImpl(Illuminant_getInstance().v1n_1);
|
|
1737
1737
|
}
|
|
1738
1738
|
var LABColorSpaces_instance;
|
|
1739
1739
|
function LABColorSpaces_getInstance() {
|
|
@@ -1742,37 +1742,37 @@
|
|
|
1742
1742
|
return LABColorSpaces_instance;
|
|
1743
1743
|
}
|
|
1744
1744
|
function LABColorSpaceImpl(whitePoint) {
|
|
1745
|
-
this.
|
|
1746
|
-
this.
|
|
1745
|
+
this.x1p_1 = whitePoint;
|
|
1746
|
+
this.y1p_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
|
|
1747
1747
|
}
|
|
1748
|
-
protoOf(LABColorSpaceImpl).
|
|
1749
|
-
return this.
|
|
1748
|
+
protoOf(LABColorSpaceImpl).w1l = function () {
|
|
1749
|
+
return this.x1p_1;
|
|
1750
1750
|
};
|
|
1751
1751
|
protoOf(LABColorSpaceImpl).pa = function () {
|
|
1752
1752
|
return 'LAB';
|
|
1753
1753
|
};
|
|
1754
|
-
protoOf(LABColorSpaceImpl).
|
|
1755
|
-
return this.
|
|
1754
|
+
protoOf(LABColorSpaceImpl).x1l = function () {
|
|
1755
|
+
return this.y1p_1;
|
|
1756
1756
|
};
|
|
1757
|
-
protoOf(LABColorSpaceImpl).
|
|
1757
|
+
protoOf(LABColorSpaceImpl).r1l = function (color) {
|
|
1758
1758
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1759
1759
|
var tmp;
|
|
1760
|
-
var tmp_0 = color.
|
|
1760
|
+
var tmp_0 = color.p1k();
|
|
1761
1761
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1762
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1763
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1762
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l();
|
|
1763
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().x1n_1 : tmp1_elvis_lhs).equals(this.w1l())) {
|
|
1764
1764
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1765
|
-
tmp = color.
|
|
1765
|
+
tmp = color.y1k();
|
|
1766
1766
|
} else {
|
|
1767
1767
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1768
|
-
tmp = color.
|
|
1768
|
+
tmp = color.x1k().r1n(XYZColorSpace_0(this.w1l())).y1k();
|
|
1769
1769
|
}
|
|
1770
1770
|
return tmp;
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(LABColorSpaceImpl).
|
|
1772
|
+
protoOf(LABColorSpaceImpl).y1l = function (components) {
|
|
1773
1773
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1774
1774
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1775
|
-
var size = this.
|
|
1775
|
+
var size = this.x1l().l();
|
|
1776
1776
|
// Inline function 'kotlin.require' call
|
|
1777
1777
|
var containsLower = size - 1 | 0;
|
|
1778
1778
|
var containsArg = components.length;
|
|
@@ -1795,21 +1795,21 @@
|
|
|
1795
1795
|
tmp_2 = 1.0;
|
|
1796
1796
|
}
|
|
1797
1797
|
var tmp$ret$2 = tmp_2;
|
|
1798
|
-
return this.
|
|
1798
|
+
return this.s1m(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
1799
1799
|
};
|
|
1800
1800
|
protoOf(LABColorSpaceImpl).toString = function () {
|
|
1801
|
-
return 'LABColorSpace(' + this.
|
|
1801
|
+
return 'LABColorSpace(' + this.x1p_1 + ')';
|
|
1802
1802
|
};
|
|
1803
|
-
protoOf(LABColorSpaceImpl).
|
|
1803
|
+
protoOf(LABColorSpaceImpl).s1m = function (l, a, b, alpha) {
|
|
1804
1804
|
return new LAB(l, a, b, alpha, this);
|
|
1805
1805
|
};
|
|
1806
1806
|
protoOf(LABColorSpaceImpl).hashCode = function () {
|
|
1807
|
-
return this.
|
|
1807
|
+
return this.x1p_1.hashCode();
|
|
1808
1808
|
};
|
|
1809
1809
|
protoOf(LABColorSpaceImpl).equals = function (other) {
|
|
1810
1810
|
var tmp;
|
|
1811
1811
|
if (!(other == null) ? isInterface(other, LABColorSpace) : false) {
|
|
1812
|
-
tmp = this.
|
|
1812
|
+
tmp = this.x1p_1.equals(other.w1l());
|
|
1813
1813
|
} else {
|
|
1814
1814
|
tmp = false;
|
|
1815
1815
|
}
|
|
@@ -1817,31 +1817,31 @@
|
|
|
1817
1817
|
};
|
|
1818
1818
|
function Companion_3() {
|
|
1819
1819
|
Companion_instance_4 = this;
|
|
1820
|
-
this.
|
|
1820
|
+
this.x1m_1 = LCHabColorSpaces_getInstance().y1m_1;
|
|
1821
1821
|
}
|
|
1822
|
-
protoOf(Companion_3).
|
|
1823
|
-
return this.
|
|
1822
|
+
protoOf(Companion_3).x1l = function () {
|
|
1823
|
+
return this.x1m_1.x1l();
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(Companion_3).pa = function () {
|
|
1826
|
-
return this.
|
|
1826
|
+
return this.x1m_1.pa();
|
|
1827
1827
|
};
|
|
1828
|
-
protoOf(Companion_3).
|
|
1829
|
-
return this.
|
|
1828
|
+
protoOf(Companion_3).w1l = function () {
|
|
1829
|
+
return this.x1m_1.w1l();
|
|
1830
1830
|
};
|
|
1831
|
-
protoOf(Companion_3).
|
|
1832
|
-
return this.
|
|
1831
|
+
protoOf(Companion_3).r1l = function (color) {
|
|
1832
|
+
return this.x1m_1.r1l(color);
|
|
1833
1833
|
};
|
|
1834
|
-
protoOf(Companion_3).
|
|
1835
|
-
return this.
|
|
1834
|
+
protoOf(Companion_3).y1l = function (components) {
|
|
1835
|
+
return this.x1m_1.y1l(components);
|
|
1836
1836
|
};
|
|
1837
|
-
protoOf(Companion_3).
|
|
1838
|
-
return this.
|
|
1837
|
+
protoOf(Companion_3).s1m = function (l, c, h, alpha) {
|
|
1838
|
+
return this.x1m_1.s1m(l, c, h, alpha);
|
|
1839
1839
|
};
|
|
1840
1840
|
protoOf(Companion_3).equals = function (other) {
|
|
1841
|
-
return equals(LCHabColorSpaces_getInstance().
|
|
1841
|
+
return equals(LCHabColorSpaces_getInstance().y1m_1, other);
|
|
1842
1842
|
};
|
|
1843
1843
|
protoOf(Companion_3).hashCode = function () {
|
|
1844
|
-
return hashCode(LCHabColorSpaces_getInstance().
|
|
1844
|
+
return hashCode(LCHabColorSpaces_getInstance().y1m_1);
|
|
1845
1845
|
};
|
|
1846
1846
|
var Companion_instance_4;
|
|
1847
1847
|
function Companion_getInstance_3() {
|
|
@@ -1851,55 +1851,55 @@
|
|
|
1851
1851
|
}
|
|
1852
1852
|
function LCHab(l, c, h, alpha, space) {
|
|
1853
1853
|
Companion_getInstance_3();
|
|
1854
|
-
this.
|
|
1855
|
-
this.
|
|
1856
|
-
this.
|
|
1857
|
-
this.
|
|
1858
|
-
this.
|
|
1854
|
+
this.f1o_1 = l;
|
|
1855
|
+
this.g1o_1 = c;
|
|
1856
|
+
this.h1o_1 = h;
|
|
1857
|
+
this.i1o_1 = alpha;
|
|
1858
|
+
this.j1o_1 = space;
|
|
1859
1859
|
}
|
|
1860
|
-
protoOf(LCHab).
|
|
1861
|
-
return this.
|
|
1860
|
+
protoOf(LCHab).s1o = function () {
|
|
1861
|
+
return this.h1o_1;
|
|
1862
1862
|
};
|
|
1863
|
-
protoOf(LCHab).
|
|
1864
|
-
return this.
|
|
1863
|
+
protoOf(LCHab).o1k = function () {
|
|
1864
|
+
return this.i1o_1;
|
|
1865
1865
|
};
|
|
1866
|
-
protoOf(LCHab).
|
|
1867
|
-
return this.
|
|
1866
|
+
protoOf(LCHab).p1k = function () {
|
|
1867
|
+
return this.j1o_1;
|
|
1868
1868
|
};
|
|
1869
|
-
protoOf(LCHab).
|
|
1870
|
-
return this.
|
|
1869
|
+
protoOf(LCHab).q1k = function () {
|
|
1870
|
+
return this.y1k().q1k();
|
|
1871
1871
|
};
|
|
1872
|
-
protoOf(LCHab).
|
|
1873
|
-
return this.
|
|
1872
|
+
protoOf(LCHab).x1k = function () {
|
|
1873
|
+
return this.y1k().x1k();
|
|
1874
1874
|
};
|
|
1875
|
-
protoOf(LCHab).
|
|
1875
|
+
protoOf(LCHab).y1k = function () {
|
|
1876
1876
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
1877
|
-
var c = this.
|
|
1878
|
-
var h = this.
|
|
1877
|
+
var c = this.g1o_1;
|
|
1878
|
+
var h = this.h1o_1;
|
|
1879
1879
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
1880
1880
|
// Inline function 'kotlin.math.cos' call
|
|
1881
1881
|
var a = c * Math.cos(hDegrees);
|
|
1882
1882
|
// Inline function 'kotlin.math.sin' call
|
|
1883
1883
|
var b = c * Math.sin(hDegrees);
|
|
1884
1884
|
// Inline function 'com.github.ajalt.colormath.model.LCHab.toLAB.<anonymous>' call
|
|
1885
|
-
return LABColorSpace_0(this.
|
|
1885
|
+
return LABColorSpace_0(this.j1o_1.w1l()).s1m(this.f1o_1, a, b, this.i1o_1);
|
|
1886
1886
|
};
|
|
1887
|
-
protoOf(LCHab).
|
|
1887
|
+
protoOf(LCHab).e1l = function () {
|
|
1888
1888
|
return this;
|
|
1889
1889
|
};
|
|
1890
1890
|
protoOf(LCHab).z2 = function () {
|
|
1891
1891
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1892
|
-
return new Float32Array([this.
|
|
1892
|
+
return new Float32Array([this.f1o_1, this.g1o_1, this.h1o_1, this.i1o_1]);
|
|
1893
1893
|
};
|
|
1894
1894
|
protoOf(LCHab).toString = function () {
|
|
1895
|
-
return 'LCHab(l=' + this.
|
|
1895
|
+
return 'LCHab(l=' + this.f1o_1 + ', c=' + this.g1o_1 + ', h=' + this.h1o_1 + ', alpha=' + this.i1o_1 + ', space=' + this.j1o_1 + ')';
|
|
1896
1896
|
};
|
|
1897
1897
|
protoOf(LCHab).hashCode = function () {
|
|
1898
|
-
var result = getNumberHashCode(this.
|
|
1899
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1900
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1901
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1902
|
-
result = imul(result, 31) + hashCode(this.
|
|
1898
|
+
var result = getNumberHashCode(this.f1o_1);
|
|
1899
|
+
result = imul(result, 31) + getNumberHashCode(this.g1o_1) | 0;
|
|
1900
|
+
result = imul(result, 31) + getNumberHashCode(this.h1o_1) | 0;
|
|
1901
|
+
result = imul(result, 31) + getNumberHashCode(this.i1o_1) | 0;
|
|
1902
|
+
result = imul(result, 31) + hashCode(this.j1o_1) | 0;
|
|
1903
1903
|
return result;
|
|
1904
1904
|
};
|
|
1905
1905
|
protoOf(LCHab).equals = function (other) {
|
|
@@ -1908,27 +1908,27 @@
|
|
|
1908
1908
|
if (!(other instanceof LCHab))
|
|
1909
1909
|
return false;
|
|
1910
1910
|
var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
|
|
1911
|
-
if (!equals(this.
|
|
1911
|
+
if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
|
|
1912
1912
|
return false;
|
|
1913
|
-
if (!equals(this.
|
|
1913
|
+
if (!equals(this.g1o_1, tmp0_other_with_cast.g1o_1))
|
|
1914
1914
|
return false;
|
|
1915
|
-
if (!equals(this.
|
|
1915
|
+
if (!equals(this.h1o_1, tmp0_other_with_cast.h1o_1))
|
|
1916
1916
|
return false;
|
|
1917
|
-
if (!equals(this.
|
|
1917
|
+
if (!equals(this.i1o_1, tmp0_other_with_cast.i1o_1))
|
|
1918
1918
|
return false;
|
|
1919
|
-
if (!equals(this.
|
|
1919
|
+
if (!equals(this.j1o_1, tmp0_other_with_cast.j1o_1))
|
|
1920
1920
|
return false;
|
|
1921
1921
|
return true;
|
|
1922
1922
|
};
|
|
1923
1923
|
function LCHabColorSpace() {
|
|
1924
1924
|
}
|
|
1925
1925
|
function LCHabColorSpace_0(whitePoint) {
|
|
1926
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1926
|
+
return whitePoint.equals(Illuminant_getInstance().x1n_1) ? LCHabColorSpaces_getInstance().y1m_1 : whitePoint.equals(Illuminant_getInstance().v1n_1) ? LCHabColorSpaces_getInstance().z1m_1 : new LCHabColorSpaceImpl(whitePoint);
|
|
1927
1927
|
}
|
|
1928
1928
|
function LCHabColorSpaces() {
|
|
1929
1929
|
LCHabColorSpaces_instance = this;
|
|
1930
|
-
this.
|
|
1931
|
-
this.
|
|
1930
|
+
this.y1m_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().x1n_1);
|
|
1931
|
+
this.z1m_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().v1n_1);
|
|
1932
1932
|
}
|
|
1933
1933
|
var LCHabColorSpaces_instance;
|
|
1934
1934
|
function LCHabColorSpaces_getInstance() {
|
|
@@ -1937,37 +1937,37 @@
|
|
|
1937
1937
|
return LCHabColorSpaces_instance;
|
|
1938
1938
|
}
|
|
1939
1939
|
function LCHabColorSpaceImpl(whitePoint) {
|
|
1940
|
-
this.
|
|
1941
|
-
this.
|
|
1940
|
+
this.z1p_1 = whitePoint;
|
|
1941
|
+
this.a1q_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)]);
|
|
1942
1942
|
}
|
|
1943
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1944
|
-
return this.
|
|
1943
|
+
protoOf(LCHabColorSpaceImpl).w1l = function () {
|
|
1944
|
+
return this.z1p_1;
|
|
1945
1945
|
};
|
|
1946
1946
|
protoOf(LCHabColorSpaceImpl).pa = function () {
|
|
1947
1947
|
return 'LCHab';
|
|
1948
1948
|
};
|
|
1949
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1950
|
-
return this.
|
|
1949
|
+
protoOf(LCHabColorSpaceImpl).x1l = function () {
|
|
1950
|
+
return this.a1q_1;
|
|
1951
1951
|
};
|
|
1952
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1952
|
+
protoOf(LCHabColorSpaceImpl).r1l = function (color) {
|
|
1953
1953
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1954
1954
|
var tmp;
|
|
1955
|
-
var tmp_0 = color.
|
|
1955
|
+
var tmp_0 = color.p1k();
|
|
1956
1956
|
var tmp0_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1957
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1958
|
-
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().
|
|
1957
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1l();
|
|
1958
|
+
if ((tmp1_elvis_lhs == null ? Illuminant_getInstance().x1n_1 : tmp1_elvis_lhs).equals(this.w1l())) {
|
|
1959
1959
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1960
|
-
tmp = color.
|
|
1960
|
+
tmp = color.e1l();
|
|
1961
1961
|
} else {
|
|
1962
1962
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1963
|
-
tmp = color.
|
|
1963
|
+
tmp = color.x1k().r1n(XYZColorSpace_0(this.w1l())).e1l();
|
|
1964
1964
|
}
|
|
1965
1965
|
return tmp;
|
|
1966
1966
|
};
|
|
1967
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1967
|
+
protoOf(LCHabColorSpaceImpl).y1l = function (components) {
|
|
1968
1968
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1969
1969
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1970
|
-
var size = this.
|
|
1970
|
+
var size = this.x1l().l();
|
|
1971
1971
|
// Inline function 'kotlin.require' call
|
|
1972
1972
|
var containsLower = size - 1 | 0;
|
|
1973
1973
|
var containsArg = components.length;
|
|
@@ -1990,21 +1990,21 @@
|
|
|
1990
1990
|
tmp_2 = 1.0;
|
|
1991
1991
|
}
|
|
1992
1992
|
var tmp$ret$2 = tmp_2;
|
|
1993
|
-
return this.
|
|
1993
|
+
return this.s1m(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
1994
1994
|
};
|
|
1995
1995
|
protoOf(LCHabColorSpaceImpl).toString = function () {
|
|
1996
|
-
return 'LCHabColorSpace(' + this.
|
|
1996
|
+
return 'LCHabColorSpace(' + this.z1p_1 + ')';
|
|
1997
1997
|
};
|
|
1998
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1998
|
+
protoOf(LCHabColorSpaceImpl).s1m = function (l, c, h, alpha) {
|
|
1999
1999
|
return new LCHab(l, c, h, alpha, this);
|
|
2000
2000
|
};
|
|
2001
2001
|
protoOf(LCHabColorSpaceImpl).hashCode = function () {
|
|
2002
|
-
return this.
|
|
2002
|
+
return this.z1p_1.hashCode();
|
|
2003
2003
|
};
|
|
2004
2004
|
protoOf(LCHabColorSpaceImpl).equals = function (other) {
|
|
2005
2005
|
var tmp;
|
|
2006
2006
|
if (!(other == null) ? isInterface(other, LCHabColorSpace) : false) {
|
|
2007
|
-
tmp = this.
|
|
2007
|
+
tmp = this.z1p_1.equals(other.w1l());
|
|
2008
2008
|
} else {
|
|
2009
2009
|
tmp = false;
|
|
2010
2010
|
}
|
|
@@ -2012,21 +2012,21 @@
|
|
|
2012
2012
|
};
|
|
2013
2013
|
function Companion_4() {
|
|
2014
2014
|
Companion_instance_5 = this;
|
|
2015
|
-
this.
|
|
2015
|
+
this.b1n_1 = threeComponentInfo('l', 0.0, 1.0, 'a', -0.4, 0.4, 'b', -0.4, 0.4);
|
|
2016
2016
|
}
|
|
2017
2017
|
protoOf(Companion_4).pa = function () {
|
|
2018
2018
|
return 'Oklab';
|
|
2019
2019
|
};
|
|
2020
|
-
protoOf(Companion_4).
|
|
2021
|
-
return this.
|
|
2020
|
+
protoOf(Companion_4).x1l = function () {
|
|
2021
|
+
return this.b1n_1;
|
|
2022
2022
|
};
|
|
2023
|
-
protoOf(Companion_4).
|
|
2024
|
-
return color.
|
|
2023
|
+
protoOf(Companion_4).r1l = function (color) {
|
|
2024
|
+
return color.l1l();
|
|
2025
2025
|
};
|
|
2026
|
-
protoOf(Companion_4).
|
|
2026
|
+
protoOf(Companion_4).y1l = function (components) {
|
|
2027
2027
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2028
2028
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2029
|
-
var size = this.
|
|
2029
|
+
var size = this.x1l().l();
|
|
2030
2030
|
// Inline function 'kotlin.require' call
|
|
2031
2031
|
var containsLower = size - 1 | 0;
|
|
2032
2032
|
var containsArg = components.length;
|
|
@@ -2068,45 +2068,45 @@
|
|
|
2068
2068
|
function Oklab(l, a, b, alpha) {
|
|
2069
2069
|
Companion_getInstance_4();
|
|
2070
2070
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2071
|
-
this.
|
|
2072
|
-
this.
|
|
2073
|
-
this.
|
|
2074
|
-
this.
|
|
2071
|
+
this.n1l_1 = l;
|
|
2072
|
+
this.o1l_1 = a;
|
|
2073
|
+
this.p1l_1 = b;
|
|
2074
|
+
this.q1l_1 = alpha;
|
|
2075
2075
|
}
|
|
2076
|
-
protoOf(Oklab).
|
|
2077
|
-
return this.
|
|
2076
|
+
protoOf(Oklab).o1k = function () {
|
|
2077
|
+
return this.q1l_1;
|
|
2078
2078
|
};
|
|
2079
|
-
protoOf(Oklab).
|
|
2079
|
+
protoOf(Oklab).p1k = function () {
|
|
2080
2080
|
return Companion_getInstance_4();
|
|
2081
2081
|
};
|
|
2082
|
-
protoOf(Oklab).
|
|
2082
|
+
protoOf(Oklab).q1k = function () {
|
|
2083
2083
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2084
|
-
var ll = this.
|
|
2085
|
-
var mm = this.
|
|
2086
|
-
var ss = this.
|
|
2084
|
+
var ll = this.n1l_1 + 0.3963377774 * this.o1l_1 + 0.2158037573 * this.p1l_1;
|
|
2085
|
+
var mm = this.n1l_1 - 0.1055613458 * this.o1l_1 - 0.0638541728 * this.p1l_1;
|
|
2086
|
+
var ss = this.n1l_1 - 0.0894841775 * this.o1l_1 - 1.291485548 * this.p1l_1;
|
|
2087
2087
|
var l = ll * ll * ll;
|
|
2088
2088
|
var m = mm * mm * mm;
|
|
2089
2089
|
var s = ss * ss * ss;
|
|
2090
2090
|
var r = 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
|
|
2091
2091
|
var g = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
|
|
2092
2092
|
var b = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
2093
|
-
var f = Companion_getInstance_6().
|
|
2094
|
-
return Companion_getInstance_6().
|
|
2093
|
+
var f = Companion_getInstance_6().f1p();
|
|
2094
|
+
return Companion_getInstance_6().s1m(f.p1p(r), f.p1p(g), f.p1p(b), this.q1l_1);
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(Oklab).
|
|
2096
|
+
protoOf(Oklab).x1k = function () {
|
|
2097
2097
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2098
|
-
var ll = this.
|
|
2099
|
-
var mm = this.
|
|
2100
|
-
var ss = this.
|
|
2098
|
+
var ll = this.n1l_1 + 0.3963377774 * this.o1l_1 + 0.2158037573 * this.p1l_1;
|
|
2099
|
+
var mm = this.n1l_1 - 0.1055613458 * this.o1l_1 - 0.0638541728 * this.p1l_1;
|
|
2100
|
+
var ss = this.n1l_1 - 0.0894841775 * this.o1l_1 - 1.291485548 * this.p1l_1;
|
|
2101
2101
|
var l = ll * ll * ll;
|
|
2102
2102
|
var m = mm * mm * mm;
|
|
2103
2103
|
var s = ss * ss * ss;
|
|
2104
|
-
return Companion_getInstance_7().
|
|
2104
|
+
return Companion_getInstance_7().q1p(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.q1l_1);
|
|
2105
2105
|
};
|
|
2106
|
-
protoOf(Oklab).
|
|
2106
|
+
protoOf(Oklab).m1l = function () {
|
|
2107
2107
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
2108
|
-
var a = this.
|
|
2109
|
-
var b = this.
|
|
2108
|
+
var a = this.o1l_1;
|
|
2109
|
+
var b = this.p1l_1;
|
|
2110
2110
|
// Inline function 'kotlin.math.sqrt' call
|
|
2111
2111
|
var x = a * a + b * b;
|
|
2112
2112
|
var c = Math.sqrt(x);
|
|
@@ -2121,23 +2121,23 @@
|
|
|
2121
2121
|
var h = tmp;
|
|
2122
2122
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.toOklch.<anonymous>' call
|
|
2123
2123
|
var h_0 = normalizeDeg_0(h);
|
|
2124
|
-
return new Oklch(this.
|
|
2124
|
+
return new Oklch(this.n1l_1, c, h_0, this.q1l_1);
|
|
2125
2125
|
};
|
|
2126
|
-
protoOf(Oklab).
|
|
2126
|
+
protoOf(Oklab).l1l = function () {
|
|
2127
2127
|
return this;
|
|
2128
2128
|
};
|
|
2129
2129
|
protoOf(Oklab).z2 = function () {
|
|
2130
2130
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2131
|
-
return new Float32Array([this.
|
|
2131
|
+
return new Float32Array([this.n1l_1, this.o1l_1, this.p1l_1, this.q1l_1]);
|
|
2132
2132
|
};
|
|
2133
2133
|
protoOf(Oklab).toString = function () {
|
|
2134
|
-
return 'Oklab(l=' + this.
|
|
2134
|
+
return 'Oklab(l=' + this.n1l_1 + ', a=' + this.o1l_1 + ', b=' + this.p1l_1 + ', alpha=' + this.q1l_1 + ')';
|
|
2135
2135
|
};
|
|
2136
2136
|
protoOf(Oklab).hashCode = function () {
|
|
2137
|
-
var result = getNumberHashCode(this.
|
|
2138
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2139
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2140
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2137
|
+
var result = getNumberHashCode(this.n1l_1);
|
|
2138
|
+
result = imul(result, 31) + getNumberHashCode(this.o1l_1) | 0;
|
|
2139
|
+
result = imul(result, 31) + getNumberHashCode(this.p1l_1) | 0;
|
|
2140
|
+
result = imul(result, 31) + getNumberHashCode(this.q1l_1) | 0;
|
|
2141
2141
|
return result;
|
|
2142
2142
|
};
|
|
2143
2143
|
protoOf(Oklab).equals = function (other) {
|
|
@@ -2146,33 +2146,33 @@
|
|
|
2146
2146
|
if (!(other instanceof Oklab))
|
|
2147
2147
|
return false;
|
|
2148
2148
|
var tmp0_other_with_cast = other instanceof Oklab ? other : THROW_CCE();
|
|
2149
|
-
if (!equals(this.
|
|
2149
|
+
if (!equals(this.n1l_1, tmp0_other_with_cast.n1l_1))
|
|
2150
2150
|
return false;
|
|
2151
|
-
if (!equals(this.
|
|
2151
|
+
if (!equals(this.o1l_1, tmp0_other_with_cast.o1l_1))
|
|
2152
2152
|
return false;
|
|
2153
|
-
if (!equals(this.
|
|
2153
|
+
if (!equals(this.p1l_1, tmp0_other_with_cast.p1l_1))
|
|
2154
2154
|
return false;
|
|
2155
|
-
if (!equals(this.
|
|
2155
|
+
if (!equals(this.q1l_1, tmp0_other_with_cast.q1l_1))
|
|
2156
2156
|
return false;
|
|
2157
2157
|
return true;
|
|
2158
2158
|
};
|
|
2159
2159
|
function Companion_5() {
|
|
2160
2160
|
Companion_instance_6 = this;
|
|
2161
|
-
this.
|
|
2161
|
+
this.c1n_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)]);
|
|
2162
2162
|
}
|
|
2163
2163
|
protoOf(Companion_5).pa = function () {
|
|
2164
2164
|
return 'Oklch';
|
|
2165
2165
|
};
|
|
2166
|
-
protoOf(Companion_5).
|
|
2167
|
-
return this.
|
|
2166
|
+
protoOf(Companion_5).x1l = function () {
|
|
2167
|
+
return this.c1n_1;
|
|
2168
2168
|
};
|
|
2169
|
-
protoOf(Companion_5).
|
|
2170
|
-
return color.
|
|
2169
|
+
protoOf(Companion_5).r1l = function (color) {
|
|
2170
|
+
return color.m1l();
|
|
2171
2171
|
};
|
|
2172
|
-
protoOf(Companion_5).
|
|
2172
|
+
protoOf(Companion_5).y1l = function (components) {
|
|
2173
2173
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2174
2174
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2175
|
-
var size = this.
|
|
2175
|
+
var size = this.x1l().l();
|
|
2176
2176
|
// Inline function 'kotlin.require' call
|
|
2177
2177
|
var containsLower = size - 1 | 0;
|
|
2178
2178
|
var containsArg = components.length;
|
|
@@ -2206,53 +2206,53 @@
|
|
|
2206
2206
|
function Oklch(l, c, h, alpha) {
|
|
2207
2207
|
Companion_getInstance_5();
|
|
2208
2208
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2209
|
-
this.
|
|
2210
|
-
this.
|
|
2211
|
-
this.
|
|
2212
|
-
this.
|
|
2209
|
+
this.o1o_1 = l;
|
|
2210
|
+
this.p1o_1 = c;
|
|
2211
|
+
this.q1o_1 = h;
|
|
2212
|
+
this.r1o_1 = alpha;
|
|
2213
2213
|
}
|
|
2214
|
-
protoOf(Oklch).
|
|
2215
|
-
return this.
|
|
2214
|
+
protoOf(Oklch).s1o = function () {
|
|
2215
|
+
return this.q1o_1;
|
|
2216
2216
|
};
|
|
2217
|
-
protoOf(Oklch).
|
|
2218
|
-
return this.
|
|
2217
|
+
protoOf(Oklch).o1k = function () {
|
|
2218
|
+
return this.r1o_1;
|
|
2219
2219
|
};
|
|
2220
|
-
protoOf(Oklch).
|
|
2220
|
+
protoOf(Oklch).p1k = function () {
|
|
2221
2221
|
return Companion_getInstance_5();
|
|
2222
2222
|
};
|
|
2223
|
-
protoOf(Oklch).
|
|
2224
|
-
return this.
|
|
2223
|
+
protoOf(Oklch).q1k = function () {
|
|
2224
|
+
return this.l1l().q1k();
|
|
2225
2225
|
};
|
|
2226
|
-
protoOf(Oklch).
|
|
2227
|
-
return this.
|
|
2226
|
+
protoOf(Oklch).x1k = function () {
|
|
2227
|
+
return this.l1l().x1k();
|
|
2228
2228
|
};
|
|
2229
|
-
protoOf(Oklch).
|
|
2229
|
+
protoOf(Oklch).l1l = function () {
|
|
2230
2230
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
2231
|
-
var c = this.
|
|
2232
|
-
var h = this.
|
|
2231
|
+
var c = this.p1o_1;
|
|
2232
|
+
var h = this.q1o_1;
|
|
2233
2233
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
2234
2234
|
// Inline function 'kotlin.math.cos' call
|
|
2235
2235
|
var a = c * Math.cos(hDegrees);
|
|
2236
2236
|
// Inline function 'kotlin.math.sin' call
|
|
2237
2237
|
var b = c * Math.sin(hDegrees);
|
|
2238
2238
|
// Inline function 'com.github.ajalt.colormath.model.Oklch.toOklab.<anonymous>' call
|
|
2239
|
-
return new Oklab(this.
|
|
2239
|
+
return new Oklab(this.o1o_1, a, b, this.r1o_1);
|
|
2240
2240
|
};
|
|
2241
|
-
protoOf(Oklch).
|
|
2241
|
+
protoOf(Oklch).m1l = function () {
|
|
2242
2242
|
return this;
|
|
2243
2243
|
};
|
|
2244
2244
|
protoOf(Oklch).z2 = function () {
|
|
2245
2245
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2246
|
-
return new Float32Array([this.
|
|
2246
|
+
return new Float32Array([this.o1o_1, this.p1o_1, this.q1o_1, this.r1o_1]);
|
|
2247
2247
|
};
|
|
2248
2248
|
protoOf(Oklch).toString = function () {
|
|
2249
|
-
return 'Oklch(l=' + this.
|
|
2249
|
+
return 'Oklch(l=' + this.o1o_1 + ', c=' + this.p1o_1 + ', h=' + this.q1o_1 + ', alpha=' + this.r1o_1 + ')';
|
|
2250
2250
|
};
|
|
2251
2251
|
protoOf(Oklch).hashCode = function () {
|
|
2252
|
-
var result = getNumberHashCode(this.
|
|
2253
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2254
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2255
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2252
|
+
var result = getNumberHashCode(this.o1o_1);
|
|
2253
|
+
result = imul(result, 31) + getNumberHashCode(this.p1o_1) | 0;
|
|
2254
|
+
result = imul(result, 31) + getNumberHashCode(this.q1o_1) | 0;
|
|
2255
|
+
result = imul(result, 31) + getNumberHashCode(this.r1o_1) | 0;
|
|
2256
2256
|
return result;
|
|
2257
2257
|
};
|
|
2258
2258
|
protoOf(Oklch).equals = function (other) {
|
|
@@ -2261,30 +2261,30 @@
|
|
|
2261
2261
|
if (!(other instanceof Oklch))
|
|
2262
2262
|
return false;
|
|
2263
2263
|
var tmp0_other_with_cast = other instanceof Oklch ? other : THROW_CCE();
|
|
2264
|
-
if (!equals(this.
|
|
2264
|
+
if (!equals(this.o1o_1, tmp0_other_with_cast.o1o_1))
|
|
2265
2265
|
return false;
|
|
2266
|
-
if (!equals(this.
|
|
2266
|
+
if (!equals(this.p1o_1, tmp0_other_with_cast.p1o_1))
|
|
2267
2267
|
return false;
|
|
2268
|
-
if (!equals(this.
|
|
2268
|
+
if (!equals(this.q1o_1, tmp0_other_with_cast.q1o_1))
|
|
2269
2269
|
return false;
|
|
2270
|
-
if (!equals(this.
|
|
2270
|
+
if (!equals(this.r1o_1, tmp0_other_with_cast.r1o_1))
|
|
2271
2271
|
return false;
|
|
2272
2272
|
return true;
|
|
2273
2273
|
};
|
|
2274
2274
|
function GammaTransferFunctions(gamma) {
|
|
2275
|
-
this.
|
|
2275
|
+
this.c1q_1 = gamma;
|
|
2276
2276
|
}
|
|
2277
|
-
protoOf(GammaTransferFunctions).
|
|
2278
|
-
return spow(x, this.
|
|
2277
|
+
protoOf(GammaTransferFunctions).o1p = function (x) {
|
|
2278
|
+
return spow(x, this.c1q_1);
|
|
2279
2279
|
};
|
|
2280
|
-
protoOf(GammaTransferFunctions).
|
|
2281
|
-
return spow(x, 1.0 / this.
|
|
2280
|
+
protoOf(GammaTransferFunctions).p1p = function (x) {
|
|
2281
|
+
return spow(x, 1.0 / this.c1q_1);
|
|
2282
2282
|
};
|
|
2283
2283
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
2284
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
2284
|
+
return 'GammaTransferFunctions(gamma=' + this.c1q_1 + ')';
|
|
2285
2285
|
};
|
|
2286
2286
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
2287
|
-
return getNumberHashCode(this.
|
|
2287
|
+
return getNumberHashCode(this.c1q_1);
|
|
2288
2288
|
};
|
|
2289
2289
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
2290
2290
|
if (this === other)
|
|
@@ -2292,16 +2292,16 @@
|
|
|
2292
2292
|
if (!(other instanceof GammaTransferFunctions))
|
|
2293
2293
|
return false;
|
|
2294
2294
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
2295
|
-
if (!equals(this.
|
|
2295
|
+
if (!equals(this.c1q_1, tmp0_other_with_cast.c1q_1))
|
|
2296
2296
|
return false;
|
|
2297
2297
|
return true;
|
|
2298
2298
|
};
|
|
2299
2299
|
function LinearTransferFunctions() {
|
|
2300
2300
|
}
|
|
2301
|
-
protoOf(LinearTransferFunctions).
|
|
2301
|
+
protoOf(LinearTransferFunctions).o1p = function (x) {
|
|
2302
2302
|
return x;
|
|
2303
2303
|
};
|
|
2304
|
-
protoOf(LinearTransferFunctions).
|
|
2304
|
+
protoOf(LinearTransferFunctions).p1p = function (x) {
|
|
2305
2305
|
return x;
|
|
2306
2306
|
};
|
|
2307
2307
|
var LinearTransferFunctions_instance;
|
|
@@ -2312,49 +2312,49 @@
|
|
|
2312
2312
|
}
|
|
2313
2313
|
function Companion_6() {
|
|
2314
2314
|
Companion_instance_7 = this;
|
|
2315
|
-
this.
|
|
2315
|
+
this.q1m_1 = RGBColorSpaces_getInstance().d1n_1;
|
|
2316
2316
|
}
|
|
2317
|
-
protoOf(Companion_6).
|
|
2318
|
-
return this.
|
|
2317
|
+
protoOf(Companion_6).x1l = function () {
|
|
2318
|
+
return this.q1m_1.x1l();
|
|
2319
2319
|
};
|
|
2320
|
-
protoOf(Companion_6).
|
|
2321
|
-
return this.
|
|
2320
|
+
protoOf(Companion_6).e1q = function () {
|
|
2321
|
+
return this.q1m_1.e1q();
|
|
2322
2322
|
};
|
|
2323
|
-
protoOf(Companion_6).
|
|
2324
|
-
return this.
|
|
2323
|
+
protoOf(Companion_6).d1q = function () {
|
|
2324
|
+
return this.q1m_1.d1q();
|
|
2325
2325
|
};
|
|
2326
2326
|
protoOf(Companion_6).pa = function () {
|
|
2327
|
-
return this.
|
|
2327
|
+
return this.q1m_1.pa();
|
|
2328
2328
|
};
|
|
2329
|
-
protoOf(Companion_6).
|
|
2330
|
-
return this.
|
|
2329
|
+
protoOf(Companion_6).f1p = function () {
|
|
2330
|
+
return this.q1m_1.f1p();
|
|
2331
2331
|
};
|
|
2332
|
-
protoOf(Companion_6).
|
|
2333
|
-
return this.
|
|
2332
|
+
protoOf(Companion_6).w1l = function () {
|
|
2333
|
+
return this.q1m_1.w1l();
|
|
2334
2334
|
};
|
|
2335
|
-
protoOf(Companion_6).
|
|
2336
|
-
return this.
|
|
2335
|
+
protoOf(Companion_6).r1l = function (color) {
|
|
2336
|
+
return this.q1m_1.r1l(color);
|
|
2337
2337
|
};
|
|
2338
|
-
protoOf(Companion_6).
|
|
2339
|
-
return this.
|
|
2338
|
+
protoOf(Companion_6).y1l = function (components) {
|
|
2339
|
+
return this.q1m_1.y1l(components);
|
|
2340
2340
|
};
|
|
2341
|
-
protoOf(Companion_6).
|
|
2342
|
-
return this.
|
|
2341
|
+
protoOf(Companion_6).w1o = function (r, g, b, alpha) {
|
|
2342
|
+
return this.q1m_1.w1o(r, g, b, alpha);
|
|
2343
2343
|
};
|
|
2344
|
-
protoOf(Companion_6).
|
|
2345
|
-
return this.
|
|
2344
|
+
protoOf(Companion_6).s1m = function (r, g, b, alpha) {
|
|
2345
|
+
return this.q1m_1.s1m(r, g, b, alpha);
|
|
2346
2346
|
};
|
|
2347
|
-
protoOf(Companion_6).
|
|
2348
|
-
return this.
|
|
2347
|
+
protoOf(Companion_6).q1p = function (r, g, b, alpha) {
|
|
2348
|
+
return this.q1m_1.q1p(r, g, b, alpha);
|
|
2349
2349
|
};
|
|
2350
|
-
protoOf(Companion_6).
|
|
2351
|
-
return this.
|
|
2350
|
+
protoOf(Companion_6).r1m = function (hex) {
|
|
2351
|
+
return this.q1m_1.r1m(hex);
|
|
2352
2352
|
};
|
|
2353
2353
|
protoOf(Companion_6).equals = function (other) {
|
|
2354
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2354
|
+
return equals(RGBColorSpaces_getInstance().d1n_1, other);
|
|
2355
2355
|
};
|
|
2356
2356
|
protoOf(Companion_6).hashCode = function () {
|
|
2357
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2357
|
+
return hashCode(RGBColorSpaces_getInstance().d1n_1);
|
|
2358
2358
|
};
|
|
2359
2359
|
var Companion_instance_7;
|
|
2360
2360
|
function Companion_getInstance_6() {
|
|
@@ -2364,37 +2364,37 @@
|
|
|
2364
2364
|
}
|
|
2365
2365
|
function RGB(r, g, b, alpha, space) {
|
|
2366
2366
|
Companion_getInstance_6();
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2367
|
+
this.s1k_1 = r;
|
|
2368
|
+
this.t1k_1 = g;
|
|
2369
|
+
this.u1k_1 = b;
|
|
2370
|
+
this.v1k_1 = alpha;
|
|
2371
|
+
this.w1k_1 = space;
|
|
2372
2372
|
}
|
|
2373
|
-
protoOf(RGB).
|
|
2374
|
-
return this.
|
|
2373
|
+
protoOf(RGB).o1k = function () {
|
|
2374
|
+
return this.v1k_1;
|
|
2375
2375
|
};
|
|
2376
|
-
protoOf(RGB).
|
|
2377
|
-
return this.
|
|
2376
|
+
protoOf(RGB).p1k = function () {
|
|
2377
|
+
return this.w1k_1;
|
|
2378
2378
|
};
|
|
2379
|
-
protoOf(RGB).
|
|
2379
|
+
protoOf(RGB).a1o = function () {
|
|
2380
2380
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2381
2381
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toRGBInt.<anonymous>' call
|
|
2382
|
-
var $this$toSRGB = this.
|
|
2383
|
-
return _RGBInt___init__impl__lqova7_1($this$toSRGB.
|
|
2382
|
+
var $this$toSRGB = this.f1q(SRGB_getInstance());
|
|
2383
|
+
return _RGBInt___init__impl__lqova7_1($this$toSRGB.s1k_1, $this$toSRGB.t1k_1, $this$toSRGB.u1k_1, nanToOne($this$toSRGB.v1k_1));
|
|
2384
2384
|
};
|
|
2385
|
-
protoOf(RGB).
|
|
2386
|
-
var f = SRGB_getInstance().
|
|
2387
|
-
return equals(this.
|
|
2385
|
+
protoOf(RGB).f1q = function (space) {
|
|
2386
|
+
var f = SRGB_getInstance().f1p();
|
|
2387
|
+
return equals(this.w1k_1, space) ? this : (equals(this.w1k_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().e1n_1) : false) ? space.s1m(f.o1p(this.s1k_1), f.o1p(this.t1k_1), f.o1p(this.u1k_1), this.v1k_1) : (equals(this.w1k_1, RGBColorSpaces_getInstance().e1n_1) ? equals(space, SRGB_getInstance()) : false) ? space.s1m(f.p1p(this.s1k_1), f.p1p(this.t1k_1), f.p1p(this.u1k_1), this.v1k_1) : this.x1k().g1q(space);
|
|
2388
2388
|
};
|
|
2389
|
-
protoOf(RGB).
|
|
2389
|
+
protoOf(RGB).r1k = function () {
|
|
2390
2390
|
var tmp$ret$3;
|
|
2391
2391
|
$l$block: {
|
|
2392
2392
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2393
2393
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2394
|
-
var $this$toSRGB = this.
|
|
2395
|
-
var r = $this$toSRGB.
|
|
2396
|
-
var g = $this$toSRGB.
|
|
2397
|
-
var b = $this$toSRGB.
|
|
2394
|
+
var $this$toSRGB = this.f1q(SRGB_getInstance());
|
|
2395
|
+
var r = $this$toSRGB.s1k_1;
|
|
2396
|
+
var g = $this$toSRGB.t1k_1;
|
|
2397
|
+
var b = $this$toSRGB.u1k_1;
|
|
2398
2398
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2399
2399
|
var min = Math.min(r, g, b);
|
|
2400
2400
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2417,33 +2417,33 @@
|
|
|
2417
2417
|
var h_0 = normalizeDeg(h);
|
|
2418
2418
|
var l = (min + max) / 2.0;
|
|
2419
2419
|
var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
|
|
2420
|
-
tmp$ret$3 = new HSL(h_0, s, l, this.
|
|
2420
|
+
tmp$ret$3 = new HSL(h_0, s, l, this.v1k_1);
|
|
2421
2421
|
break $l$block;
|
|
2422
2422
|
}
|
|
2423
2423
|
return tmp$ret$3;
|
|
2424
2424
|
};
|
|
2425
|
-
protoOf(RGB).
|
|
2426
|
-
var f = this.
|
|
2425
|
+
protoOf(RGB).x1k = function () {
|
|
2426
|
+
var f = this.w1k_1.f1p();
|
|
2427
2427
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2428
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
2429
|
-
var v0 = f.
|
|
2430
|
-
var v1 = f.
|
|
2431
|
-
var v2 = f.
|
|
2428
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.w1k_1.d1q());
|
|
2429
|
+
var v0 = f.o1p(this.s1k_1);
|
|
2430
|
+
var v1 = f.o1p(this.t1k_1);
|
|
2431
|
+
var v2 = f.o1p(this.u1k_1);
|
|
2432
2432
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
2433
2433
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
2434
2434
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
2435
2435
|
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
2436
|
-
return XYZColorSpace_0(this.
|
|
2436
|
+
return XYZColorSpace_0(this.w1k_1.w1l()).s1m(x, y, z, this.v1k_1);
|
|
2437
2437
|
};
|
|
2438
|
-
protoOf(RGB).
|
|
2438
|
+
protoOf(RGB).k1l = function () {
|
|
2439
2439
|
var tmp$ret$3;
|
|
2440
2440
|
$l$block: {
|
|
2441
2441
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2442
2442
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2443
|
-
var $this$toSRGB = this.
|
|
2444
|
-
var r = $this$toSRGB.
|
|
2445
|
-
var g = $this$toSRGB.
|
|
2446
|
-
var b = $this$toSRGB.
|
|
2443
|
+
var $this$toSRGB = this.f1q(SRGB_getInstance());
|
|
2444
|
+
var r = $this$toSRGB.s1k_1;
|
|
2445
|
+
var g = $this$toSRGB.t1k_1;
|
|
2446
|
+
var b = $this$toSRGB.u1k_1;
|
|
2447
2447
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2448
2448
|
var min = Math.min(r, g, b);
|
|
2449
2449
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2464,17 +2464,17 @@
|
|
|
2464
2464
|
var h = tmp * 60;
|
|
2465
2465
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHWB.<anonymous>' call
|
|
2466
2466
|
var hue = normalizeDeg(h);
|
|
2467
|
-
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.
|
|
2467
|
+
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.v1k_1);
|
|
2468
2468
|
break $l$block;
|
|
2469
2469
|
}
|
|
2470
2470
|
return tmp$ret$3;
|
|
2471
2471
|
};
|
|
2472
|
-
protoOf(RGB).
|
|
2473
|
-
if (!equals(this.
|
|
2474
|
-
return this.
|
|
2475
|
-
var r = this.
|
|
2476
|
-
var g = this.
|
|
2477
|
-
var b = this.
|
|
2472
|
+
protoOf(RGB).l1l = function () {
|
|
2473
|
+
if (!equals(this.w1k_1, RGBColorSpaces_getInstance().d1n_1))
|
|
2474
|
+
return this.x1k().l1l();
|
|
2475
|
+
var r = this.w1k_1.f1p().o1p(this.s1k_1);
|
|
2476
|
+
var g = this.w1k_1.f1p().o1p(this.t1k_1);
|
|
2477
|
+
var b = this.w1k_1.f1p().o1p(this.u1k_1);
|
|
2478
2478
|
var l = 0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b;
|
|
2479
2479
|
var m = 0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b;
|
|
2480
2480
|
var s = 0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b;
|
|
@@ -2484,24 +2484,24 @@
|
|
|
2484
2484
|
var mm = Math.cbrt(m);
|
|
2485
2485
|
// Inline function 'kotlin.math.cbrt' call
|
|
2486
2486
|
var ss = Math.cbrt(s);
|
|
2487
|
-
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.
|
|
2487
|
+
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.v1k_1);
|
|
2488
2488
|
};
|
|
2489
|
-
protoOf(RGB).
|
|
2490
|
-
return this.
|
|
2489
|
+
protoOf(RGB).q1k = function () {
|
|
2490
|
+
return this.f1q(RGBColorSpaces_getInstance().d1n_1);
|
|
2491
2491
|
};
|
|
2492
2492
|
protoOf(RGB).z2 = function () {
|
|
2493
2493
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2494
|
-
return new Float32Array([this.
|
|
2494
|
+
return new Float32Array([this.s1k_1, this.t1k_1, this.u1k_1, this.v1k_1]);
|
|
2495
2495
|
};
|
|
2496
2496
|
protoOf(RGB).toString = function () {
|
|
2497
|
-
return 'RGB(r=' + this.
|
|
2497
|
+
return 'RGB(r=' + this.s1k_1 + ', g=' + this.t1k_1 + ', b=' + this.u1k_1 + ', alpha=' + this.v1k_1 + ', space=' + this.w1k_1 + ')';
|
|
2498
2498
|
};
|
|
2499
2499
|
protoOf(RGB).hashCode = function () {
|
|
2500
|
-
var result = getNumberHashCode(this.
|
|
2501
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2502
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2503
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2504
|
-
result = imul(result, 31) + hashCode(this.
|
|
2500
|
+
var result = getNumberHashCode(this.s1k_1);
|
|
2501
|
+
result = imul(result, 31) + getNumberHashCode(this.t1k_1) | 0;
|
|
2502
|
+
result = imul(result, 31) + getNumberHashCode(this.u1k_1) | 0;
|
|
2503
|
+
result = imul(result, 31) + getNumberHashCode(this.v1k_1) | 0;
|
|
2504
|
+
result = imul(result, 31) + hashCode(this.w1k_1) | 0;
|
|
2505
2505
|
return result;
|
|
2506
2506
|
};
|
|
2507
2507
|
protoOf(RGB).equals = function (other) {
|
|
@@ -2510,15 +2510,15 @@
|
|
|
2510
2510
|
if (!(other instanceof RGB))
|
|
2511
2511
|
return false;
|
|
2512
2512
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
2513
|
-
if (!equals(this.
|
|
2513
|
+
if (!equals(this.s1k_1, tmp0_other_with_cast.s1k_1))
|
|
2514
2514
|
return false;
|
|
2515
|
-
if (!equals(this.
|
|
2515
|
+
if (!equals(this.t1k_1, tmp0_other_with_cast.t1k_1))
|
|
2516
2516
|
return false;
|
|
2517
|
-
if (!equals(this.
|
|
2517
|
+
if (!equals(this.u1k_1, tmp0_other_with_cast.u1k_1))
|
|
2518
2518
|
return false;
|
|
2519
|
-
if (!equals(this.
|
|
2519
|
+
if (!equals(this.v1k_1, tmp0_other_with_cast.v1k_1))
|
|
2520
2520
|
return false;
|
|
2521
|
-
if (!equals(this.
|
|
2521
|
+
if (!equals(this.w1k_1, tmp0_other_with_cast.w1k_1))
|
|
2522
2522
|
return false;
|
|
2523
2523
|
return true;
|
|
2524
2524
|
};
|
|
@@ -2619,17 +2619,17 @@
|
|
|
2619
2619
|
}
|
|
2620
2620
|
var ACES_AP1_B;
|
|
2621
2621
|
function RGBColorSpaces$SRGB$lambda($this$$receiver, it) {
|
|
2622
|
-
return it.
|
|
2622
|
+
return it.q1k();
|
|
2623
2623
|
}
|
|
2624
2624
|
function RGBColorSpaces$BT2020$lambda($this$$receiver, color) {
|
|
2625
2625
|
var tmp;
|
|
2626
2626
|
if (color instanceof RGB) {
|
|
2627
|
-
tmp = color.
|
|
2627
|
+
tmp = color.f1q($this$$receiver);
|
|
2628
2628
|
} else {
|
|
2629
2629
|
if (color instanceof ICtCp) {
|
|
2630
|
-
tmp = color.
|
|
2630
|
+
tmp = color.e1p();
|
|
2631
2631
|
} else {
|
|
2632
|
-
tmp = color.
|
|
2632
|
+
tmp = color.x1k().g1q($this$$receiver);
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
2635
|
return tmp;
|
|
@@ -2637,29 +2637,29 @@
|
|
|
2637
2637
|
function RGBColorSpaces() {
|
|
2638
2638
|
RGBColorSpaces_instance = this;
|
|
2639
2639
|
var tmp = this;
|
|
2640
|
-
var tmp_0 = Illuminant_getInstance().
|
|
2640
|
+
var tmp_0 = Illuminant_getInstance().x1n_1;
|
|
2641
2641
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
2642
2642
|
var tmp_2 = get_SRGB_R();
|
|
2643
2643
|
var tmp_3 = get_SRGB_G();
|
|
2644
2644
|
var tmp_4 = get_SRGB_B();
|
|
2645
|
-
tmp.
|
|
2646
|
-
this.
|
|
2647
|
-
this.
|
|
2648
|
-
this.
|
|
2649
|
-
this.
|
|
2650
|
-
this.
|
|
2651
|
-
this.
|
|
2645
|
+
tmp.d1n_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
2646
|
+
this.e1n_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().x1n_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
2647
|
+
this.f1n_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
2648
|
+
this.g1n_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2649
|
+
this.h1n_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2650
|
+
this.i1n_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2651
|
+
this.j1n_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().x1n_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));
|
|
2652
2652
|
var tmp_5 = this;
|
|
2653
|
-
var tmp_6 = Illuminant_getInstance().
|
|
2653
|
+
var tmp_6 = Illuminant_getInstance().x1n_1;
|
|
2654
2654
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
2655
2655
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
2656
2656
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
2657
2657
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
2658
|
-
tmp_5.
|
|
2659
|
-
this.
|
|
2660
|
-
this.
|
|
2661
|
-
this.
|
|
2662
|
-
this.
|
|
2658
|
+
tmp_5.k1n_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
2659
|
+
this.l1n_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().x1n_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
2660
|
+
this.m1n_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));
|
|
2661
|
+
this.n1n_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().x1n_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2662
|
+
this.o1n_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().v1n_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));
|
|
2663
2663
|
}
|
|
2664
2664
|
var RGBColorSpaces_instance;
|
|
2665
2665
|
function RGBColorSpaces_getInstance() {
|
|
@@ -2669,49 +2669,49 @@
|
|
|
2669
2669
|
}
|
|
2670
2670
|
function SRGB() {
|
|
2671
2671
|
SRGB_instance = this;
|
|
2672
|
-
this.
|
|
2672
|
+
this.x1o_1 = RGBColorSpaces_getInstance().d1n_1;
|
|
2673
2673
|
}
|
|
2674
|
-
protoOf(SRGB).
|
|
2675
|
-
return this.
|
|
2674
|
+
protoOf(SRGB).x1l = function () {
|
|
2675
|
+
return this.x1o_1.x1l();
|
|
2676
2676
|
};
|
|
2677
|
-
protoOf(SRGB).
|
|
2678
|
-
return this.
|
|
2677
|
+
protoOf(SRGB).e1q = function () {
|
|
2678
|
+
return this.x1o_1.e1q();
|
|
2679
2679
|
};
|
|
2680
|
-
protoOf(SRGB).
|
|
2681
|
-
return this.
|
|
2680
|
+
protoOf(SRGB).d1q = function () {
|
|
2681
|
+
return this.x1o_1.d1q();
|
|
2682
2682
|
};
|
|
2683
2683
|
protoOf(SRGB).pa = function () {
|
|
2684
|
-
return this.
|
|
2684
|
+
return this.x1o_1.pa();
|
|
2685
2685
|
};
|
|
2686
|
-
protoOf(SRGB).
|
|
2687
|
-
return this.
|
|
2686
|
+
protoOf(SRGB).f1p = function () {
|
|
2687
|
+
return this.x1o_1.f1p();
|
|
2688
2688
|
};
|
|
2689
|
-
protoOf(SRGB).
|
|
2690
|
-
return this.
|
|
2689
|
+
protoOf(SRGB).w1l = function () {
|
|
2690
|
+
return this.x1o_1.w1l();
|
|
2691
2691
|
};
|
|
2692
|
-
protoOf(SRGB).
|
|
2693
|
-
return this.
|
|
2692
|
+
protoOf(SRGB).r1l = function (color) {
|
|
2693
|
+
return this.x1o_1.r1l(color);
|
|
2694
2694
|
};
|
|
2695
|
-
protoOf(SRGB).
|
|
2696
|
-
return this.
|
|
2695
|
+
protoOf(SRGB).y1l = function (components) {
|
|
2696
|
+
return this.x1o_1.y1l(components);
|
|
2697
2697
|
};
|
|
2698
|
-
protoOf(SRGB).
|
|
2699
|
-
return this.
|
|
2698
|
+
protoOf(SRGB).w1o = function (r, g, b, alpha) {
|
|
2699
|
+
return this.x1o_1.w1o(r, g, b, alpha);
|
|
2700
2700
|
};
|
|
2701
|
-
protoOf(SRGB).
|
|
2702
|
-
return this.
|
|
2701
|
+
protoOf(SRGB).s1m = function (r, g, b, alpha) {
|
|
2702
|
+
return this.x1o_1.s1m(r, g, b, alpha);
|
|
2703
2703
|
};
|
|
2704
|
-
protoOf(SRGB).
|
|
2705
|
-
return this.
|
|
2704
|
+
protoOf(SRGB).q1p = function (r, g, b, alpha) {
|
|
2705
|
+
return this.x1o_1.q1p(r, g, b, alpha);
|
|
2706
2706
|
};
|
|
2707
|
-
protoOf(SRGB).
|
|
2708
|
-
return this.
|
|
2707
|
+
protoOf(SRGB).r1m = function (hex) {
|
|
2708
|
+
return this.x1o_1.r1m(hex);
|
|
2709
2709
|
};
|
|
2710
2710
|
protoOf(SRGB).equals = function (other) {
|
|
2711
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2711
|
+
return equals(RGBColorSpaces_getInstance().d1n_1, other);
|
|
2712
2712
|
};
|
|
2713
2713
|
protoOf(SRGB).hashCode = function () {
|
|
2714
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2714
|
+
return hashCode(RGBColorSpaces_getInstance().d1n_1);
|
|
2715
2715
|
};
|
|
2716
2716
|
protoOf(SRGB).toString = function () {
|
|
2717
2717
|
return 'sRGB';
|
|
@@ -2723,36 +2723,36 @@
|
|
|
2723
2723
|
return SRGB_instance;
|
|
2724
2724
|
}
|
|
2725
2725
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
2726
|
-
this.
|
|
2727
|
-
this.
|
|
2728
|
-
this.
|
|
2729
|
-
this.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2733
|
-
this.
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2726
|
+
this.h1q_1 = name;
|
|
2727
|
+
this.i1q_1 = whitePoint;
|
|
2728
|
+
this.j1q_1 = transferFunctions;
|
|
2729
|
+
this.k1q_1 = r;
|
|
2730
|
+
this.l1q_1 = g;
|
|
2731
|
+
this.m1q_1 = b;
|
|
2732
|
+
this.n1q_1 = convertImpl;
|
|
2733
|
+
this.o1q_1 = zeroOneComponentInfo('RGB');
|
|
2734
|
+
this.p1q_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i1q_1, this.k1q_1, this.l1q_1, this.m1q_1));
|
|
2735
|
+
this.q1q_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.p1q_1)));
|
|
2736
2736
|
}
|
|
2737
2737
|
protoOf(RGBColorSpaceImpl).pa = function () {
|
|
2738
|
-
return this.
|
|
2738
|
+
return this.h1q_1;
|
|
2739
2739
|
};
|
|
2740
|
-
protoOf(RGBColorSpaceImpl).
|
|
2741
|
-
return this.
|
|
2740
|
+
protoOf(RGBColorSpaceImpl).w1l = function () {
|
|
2741
|
+
return this.i1q_1;
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(RGBColorSpaceImpl).
|
|
2744
|
-
return this.
|
|
2743
|
+
protoOf(RGBColorSpaceImpl).f1p = function () {
|
|
2744
|
+
return this.j1q_1;
|
|
2745
2745
|
};
|
|
2746
|
-
protoOf(RGBColorSpaceImpl).
|
|
2747
|
-
return this.
|
|
2746
|
+
protoOf(RGBColorSpaceImpl).x1l = function () {
|
|
2747
|
+
return this.o1q_1;
|
|
2748
2748
|
};
|
|
2749
|
-
protoOf(RGBColorSpaceImpl).
|
|
2750
|
-
return this.
|
|
2749
|
+
protoOf(RGBColorSpaceImpl).r1l = function (color) {
|
|
2750
|
+
return this.n1q_1(this, color);
|
|
2751
2751
|
};
|
|
2752
|
-
protoOf(RGBColorSpaceImpl).
|
|
2752
|
+
protoOf(RGBColorSpaceImpl).y1l = function (components) {
|
|
2753
2753
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2754
2754
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2755
|
-
var size = this.
|
|
2755
|
+
var size = this.x1l().l();
|
|
2756
2756
|
// Inline function 'kotlin.require' call
|
|
2757
2757
|
var containsLower = size - 1 | 0;
|
|
2758
2758
|
var containsArg = components.length;
|
|
@@ -2775,18 +2775,18 @@
|
|
|
2775
2775
|
tmp_2 = 1.0;
|
|
2776
2776
|
}
|
|
2777
2777
|
var tmp$ret$2 = tmp_2;
|
|
2778
|
-
return this.
|
|
2778
|
+
return this.s1m(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
2779
2779
|
};
|
|
2780
|
-
protoOf(RGBColorSpaceImpl).
|
|
2781
|
-
return this.
|
|
2780
|
+
protoOf(RGBColorSpaceImpl).d1q = function () {
|
|
2781
|
+
return this.p1q_1;
|
|
2782
2782
|
};
|
|
2783
|
-
protoOf(RGBColorSpaceImpl).
|
|
2784
|
-
return this.
|
|
2783
|
+
protoOf(RGBColorSpaceImpl).e1q = function () {
|
|
2784
|
+
return this.q1q_1;
|
|
2785
2785
|
};
|
|
2786
2786
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
2787
|
-
return this.
|
|
2787
|
+
return this.h1q_1;
|
|
2788
2788
|
};
|
|
2789
|
-
protoOf(RGBColorSpaceImpl).
|
|
2789
|
+
protoOf(RGBColorSpaceImpl).s1m = function (r, g, b, alpha) {
|
|
2790
2790
|
return new RGB(r, g, b, alpha, this);
|
|
2791
2791
|
};
|
|
2792
2792
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -2794,42 +2794,42 @@
|
|
|
2794
2794
|
return true;
|
|
2795
2795
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
2796
2796
|
return false;
|
|
2797
|
-
if (!(this.
|
|
2797
|
+
if (!(this.h1q_1 === other.pa()))
|
|
2798
2798
|
return false;
|
|
2799
|
-
if (!this.
|
|
2799
|
+
if (!this.i1q_1.equals(other.w1l()))
|
|
2800
2800
|
return false;
|
|
2801
|
-
if (!equals(this.
|
|
2801
|
+
if (!equals(this.j1q_1, other.f1p()))
|
|
2802
2802
|
return false;
|
|
2803
2803
|
if (other instanceof RGBColorSpaceImpl) {
|
|
2804
|
-
if (!this.
|
|
2804
|
+
if (!this.k1q_1.equals(other.k1q_1))
|
|
2805
2805
|
return false;
|
|
2806
|
-
if (!this.
|
|
2806
|
+
if (!this.l1q_1.equals(other.l1q_1))
|
|
2807
2807
|
return false;
|
|
2808
|
-
if (!this.
|
|
2808
|
+
if (!this.m1q_1.equals(other.m1q_1))
|
|
2809
2809
|
return false;
|
|
2810
2810
|
} else {
|
|
2811
|
-
if (!contentEquals(this.
|
|
2811
|
+
if (!contentEquals(this.p1q_1, other.d1q()))
|
|
2812
2812
|
return false;
|
|
2813
|
-
if (!contentEquals(this.
|
|
2813
|
+
if (!contentEquals(this.q1q_1, other.e1q()))
|
|
2814
2814
|
return false;
|
|
2815
2815
|
}
|
|
2816
2816
|
return true;
|
|
2817
2817
|
};
|
|
2818
2818
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
2819
|
-
var result = getStringHashCode(this.
|
|
2820
|
-
result = imul(31, result) + this.
|
|
2821
|
-
result = imul(31, result) + hashCode(this.
|
|
2822
|
-
result = imul(31, result) + this.
|
|
2823
|
-
result = imul(31, result) + this.
|
|
2824
|
-
result = imul(31, result) + this.
|
|
2819
|
+
var result = getStringHashCode(this.h1q_1);
|
|
2820
|
+
result = imul(31, result) + this.i1q_1.hashCode() | 0;
|
|
2821
|
+
result = imul(31, result) + hashCode(this.j1q_1) | 0;
|
|
2822
|
+
result = imul(31, result) + this.k1q_1.hashCode() | 0;
|
|
2823
|
+
result = imul(31, result) + this.l1q_1.hashCode() | 0;
|
|
2824
|
+
result = imul(31, result) + this.m1q_1.hashCode() | 0;
|
|
2825
2825
|
return result;
|
|
2826
2826
|
};
|
|
2827
2827
|
function SRGBTransferFunctions() {
|
|
2828
2828
|
}
|
|
2829
|
-
protoOf(SRGBTransferFunctions).
|
|
2829
|
+
protoOf(SRGBTransferFunctions).p1p = function (x) {
|
|
2830
2830
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055;
|
|
2831
2831
|
};
|
|
2832
|
-
protoOf(SRGBTransferFunctions).
|
|
2832
|
+
protoOf(SRGBTransferFunctions).o1p = function (x) {
|
|
2833
2833
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
2834
2834
|
};
|
|
2835
2835
|
var SRGBTransferFunctions_instance;
|
|
@@ -2842,18 +2842,18 @@
|
|
|
2842
2842
|
}
|
|
2843
2843
|
function ACESccTransferFunctions() {
|
|
2844
2844
|
ACESccTransferFunctions_instance = this;
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2845
|
+
this.r1q_1 = 3.0517578125E-5;
|
|
2846
|
+
this.s1q_1 = 1.52587890625E-5;
|
|
2847
|
+
this.t1q_1 = -0.3013698630136986;
|
|
2848
2848
|
var tmp = this;
|
|
2849
2849
|
// Inline function 'kotlin.math.log2' call
|
|
2850
|
-
tmp.
|
|
2850
|
+
tmp.u1q_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2851
2851
|
}
|
|
2852
|
-
protoOf(ACESccTransferFunctions).
|
|
2852
|
+
protoOf(ACESccTransferFunctions).o1p = function (x) {
|
|
2853
2853
|
var tmp;
|
|
2854
2854
|
if (x <= -0.3013698630136986) {
|
|
2855
2855
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
2856
|
-
} else if (x < this.
|
|
2856
|
+
} else if (x < this.u1q_1) {
|
|
2857
2857
|
// Inline function 'kotlin.math.pow' call
|
|
2858
2858
|
var x_0 = x * 17.52 - 9.72;
|
|
2859
2859
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
}
|
|
2863
2863
|
return tmp;
|
|
2864
2864
|
};
|
|
2865
|
-
protoOf(ACESccTransferFunctions).
|
|
2865
|
+
protoOf(ACESccTransferFunctions).p1p = function (x) {
|
|
2866
2866
|
var tmp;
|
|
2867
2867
|
if (x < 3.0517578125E-5) {
|
|
2868
2868
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -2882,17 +2882,17 @@
|
|
|
2882
2882
|
}
|
|
2883
2883
|
function ACEScctTransferFunctions() {
|
|
2884
2884
|
ACEScctTransferFunctions_instance = this;
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2885
|
+
this.v1q_1 = 10.5402377416545;
|
|
2886
|
+
this.w1q_1 = 0.0729055341958355;
|
|
2887
2887
|
var tmp = this;
|
|
2888
2888
|
// Inline function 'kotlin.math.log2' call
|
|
2889
|
-
tmp.
|
|
2889
|
+
tmp.x1q_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2890
2890
|
}
|
|
2891
|
-
protoOf(ACEScctTransferFunctions).
|
|
2891
|
+
protoOf(ACEScctTransferFunctions).o1p = function (x) {
|
|
2892
2892
|
var tmp;
|
|
2893
2893
|
if (x <= 0.155251141552511) {
|
|
2894
2894
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
2895
|
-
} else if (x < this.
|
|
2895
|
+
} else if (x < this.x1q_1) {
|
|
2896
2896
|
// Inline function 'kotlin.math.pow' call
|
|
2897
2897
|
var x_0 = x * 17.52 - 9.72;
|
|
2898
2898
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2901,7 +2901,7 @@
|
|
|
2901
2901
|
}
|
|
2902
2902
|
return tmp;
|
|
2903
2903
|
};
|
|
2904
|
-
protoOf(ACEScctTransferFunctions).
|
|
2904
|
+
protoOf(ACEScctTransferFunctions).p1p = function (x) {
|
|
2905
2905
|
var tmp;
|
|
2906
2906
|
if (x < 0.0078125) {
|
|
2907
2907
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -2919,16 +2919,16 @@
|
|
|
2919
2919
|
}
|
|
2920
2920
|
function BT2020TransferFunctions() {
|
|
2921
2921
|
BT2020TransferFunctions_instance = this;
|
|
2922
|
-
this.
|
|
2923
|
-
this.
|
|
2922
|
+
this.y1q_1 = 1.0993;
|
|
2923
|
+
this.z1q_1 = 0.0181;
|
|
2924
2924
|
var tmp = this;
|
|
2925
2925
|
// Inline function 'kotlin.math.pow' call
|
|
2926
|
-
tmp.
|
|
2926
|
+
tmp.a1r_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994;
|
|
2927
2927
|
}
|
|
2928
|
-
protoOf(BT2020TransferFunctions).
|
|
2929
|
-
return numberToDouble(x < this.
|
|
2928
|
+
protoOf(BT2020TransferFunctions).o1p = function (x) {
|
|
2929
|
+
return numberToDouble(x < this.a1r_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223));
|
|
2930
2930
|
};
|
|
2931
|
-
protoOf(BT2020TransferFunctions).
|
|
2931
|
+
protoOf(BT2020TransferFunctions).p1p = function (x) {
|
|
2932
2932
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994;
|
|
2933
2933
|
};
|
|
2934
2934
|
var BT2020TransferFunctions_instance;
|
|
@@ -2939,12 +2939,12 @@
|
|
|
2939
2939
|
}
|
|
2940
2940
|
function BT709TransferFunctions() {
|
|
2941
2941
|
BT709TransferFunctions_instance = this;
|
|
2942
|
-
this.
|
|
2942
|
+
this.b1r_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
2943
2943
|
}
|
|
2944
|
-
protoOf(BT709TransferFunctions).
|
|
2945
|
-
return numberToDouble(x < this.
|
|
2944
|
+
protoOf(BT709TransferFunctions).o1p = function (x) {
|
|
2945
|
+
return numberToDouble(x < this.b1r_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223));
|
|
2946
2946
|
};
|
|
2947
|
-
protoOf(BT709TransferFunctions).
|
|
2947
|
+
protoOf(BT709TransferFunctions).p1p = function (x) {
|
|
2948
2948
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
2949
2949
|
};
|
|
2950
2950
|
var BT709TransferFunctions_instance;
|
|
@@ -2954,12 +2954,12 @@
|
|
|
2954
2954
|
return BT709TransferFunctions_instance;
|
|
2955
2955
|
}
|
|
2956
2956
|
function ROMMTransferFunctions() {
|
|
2957
|
-
this.
|
|
2957
|
+
this.c1r_1 = 0.001953;
|
|
2958
2958
|
}
|
|
2959
|
-
protoOf(ROMMTransferFunctions).
|
|
2959
|
+
protoOf(ROMMTransferFunctions).o1p = function (x) {
|
|
2960
2960
|
return x < 0.031248 ? x / 16.0 : spow(x, 1.8);
|
|
2961
2961
|
};
|
|
2962
|
-
protoOf(ROMMTransferFunctions).
|
|
2962
|
+
protoOf(ROMMTransferFunctions).p1p = function (x) {
|
|
2963
2963
|
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556);
|
|
2964
2964
|
};
|
|
2965
2965
|
var ROMMTransferFunctions_instance;
|
|
@@ -2968,13 +2968,13 @@
|
|
|
2968
2968
|
}
|
|
2969
2969
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
2970
2970
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2971
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
2972
|
-
var wp = whitePoint.
|
|
2971
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.s1p_1, g.s1p_1, b.s1p_1, r.t1p_1, g.t1p_1, b.t1p_1, r.d1r(), g.d1r(), b.d1r());
|
|
2972
|
+
var wp = whitePoint.u1o_1;
|
|
2973
2973
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2974
2974
|
var this_0 = inverse(primaries);
|
|
2975
|
-
var v0 = wp.
|
|
2976
|
-
var v1 = wp.
|
|
2977
|
-
var v2 = wp.
|
|
2975
|
+
var v0 = wp.v1p();
|
|
2976
|
+
var v1 = wp.u1p_1;
|
|
2977
|
+
var v2 = wp.w1p();
|
|
2978
2978
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
2979
2979
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
2980
2980
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
@@ -2985,9 +2985,9 @@
|
|
|
2985
2985
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2986
2986
|
var tmp;
|
|
2987
2987
|
if (color instanceof RGB) {
|
|
2988
|
-
tmp = color.
|
|
2988
|
+
tmp = color.f1q($this$$receiver);
|
|
2989
2989
|
} else {
|
|
2990
|
-
tmp = color.
|
|
2990
|
+
tmp = color.x1k().g1q($this$$receiver);
|
|
2991
2991
|
}
|
|
2992
2992
|
return tmp;
|
|
2993
2993
|
}
|
|
@@ -3103,34 +3103,34 @@
|
|
|
3103
3103
|
}
|
|
3104
3104
|
function Companion_7() {
|
|
3105
3105
|
Companion_instance_8 = this;
|
|
3106
|
-
this.
|
|
3106
|
+
this.b1q_1 = XYZColorSpaces_getInstance().p1n_1;
|
|
3107
3107
|
}
|
|
3108
|
-
protoOf(Companion_7).
|
|
3109
|
-
return this.
|
|
3108
|
+
protoOf(Companion_7).x1l = function () {
|
|
3109
|
+
return this.b1q_1.x1l();
|
|
3110
3110
|
};
|
|
3111
3111
|
protoOf(Companion_7).pa = function () {
|
|
3112
|
-
return this.
|
|
3112
|
+
return this.b1q_1.pa();
|
|
3113
3113
|
};
|
|
3114
|
-
protoOf(Companion_7).
|
|
3115
|
-
return this.
|
|
3114
|
+
protoOf(Companion_7).w1l = function () {
|
|
3115
|
+
return this.b1q_1.w1l();
|
|
3116
3116
|
};
|
|
3117
|
-
protoOf(Companion_7).
|
|
3118
|
-
return this.
|
|
3117
|
+
protoOf(Companion_7).r1l = function (color) {
|
|
3118
|
+
return this.b1q_1.r1l(color);
|
|
3119
3119
|
};
|
|
3120
|
-
protoOf(Companion_7).
|
|
3121
|
-
return this.
|
|
3120
|
+
protoOf(Companion_7).y1l = function (components) {
|
|
3121
|
+
return this.b1q_1.y1l(components);
|
|
3122
3122
|
};
|
|
3123
|
-
protoOf(Companion_7).
|
|
3124
|
-
return this.
|
|
3123
|
+
protoOf(Companion_7).s1m = function (x, y, z, alpha) {
|
|
3124
|
+
return this.b1q_1.s1m(x, y, z, alpha);
|
|
3125
3125
|
};
|
|
3126
|
-
protoOf(Companion_7).
|
|
3127
|
-
return this.
|
|
3126
|
+
protoOf(Companion_7).q1p = function (x, y, z, alpha) {
|
|
3127
|
+
return this.b1q_1.q1p(x, y, z, alpha);
|
|
3128
3128
|
};
|
|
3129
3129
|
protoOf(Companion_7).hashCode = function () {
|
|
3130
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
3130
|
+
return hashCode(XYZColorSpaces_getInstance().p1n_1);
|
|
3131
3131
|
};
|
|
3132
3132
|
protoOf(Companion_7).equals = function (other) {
|
|
3133
|
-
return equals(XYZColorSpaces_getInstance().
|
|
3133
|
+
return equals(XYZColorSpaces_getInstance().p1n_1, other);
|
|
3134
3134
|
};
|
|
3135
3135
|
var Companion_instance_8;
|
|
3136
3136
|
function Companion_getInstance_7() {
|
|
@@ -3139,18 +3139,18 @@
|
|
|
3139
3139
|
return Companion_instance_8;
|
|
3140
3140
|
}
|
|
3141
3141
|
function adaptToM($this, space, m, mi) {
|
|
3142
|
-
if (space.
|
|
3142
|
+
if (space.w1l().equals($this.d1l_1.w1l()))
|
|
3143
3143
|
return $this;
|
|
3144
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
3144
|
+
var transform = chromaticAdaptationMatrix(space, $this.d1l_1.w1l().u1o_1, m, mi);
|
|
3145
3145
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3146
|
-
var v0 = $this.
|
|
3147
|
-
var v1 = $this.
|
|
3148
|
-
var v2 = $this.
|
|
3146
|
+
var v0 = $this.z1k_1;
|
|
3147
|
+
var v1 = $this.a1l_1;
|
|
3148
|
+
var v2 = $this.b1l_1;
|
|
3149
3149
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
3150
3150
|
var xx = Matrix__get_impl_xogbpk(transform, 0, 0) * v0 + Matrix__get_impl_xogbpk(transform, 1, 0) * v1 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
3151
3151
|
var yy = Matrix__get_impl_xogbpk(transform, 0, 1) * v0 + Matrix__get_impl_xogbpk(transform, 1, 1) * v1 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
3152
3152
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * v0 + Matrix__get_impl_xogbpk(transform, 1, 2) * v1 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
3153
|
-
return space.
|
|
3153
|
+
return space.s1m(xx, yy, zz, $this.c1l_1);
|
|
3154
3154
|
}
|
|
3155
3155
|
function toLAB$f(t) {
|
|
3156
3156
|
var tmp;
|
|
@@ -3164,100 +3164,100 @@
|
|
|
3164
3164
|
}
|
|
3165
3165
|
function XYZ(x, y, z, alpha, space) {
|
|
3166
3166
|
Companion_getInstance_7();
|
|
3167
|
-
this.
|
|
3168
|
-
this.
|
|
3169
|
-
this.
|
|
3170
|
-
this.
|
|
3171
|
-
this.
|
|
3167
|
+
this.z1k_1 = x;
|
|
3168
|
+
this.a1l_1 = y;
|
|
3169
|
+
this.b1l_1 = z;
|
|
3170
|
+
this.c1l_1 = alpha;
|
|
3171
|
+
this.d1l_1 = space;
|
|
3172
3172
|
}
|
|
3173
|
-
protoOf(XYZ).
|
|
3174
|
-
return this.
|
|
3173
|
+
protoOf(XYZ).o1k = function () {
|
|
3174
|
+
return this.c1l_1;
|
|
3175
3175
|
};
|
|
3176
|
-
protoOf(XYZ).
|
|
3177
|
-
return this.
|
|
3176
|
+
protoOf(XYZ).p1k = function () {
|
|
3177
|
+
return this.d1l_1;
|
|
3178
3178
|
};
|
|
3179
|
-
protoOf(XYZ).
|
|
3179
|
+
protoOf(XYZ).r1n = function (space) {
|
|
3180
3180
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
3181
3181
|
};
|
|
3182
|
-
protoOf(XYZ).
|
|
3183
|
-
var tmp0_container = this.
|
|
3182
|
+
protoOf(XYZ).g1q = function (space) {
|
|
3183
|
+
var tmp0_container = this.r1n(XYZColorSpace_0(space.w1l()));
|
|
3184
3184
|
var x = tmp0_container.pe();
|
|
3185
3185
|
var y = tmp0_container.qe();
|
|
3186
|
-
var z = tmp0_container.
|
|
3187
|
-
var f = space.
|
|
3186
|
+
var z = tmp0_container.e1r();
|
|
3187
|
+
var f = space.f1p();
|
|
3188
3188
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3189
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
3189
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.e1q());
|
|
3190
3190
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
3191
3191
|
var r = 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;
|
|
3192
3192
|
var g = 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;
|
|
3193
3193
|
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;
|
|
3194
|
-
return space.
|
|
3194
|
+
return space.s1m(f.p1p(r), f.p1p(g), f.p1p(b), this.c1l_1);
|
|
3195
3195
|
};
|
|
3196
|
-
protoOf(XYZ).
|
|
3197
|
-
return this.
|
|
3196
|
+
protoOf(XYZ).q1k = function () {
|
|
3197
|
+
return this.g1q(RGBColorSpaces_getInstance().d1n_1);
|
|
3198
3198
|
};
|
|
3199
|
-
protoOf(XYZ).
|
|
3200
|
-
var fx = toLAB$f(this.
|
|
3201
|
-
var fy = toLAB$f(this.
|
|
3202
|
-
var fz = toLAB$f(this.
|
|
3199
|
+
protoOf(XYZ).y1k = function () {
|
|
3200
|
+
var fx = toLAB$f(this.z1k_1 / this.d1l_1.w1l().u1o_1.v1p());
|
|
3201
|
+
var fy = toLAB$f(this.a1l_1 / this.d1l_1.w1l().u1o_1.u1p_1);
|
|
3202
|
+
var fz = toLAB$f(this.b1l_1 / this.d1l_1.w1l().u1o_1.w1p());
|
|
3203
3203
|
var l = 116 * fy - 16;
|
|
3204
3204
|
var a = 500 * (fx - fy);
|
|
3205
3205
|
var b = 200 * (fy - fz);
|
|
3206
|
-
return LABColorSpace_0(this.
|
|
3206
|
+
return LABColorSpace_0(this.d1l_1.w1l()).q1p(l, a, b, this.c1l_1);
|
|
3207
3207
|
};
|
|
3208
|
-
protoOf(XYZ).
|
|
3208
|
+
protoOf(XYZ).l1l = function () {
|
|
3209
3209
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toD65' call
|
|
3210
3210
|
var tmp;
|
|
3211
|
-
if (equals(this.
|
|
3212
|
-
var l = 0.8189330101 * this.
|
|
3213
|
-
var m = 0.0329845436 * this.
|
|
3214
|
-
var s = 0.0482003018 * this.
|
|
3211
|
+
if (equals(this.d1l_1, XYZColorSpaces_getInstance().p1n_1)) {
|
|
3212
|
+
var l = 0.8189330101 * this.z1k_1 + 0.3618667424 * this.a1l_1 - 0.1288597137 * this.b1l_1;
|
|
3213
|
+
var m = 0.0329845436 * this.z1k_1 + 0.9293118715 * this.a1l_1 + 0.0361456387 * this.b1l_1;
|
|
3214
|
+
var s = 0.0482003018 * this.z1k_1 + 0.2643662691 * this.a1l_1 + 0.633851707 * this.b1l_1;
|
|
3215
3215
|
// Inline function 'kotlin.math.cbrt' call
|
|
3216
3216
|
var ll = Math.cbrt(l);
|
|
3217
3217
|
// Inline function 'kotlin.math.cbrt' call
|
|
3218
3218
|
var mm = Math.cbrt(m);
|
|
3219
3219
|
// Inline function 'kotlin.math.cbrt' call
|
|
3220
3220
|
var ss = Math.cbrt(s);
|
|
3221
|
-
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.
|
|
3221
|
+
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.c1l_1);
|
|
3222
3222
|
} else {
|
|
3223
|
-
var $this$toD65 = this.
|
|
3224
|
-
var l_0 = 0.8189330101 * $this$toD65.
|
|
3225
|
-
var m_0 = 0.0329845436 * $this$toD65.
|
|
3226
|
-
var s_0 = 0.0482003018 * $this$toD65.
|
|
3223
|
+
var $this$toD65 = this.r1n(XYZColorSpaces_getInstance().p1n_1);
|
|
3224
|
+
var l_0 = 0.8189330101 * $this$toD65.z1k_1 + 0.3618667424 * $this$toD65.a1l_1 - 0.1288597137 * $this$toD65.b1l_1;
|
|
3225
|
+
var m_0 = 0.0329845436 * $this$toD65.z1k_1 + 0.9293118715 * $this$toD65.a1l_1 + 0.0361456387 * $this$toD65.b1l_1;
|
|
3226
|
+
var s_0 = 0.0482003018 * $this$toD65.z1k_1 + 0.2643662691 * $this$toD65.a1l_1 + 0.633851707 * $this$toD65.b1l_1;
|
|
3227
3227
|
// Inline function 'kotlin.math.cbrt' call
|
|
3228
3228
|
var ll_0 = Math.cbrt(l_0);
|
|
3229
3229
|
// Inline function 'kotlin.math.cbrt' call
|
|
3230
3230
|
var mm_0 = Math.cbrt(m_0);
|
|
3231
3231
|
// Inline function 'kotlin.math.cbrt' call
|
|
3232
3232
|
var ss_0 = Math.cbrt(s_0);
|
|
3233
|
-
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.
|
|
3233
|
+
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.c1l_1);
|
|
3234
3234
|
}
|
|
3235
3235
|
};
|
|
3236
|
-
protoOf(XYZ).
|
|
3236
|
+
protoOf(XYZ).x1k = function () {
|
|
3237
3237
|
return this;
|
|
3238
3238
|
};
|
|
3239
3239
|
protoOf(XYZ).z2 = function () {
|
|
3240
3240
|
// Inline function 'kotlin.floatArrayOf' call
|
|
3241
|
-
return new Float32Array([this.
|
|
3241
|
+
return new Float32Array([this.z1k_1, this.a1l_1, this.b1l_1, this.c1l_1]);
|
|
3242
3242
|
};
|
|
3243
3243
|
protoOf(XYZ).pe = function () {
|
|
3244
|
-
return this.
|
|
3244
|
+
return this.z1k_1;
|
|
3245
3245
|
};
|
|
3246
3246
|
protoOf(XYZ).qe = function () {
|
|
3247
|
-
return this.
|
|
3247
|
+
return this.a1l_1;
|
|
3248
3248
|
};
|
|
3249
|
-
protoOf(XYZ).
|
|
3250
|
-
return this.
|
|
3249
|
+
protoOf(XYZ).e1r = function () {
|
|
3250
|
+
return this.b1l_1;
|
|
3251
3251
|
};
|
|
3252
3252
|
protoOf(XYZ).toString = function () {
|
|
3253
|
-
return 'XYZ(x=' + this.
|
|
3253
|
+
return 'XYZ(x=' + this.z1k_1 + ', y=' + this.a1l_1 + ', z=' + this.b1l_1 + ', alpha=' + this.c1l_1 + ', space=' + this.d1l_1 + ')';
|
|
3254
3254
|
};
|
|
3255
3255
|
protoOf(XYZ).hashCode = function () {
|
|
3256
|
-
var result = getNumberHashCode(this.
|
|
3257
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3258
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3259
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3260
|
-
result = imul(result, 31) + hashCode(this.
|
|
3256
|
+
var result = getNumberHashCode(this.z1k_1);
|
|
3257
|
+
result = imul(result, 31) + getNumberHashCode(this.a1l_1) | 0;
|
|
3258
|
+
result = imul(result, 31) + getNumberHashCode(this.b1l_1) | 0;
|
|
3259
|
+
result = imul(result, 31) + getNumberHashCode(this.c1l_1) | 0;
|
|
3260
|
+
result = imul(result, 31) + hashCode(this.d1l_1) | 0;
|
|
3261
3261
|
return result;
|
|
3262
3262
|
};
|
|
3263
3263
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -3266,27 +3266,27 @@
|
|
|
3266
3266
|
if (!(other instanceof XYZ))
|
|
3267
3267
|
return false;
|
|
3268
3268
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
3269
|
-
if (!equals(this.
|
|
3269
|
+
if (!equals(this.z1k_1, tmp0_other_with_cast.z1k_1))
|
|
3270
3270
|
return false;
|
|
3271
|
-
if (!equals(this.
|
|
3271
|
+
if (!equals(this.a1l_1, tmp0_other_with_cast.a1l_1))
|
|
3272
3272
|
return false;
|
|
3273
|
-
if (!equals(this.
|
|
3273
|
+
if (!equals(this.b1l_1, tmp0_other_with_cast.b1l_1))
|
|
3274
3274
|
return false;
|
|
3275
|
-
if (!equals(this.
|
|
3275
|
+
if (!equals(this.c1l_1, tmp0_other_with_cast.c1l_1))
|
|
3276
3276
|
return false;
|
|
3277
|
-
if (!equals(this.
|
|
3277
|
+
if (!equals(this.d1l_1, tmp0_other_with_cast.d1l_1))
|
|
3278
3278
|
return false;
|
|
3279
3279
|
return true;
|
|
3280
3280
|
};
|
|
3281
3281
|
function XYZColorSpace() {
|
|
3282
3282
|
}
|
|
3283
3283
|
function XYZColorSpace_0(whitePoint) {
|
|
3284
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
3284
|
+
return whitePoint.equals(Illuminant_getInstance().x1n_1) ? XYZColorSpaces_getInstance().p1n_1 : whitePoint.equals(Illuminant_getInstance().v1n_1) ? XYZColorSpaces_getInstance().q1n_1 : new XYZColorSpaceImpl(whitePoint);
|
|
3285
3285
|
}
|
|
3286
3286
|
function XYZColorSpaces() {
|
|
3287
3287
|
XYZColorSpaces_instance = this;
|
|
3288
|
-
this.
|
|
3289
|
-
this.
|
|
3288
|
+
this.p1n_1 = new XYZColorSpaceImpl(Illuminant_getInstance().x1n_1);
|
|
3289
|
+
this.q1n_1 = new XYZColorSpaceImpl(Illuminant_getInstance().v1n_1);
|
|
3290
3290
|
}
|
|
3291
3291
|
var XYZColorSpaces_instance;
|
|
3292
3292
|
function XYZColorSpaces_getInstance() {
|
|
@@ -3297,31 +3297,31 @@
|
|
|
3297
3297
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
3298
3298
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
3299
3299
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
3300
|
-
var dstWp = _this__u8e3s4.
|
|
3301
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
3302
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
3300
|
+
var dstWp = _this__u8e3s4.w1l().u1o_1;
|
|
3301
|
+
var src = dot_0(xyzToLms, srcWp.v1p(), srcWp.u1p_1, srcWp.w1p());
|
|
3302
|
+
var dst = dot_0(xyzToLms, dstWp.v1p(), dstWp.u1p_1, dstWp.w1p());
|
|
3303
3303
|
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);
|
|
3304
3304
|
}
|
|
3305
3305
|
function XYZColorSpaceImpl(whitePoint) {
|
|
3306
|
-
this.
|
|
3307
|
-
this.
|
|
3306
|
+
this.f1r_1 = whitePoint;
|
|
3307
|
+
this.g1r_1 = zeroOneComponentInfo('XYZ');
|
|
3308
3308
|
}
|
|
3309
|
-
protoOf(XYZColorSpaceImpl).
|
|
3310
|
-
return this.
|
|
3309
|
+
protoOf(XYZColorSpaceImpl).w1l = function () {
|
|
3310
|
+
return this.f1r_1;
|
|
3311
3311
|
};
|
|
3312
3312
|
protoOf(XYZColorSpaceImpl).pa = function () {
|
|
3313
3313
|
return 'XYZ';
|
|
3314
3314
|
};
|
|
3315
|
-
protoOf(XYZColorSpaceImpl).
|
|
3316
|
-
return this.
|
|
3315
|
+
protoOf(XYZColorSpaceImpl).x1l = function () {
|
|
3316
|
+
return this.g1r_1;
|
|
3317
3317
|
};
|
|
3318
|
-
protoOf(XYZColorSpaceImpl).
|
|
3319
|
-
return color.
|
|
3318
|
+
protoOf(XYZColorSpaceImpl).r1l = function (color) {
|
|
3319
|
+
return color.x1k().r1n(this);
|
|
3320
3320
|
};
|
|
3321
|
-
protoOf(XYZColorSpaceImpl).
|
|
3321
|
+
protoOf(XYZColorSpaceImpl).y1l = function (components) {
|
|
3322
3322
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
3323
3323
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
3324
|
-
var size = this.
|
|
3324
|
+
var size = this.x1l().l();
|
|
3325
3325
|
// Inline function 'kotlin.require' call
|
|
3326
3326
|
var containsLower = size - 1 | 0;
|
|
3327
3327
|
var containsArg = components.length;
|
|
@@ -3344,21 +3344,21 @@
|
|
|
3344
3344
|
tmp_2 = 1.0;
|
|
3345
3345
|
}
|
|
3346
3346
|
var tmp$ret$2 = tmp_2;
|
|
3347
|
-
return this.
|
|
3347
|
+
return this.s1m(tmp, tmp_0, tmp_1, tmp$ret$2);
|
|
3348
3348
|
};
|
|
3349
3349
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
3350
|
-
return 'XYZColorSpace(' + this.
|
|
3350
|
+
return 'XYZColorSpace(' + this.f1r_1 + ')';
|
|
3351
3351
|
};
|
|
3352
|
-
protoOf(XYZColorSpaceImpl).
|
|
3352
|
+
protoOf(XYZColorSpaceImpl).s1m = function (x, y, z, alpha) {
|
|
3353
3353
|
return new XYZ(x, y, z, alpha, this);
|
|
3354
3354
|
};
|
|
3355
3355
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
3356
|
-
return this.
|
|
3356
|
+
return this.f1r_1.hashCode();
|
|
3357
3357
|
};
|
|
3358
3358
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
3359
3359
|
var tmp;
|
|
3360
3360
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
3361
|
-
tmp = this.
|
|
3361
|
+
tmp = this.f1r_1.equals(other.w1l());
|
|
3362
3362
|
} else {
|
|
3363
3363
|
tmp = false;
|
|
3364
3364
|
}
|
|
@@ -3374,26 +3374,26 @@
|
|
|
3374
3374
|
}
|
|
3375
3375
|
function xyY(x, y, Y) {
|
|
3376
3376
|
Y = Y === VOID ? 1.0 : Y;
|
|
3377
|
-
this.
|
|
3378
|
-
this.
|
|
3379
|
-
this.
|
|
3377
|
+
this.s1p_1 = x;
|
|
3378
|
+
this.t1p_1 = y;
|
|
3379
|
+
this.u1p_1 = Y;
|
|
3380
3380
|
}
|
|
3381
|
-
protoOf(xyY).
|
|
3382
|
-
return 1 - this.
|
|
3381
|
+
protoOf(xyY).d1r = function () {
|
|
3382
|
+
return 1 - this.s1p_1 - this.t1p_1;
|
|
3383
3383
|
};
|
|
3384
|
-
protoOf(xyY).
|
|
3385
|
-
return this.
|
|
3384
|
+
protoOf(xyY).v1p = function () {
|
|
3385
|
+
return this.s1p_1 * this.u1p_1 / this.t1p_1;
|
|
3386
3386
|
};
|
|
3387
|
-
protoOf(xyY).
|
|
3388
|
-
return (1 - this.
|
|
3387
|
+
protoOf(xyY).w1p = function () {
|
|
3388
|
+
return (1 - this.s1p_1 - this.t1p_1) * this.u1p_1 / this.t1p_1;
|
|
3389
3389
|
};
|
|
3390
3390
|
protoOf(xyY).toString = function () {
|
|
3391
|
-
return 'xyY(x=' + this.
|
|
3391
|
+
return 'xyY(x=' + this.s1p_1 + ', y=' + this.t1p_1 + ', Y=' + this.u1p_1 + ')';
|
|
3392
3392
|
};
|
|
3393
3393
|
protoOf(xyY).hashCode = function () {
|
|
3394
|
-
var result = getNumberHashCode(this.
|
|
3395
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3396
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3394
|
+
var result = getNumberHashCode(this.s1p_1);
|
|
3395
|
+
result = imul(result, 31) + getNumberHashCode(this.t1p_1) | 0;
|
|
3396
|
+
result = imul(result, 31) + getNumberHashCode(this.u1p_1) | 0;
|
|
3397
3397
|
return result;
|
|
3398
3398
|
};
|
|
3399
3399
|
protoOf(xyY).equals = function (other) {
|
|
@@ -3402,60 +3402,60 @@
|
|
|
3402
3402
|
if (!(other instanceof xyY))
|
|
3403
3403
|
return false;
|
|
3404
3404
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
3405
|
-
if (!equals(this.
|
|
3405
|
+
if (!equals(this.s1p_1, tmp0_other_with_cast.s1p_1))
|
|
3406
3406
|
return false;
|
|
3407
|
-
if (!equals(this.
|
|
3407
|
+
if (!equals(this.t1p_1, tmp0_other_with_cast.t1p_1))
|
|
3408
3408
|
return false;
|
|
3409
|
-
if (!equals(this.
|
|
3409
|
+
if (!equals(this.u1p_1, tmp0_other_with_cast.u1p_1))
|
|
3410
3410
|
return false;
|
|
3411
3411
|
return true;
|
|
3412
3412
|
};
|
|
3413
3413
|
//region block: post-declaration
|
|
3414
|
-
protoOf(HSL).
|
|
3415
|
-
protoOf(HSL).
|
|
3416
|
-
protoOf(HSL).
|
|
3417
|
-
protoOf(HSL).
|
|
3418
|
-
protoOf(HSL).
|
|
3419
|
-
protoOf(HSL).
|
|
3420
|
-
protoOf(HWB).
|
|
3421
|
-
protoOf(HWB).
|
|
3422
|
-
protoOf(HWB).
|
|
3423
|
-
protoOf(HWB).
|
|
3424
|
-
protoOf(HWB).
|
|
3425
|
-
protoOf(HWB).
|
|
3426
|
-
protoOf(LAB).
|
|
3427
|
-
protoOf(LAB).
|
|
3428
|
-
protoOf(LAB).
|
|
3429
|
-
protoOf(LAB).
|
|
3430
|
-
protoOf(LABColorSpaceImpl).
|
|
3431
|
-
protoOf(LCHab).
|
|
3432
|
-
protoOf(LCHab).
|
|
3433
|
-
protoOf(LCHab).
|
|
3434
|
-
protoOf(LCHab).
|
|
3435
|
-
protoOf(Oklab).
|
|
3436
|
-
protoOf(Oklab).
|
|
3437
|
-
protoOf(Oklab).
|
|
3438
|
-
protoOf(Oklab).
|
|
3439
|
-
protoOf(Oklch).
|
|
3440
|
-
protoOf(Oklch).
|
|
3441
|
-
protoOf(Oklch).
|
|
3442
|
-
protoOf(Oklch).
|
|
3443
|
-
protoOf(Companion_6).
|
|
3444
|
-
protoOf(RGB).
|
|
3445
|
-
protoOf(RGB).
|
|
3446
|
-
protoOf(RGB).
|
|
3447
|
-
protoOf(SRGB).
|
|
3448
|
-
protoOf(RGBColorSpaceImpl).
|
|
3449
|
-
protoOf(RGBColorSpaceImpl).
|
|
3450
|
-
protoOf(RGBColorSpaceImpl).
|
|
3451
|
-
protoOf(RGBColorSpaceImpl).
|
|
3452
|
-
protoOf(Companion_7).
|
|
3453
|
-
protoOf(XYZ).
|
|
3454
|
-
protoOf(XYZ).
|
|
3455
|
-
protoOf(XYZ).
|
|
3456
|
-
protoOf(XYZ).
|
|
3457
|
-
protoOf(XYZColorSpaceImpl).
|
|
3458
|
-
protoOf(XYZColorSpaceImpl).
|
|
3414
|
+
protoOf(HSL).x1k = toXYZ;
|
|
3415
|
+
protoOf(HSL).y1k = toLAB;
|
|
3416
|
+
protoOf(HSL).e1l = toLCHab;
|
|
3417
|
+
protoOf(HSL).k1l = toHWB;
|
|
3418
|
+
protoOf(HSL).l1l = toOklab;
|
|
3419
|
+
protoOf(HSL).m1l = toOklch;
|
|
3420
|
+
protoOf(HWB).r1k = toHSL;
|
|
3421
|
+
protoOf(HWB).x1k = toXYZ;
|
|
3422
|
+
protoOf(HWB).y1k = toLAB;
|
|
3423
|
+
protoOf(HWB).e1l = toLCHab;
|
|
3424
|
+
protoOf(HWB).l1l = toOklab;
|
|
3425
|
+
protoOf(HWB).m1l = toOklch;
|
|
3426
|
+
protoOf(LAB).r1k = toHSL;
|
|
3427
|
+
protoOf(LAB).k1l = toHWB;
|
|
3428
|
+
protoOf(LAB).l1l = toOklab;
|
|
3429
|
+
protoOf(LAB).m1l = toOklch;
|
|
3430
|
+
protoOf(LABColorSpaceImpl).q1p = invoke;
|
|
3431
|
+
protoOf(LCHab).r1k = toHSL;
|
|
3432
|
+
protoOf(LCHab).k1l = toHWB;
|
|
3433
|
+
protoOf(LCHab).l1l = toOklab;
|
|
3434
|
+
protoOf(LCHab).m1l = toOklch;
|
|
3435
|
+
protoOf(Oklab).r1k = toHSL;
|
|
3436
|
+
protoOf(Oklab).y1k = toLAB;
|
|
3437
|
+
protoOf(Oklab).e1l = toLCHab;
|
|
3438
|
+
protoOf(Oklab).k1l = toHWB;
|
|
3439
|
+
protoOf(Oklch).r1k = toHSL;
|
|
3440
|
+
protoOf(Oklch).y1k = toLAB;
|
|
3441
|
+
protoOf(Oklch).e1l = toLCHab;
|
|
3442
|
+
protoOf(Oklch).k1l = toHWB;
|
|
3443
|
+
protoOf(Companion_6).v1o = from255$default;
|
|
3444
|
+
protoOf(RGB).y1k = toLAB;
|
|
3445
|
+
protoOf(RGB).e1l = toLCHab;
|
|
3446
|
+
protoOf(RGB).m1l = toOklch;
|
|
3447
|
+
protoOf(SRGB).v1o = from255$default;
|
|
3448
|
+
protoOf(RGBColorSpaceImpl).q1p = invoke_0;
|
|
3449
|
+
protoOf(RGBColorSpaceImpl).r1m = invoke_1;
|
|
3450
|
+
protoOf(RGBColorSpaceImpl).w1o = from255;
|
|
3451
|
+
protoOf(RGBColorSpaceImpl).v1o = from255$default;
|
|
3452
|
+
protoOf(Companion_7).r1p = invoke$default;
|
|
3453
|
+
protoOf(XYZ).r1k = toHSL;
|
|
3454
|
+
protoOf(XYZ).e1l = toLCHab;
|
|
3455
|
+
protoOf(XYZ).k1l = toHWB;
|
|
3456
|
+
protoOf(XYZ).m1l = toOklch;
|
|
3457
|
+
protoOf(XYZColorSpaceImpl).q1p = invoke_2;
|
|
3458
|
+
protoOf(XYZColorSpaceImpl).r1p = invoke$default;
|
|
3459
3459
|
//endregion
|
|
3460
3460
|
//region block: init
|
|
3461
3461
|
Companion_instance_0 = new Companion();
|