@cruglobal/godtools-shared 1.1.0-SNAPSHOT.1591 → 1.1.0-SNAPSHOT.1607
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 +45 -45
- package/Kermit-kermit.js +8 -8
- package/antlr-kotlin-antlr-kotlin-runtime.js +2972 -2972
- package/colormath-root-colormath.js +882 -882
- package/fluid-locale.js +138 -138
- package/kotlin-js.js +19 -19
- package/kotlin-kotlin-stdlib.js +183 -154
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +2 -2
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +398 -398
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2958 -2249
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +108 -108
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +23 -3
- package/kotlinx-atomicfu.js +4 -4
- package/kotlinx-coroutines-core.js +1559 -1515
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,102 +14,102 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var log2 = Math.log2;
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var toString = kotlin_kotlin.$_$.
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.a7;
|
|
18
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.m6;
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.o6;
|
|
20
|
+
var toString = kotlin_kotlin.$_$.d7;
|
|
21
21
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
22
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForClass = kotlin_kotlin.$_$.l6;
|
|
23
23
|
var emptyMap = kotlin_kotlin.$_$.q3;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.d;
|
|
25
25
|
var Companion_instance = kotlin_kotlin.$_$.k2;
|
|
26
26
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.y1;
|
|
27
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
27
|
+
var createFailure = kotlin_kotlin.$_$.x9;
|
|
28
28
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.b2;
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.q9;
|
|
30
30
|
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.a2;
|
|
31
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
31
|
+
var startsWith = kotlin_kotlin.$_$.n8;
|
|
32
32
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
33
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
34
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
33
|
+
var initMetadataForObject = kotlin_kotlin.$_$.q6;
|
|
34
|
+
var endsWith = kotlin_kotlin.$_$.z7;
|
|
35
35
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.e3;
|
|
36
36
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
37
37
|
var checkIndexOverflow = kotlin_kotlin.$_$.d3;
|
|
38
38
|
var Unit_instance = kotlin_kotlin.$_$.l2;
|
|
39
39
|
var get_lastIndex = kotlin_kotlin.$_$.f4;
|
|
40
|
-
var dropLast = kotlin_kotlin.$_$.
|
|
41
|
-
var toDouble = kotlin_kotlin.$_$.
|
|
40
|
+
var dropLast = kotlin_kotlin.$_$.y7;
|
|
41
|
+
var toDouble = kotlin_kotlin.$_$.t8;
|
|
42
42
|
var charSequenceLength = kotlin_kotlin.$_$.a6;
|
|
43
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
44
|
-
var Enum = kotlin_kotlin.$_$.
|
|
43
|
+
var coerceIn = kotlin_kotlin.$_$.k7;
|
|
44
|
+
var Enum = kotlin_kotlin.$_$.g9;
|
|
45
45
|
var equals = kotlin_kotlin.$_$.d6;
|
|
46
46
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
47
47
|
var dropLast_0 = kotlin_kotlin.$_$.o3;
|
|
48
48
|
var joinTo = kotlin_kotlin.$_$.d4;
|
|
49
49
|
var UByte__toString_impl_v72jg = kotlin_kotlin.$_$.e2;
|
|
50
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
51
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
50
|
+
var numberToInt = kotlin_kotlin.$_$.y6;
|
|
51
|
+
var roundToInt = kotlin_kotlin.$_$.e7;
|
|
52
52
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t1;
|
|
53
|
-
var padStart = kotlin_kotlin.$_$.
|
|
53
|
+
var padStart = kotlin_kotlin.$_$.h8;
|
|
54
54
|
var charArrayOf = kotlin_kotlin.$_$.y5;
|
|
55
|
-
var trimEnd = kotlin_kotlin.$_$.
|
|
56
|
-
var isNaN_0 = kotlin_kotlin.$_$.
|
|
55
|
+
var trimEnd = kotlin_kotlin.$_$.a9;
|
|
56
|
+
var isNaN_0 = kotlin_kotlin.$_$.z9;
|
|
57
57
|
var joinTo_0 = kotlin_kotlin.$_$.c4;
|
|
58
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
59
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
58
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ba;
|
|
59
|
+
var numberToDouble = kotlin_kotlin.$_$.x6;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.j6;
|
|
61
61
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
62
62
|
var charSequenceGet = kotlin_kotlin.$_$.z5;
|
|
63
63
|
var toString_0 = kotlin_kotlin.$_$.x1;
|
|
64
64
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
65
65
|
var listOf = kotlin_kotlin.$_$.j4;
|
|
66
|
-
var to = kotlin_kotlin.$_$.
|
|
66
|
+
var to = kotlin_kotlin.$_$.ga;
|
|
67
67
|
var mapOf = kotlin_kotlin.$_$.l4;
|
|
68
|
-
var withSign = kotlin_kotlin.$_$.
|
|
69
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
71
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
72
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
73
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
74
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
75
|
-
var Char = kotlin_kotlin.$_$.
|
|
76
|
-
var toInt = kotlin_kotlin.$_$.
|
|
77
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
78
|
-
var slice = kotlin_kotlin.$_$.
|
|
68
|
+
var withSign = kotlin_kotlin.$_$.f7;
|
|
69
|
+
var trimMargin = kotlin_kotlin.$_$.b9;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.k6;
|
|
71
|
+
var coerceAtLeast = kotlin_kotlin.$_$.g7;
|
|
72
|
+
var getNumberHashCode = kotlin_kotlin.$_$.h6;
|
|
73
|
+
var isInterface = kotlin_kotlin.$_$.t6;
|
|
74
|
+
var objectCreate = kotlin_kotlin.$_$.z6;
|
|
75
|
+
var Char = kotlin_kotlin.$_$.d9;
|
|
76
|
+
var toInt = kotlin_kotlin.$_$.x8;
|
|
77
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.u6;
|
|
78
|
+
var slice = kotlin_kotlin.$_$.j8;
|
|
79
79
|
var contentEquals = kotlin_kotlin.$_$.i3;
|
|
80
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
80
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.i7;
|
|
81
81
|
var _UInt___init__impl__l7qpdl = kotlin_kotlin.$_$.f2;
|
|
82
82
|
var _UInt___get_data__impl__f0vqqw = kotlin_kotlin.$_$.g2;
|
|
83
|
-
var coerceIn_0 = kotlin_kotlin.$_$.
|
|
83
|
+
var coerceIn_0 = kotlin_kotlin.$_$.l7;
|
|
84
84
|
var _UByte___get_data__impl__jof9qr = kotlin_kotlin.$_$.d2;
|
|
85
|
-
var uintToDouble = kotlin_kotlin.$_$.
|
|
86
|
-
var toByte = kotlin_kotlin.$_$.
|
|
85
|
+
var uintToDouble = kotlin_kotlin.$_$.ia;
|
|
86
|
+
var toByte = kotlin_kotlin.$_$.b7;
|
|
87
87
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.c2;
|
|
88
|
-
var UInt = kotlin_kotlin.$_$.
|
|
88
|
+
var UInt = kotlin_kotlin.$_$.t9;
|
|
89
89
|
var UInt__hashCode_impl_z2mhuw = kotlin_kotlin.$_$.h2;
|
|
90
90
|
//endregion
|
|
91
91
|
//region block: pre-declaration
|
|
92
92
|
initMetadataForCompanion(Companion);
|
|
93
93
|
function toHSL() {
|
|
94
|
-
return this.
|
|
94
|
+
return this.g1m().h1m();
|
|
95
95
|
}
|
|
96
96
|
function toXYZ() {
|
|
97
|
-
return this.
|
|
97
|
+
return this.g1m().n1m();
|
|
98
98
|
}
|
|
99
99
|
function toLAB() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.n1m().o1m();
|
|
101
101
|
}
|
|
102
102
|
function toLCHab() {
|
|
103
|
-
return this.
|
|
103
|
+
return this.o1m().u1m();
|
|
104
104
|
}
|
|
105
105
|
function toHWB() {
|
|
106
|
-
return this.
|
|
106
|
+
return this.g1m().a1n();
|
|
107
107
|
}
|
|
108
108
|
function toOklab() {
|
|
109
|
-
return this.
|
|
109
|
+
return this.n1m().b1n();
|
|
110
110
|
}
|
|
111
111
|
function toOklch() {
|
|
112
|
-
return this.
|
|
112
|
+
return this.b1n().c1n();
|
|
113
113
|
}
|
|
114
114
|
initMetadataForInterface(Color, 'Color');
|
|
115
115
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
|
|
129
129
|
initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
|
|
130
130
|
function invoke(l, a, b, alpha) {
|
|
131
|
-
return this.
|
|
131
|
+
return this.i1o(numberToDouble(l), numberToDouble(a), numberToDouble(b), numberToDouble(alpha));
|
|
132
132
|
}
|
|
133
133
|
initMetadataForInterface(LABColorSpace, 'LABColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
134
134
|
initMetadataForCompanion(Companion_2, VOID, [LABColorSpace]);
|
|
@@ -147,14 +147,14 @@
|
|
|
147
147
|
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
148
148
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
149
149
|
function invoke_0(r, g, b, alpha) {
|
|
150
|
-
return this.
|
|
150
|
+
return this.i1o(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
151
151
|
}
|
|
152
152
|
function from255(r, g, b, alpha) {
|
|
153
|
-
return this.
|
|
153
|
+
return this.i1o(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
154
154
|
}
|
|
155
155
|
function from255$default(r, g, b, alpha, $super) {
|
|
156
156
|
alpha = alpha === VOID ? 255 : alpha;
|
|
157
|
-
return $super === VOID ? this.
|
|
157
|
+
return $super === VOID ? this.m1q(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
158
158
|
}
|
|
159
159
|
function invoke_1(hex) {
|
|
160
160
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
} else {
|
|
171
171
|
tmp_2 = 255;
|
|
172
172
|
}
|
|
173
|
-
return this.
|
|
173
|
+
return this.m1q(tmp, tmp_0, tmp_1, tmp_2);
|
|
174
174
|
}
|
|
175
175
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
176
176
|
initMetadataForCompanion(Companion_6, VOID, [RGBColorSpace]);
|
|
@@ -187,11 +187,11 @@
|
|
|
187
187
|
initMetadataForCompanion(Companion_7);
|
|
188
188
|
initMetadataForClass(RGBInt, 'RGBInt', VOID, VOID, [Color]);
|
|
189
189
|
function invoke_2(x, y, z, alpha) {
|
|
190
|
-
return this.
|
|
190
|
+
return this.i1o(numberToDouble(x), numberToDouble(y), numberToDouble(z), numberToDouble(alpha));
|
|
191
191
|
}
|
|
192
192
|
function invoke$default(x, y, z, alpha, $super) {
|
|
193
193
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
194
|
-
return $super === VOID ? this.
|
|
194
|
+
return $super === VOID ? this.h1r(x, y, z, alpha) : invoke_2(x, y, z, alpha);
|
|
195
195
|
}
|
|
196
196
|
initMetadataForInterface(XYZColorSpace, 'XYZColorSpace', VOID, VOID, [WhitePointColorSpace]);
|
|
197
197
|
initMetadataForCompanion(Companion_8, VOID, [XYZColorSpace]);
|
|
@@ -209,16 +209,16 @@
|
|
|
209
209
|
function Color() {
|
|
210
210
|
}
|
|
211
211
|
function convertTo(_this__u8e3s4, space) {
|
|
212
|
-
return space.
|
|
212
|
+
return space.h1n(_this__u8e3s4);
|
|
213
213
|
}
|
|
214
214
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
215
|
+
this.i1n_1 = name;
|
|
216
|
+
this.j1n_1 = isPolar;
|
|
217
|
+
this.k1n_1 = min;
|
|
218
|
+
this.l1n_1 = max;
|
|
219
219
|
// Inline function 'kotlin.require' call
|
|
220
220
|
// Inline function 'kotlin.contracts.contract' call
|
|
221
|
-
if (!(this.
|
|
221
|
+
if (!(this.k1n_1 <= this.l1n_1)) {
|
|
222
222
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
223
223
|
var message = 'min must be less than or equal to max';
|
|
224
224
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
}
|
|
240
240
|
function parseOrNull(_this__u8e3s4, color_0, customColorSpaces) {
|
|
241
241
|
customColorSpaces = customColorSpaces === VOID ? emptyMap() : customColorSpaces;
|
|
242
|
-
var keywordColor = CssColors_getInstance().
|
|
242
|
+
var keywordColor = CssColors_getInstance().p1n_1.k2(color_0);
|
|
243
243
|
var tmp;
|
|
244
244
|
if (!(keywordColor == null)) {
|
|
245
245
|
tmp = keywordColor;
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
try {
|
|
251
251
|
// Inline function 'kotlin.Companion.success' call
|
|
252
252
|
// Inline function 'com.github.ajalt.colormath.parseOrNull.<anonymous>' call
|
|
253
|
-
var value = Companion_getInstance_6().
|
|
253
|
+
var value = Companion_getInstance_6().h1o(color_0);
|
|
254
254
|
tmp_0 = _Result___init__impl__xyqfz8(value);
|
|
255
255
|
} catch ($p) {
|
|
256
256
|
var tmp_1;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
}
|
|
274
274
|
tmp = tmp_2;
|
|
275
275
|
} else {
|
|
276
|
-
var tmp0_safe_receiver = PATTERNS_getInstance().
|
|
276
|
+
var tmp0_safe_receiver = PATTERNS_getInstance().w1n_1.pc(color_0);
|
|
277
277
|
var tmp_4;
|
|
278
278
|
if (tmp0_safe_receiver == null) {
|
|
279
279
|
tmp_4 = null;
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
var tmp0_elvis_lhs = tmp_4;
|
|
287
287
|
var tmp_5;
|
|
288
288
|
if (tmp0_elvis_lhs == null) {
|
|
289
|
-
var tmp1_safe_receiver = PATTERNS_getInstance().
|
|
289
|
+
var tmp1_safe_receiver = PATTERNS_getInstance().x1n_1.pc(color_0);
|
|
290
290
|
var tmp_6;
|
|
291
291
|
if (tmp1_safe_receiver == null) {
|
|
292
292
|
tmp_6 = null;
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
var tmp1_elvis_lhs = tmp_5;
|
|
304
304
|
var tmp_7;
|
|
305
305
|
if (tmp1_elvis_lhs == null) {
|
|
306
|
-
var tmp2_safe_receiver = PATTERNS_getInstance().
|
|
306
|
+
var tmp2_safe_receiver = PATTERNS_getInstance().y1n_1.pc(color_0);
|
|
307
307
|
var tmp_8;
|
|
308
308
|
if (tmp2_safe_receiver == null) {
|
|
309
309
|
tmp_8 = null;
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
var tmp2_elvis_lhs = tmp_7;
|
|
321
321
|
var tmp_9;
|
|
322
322
|
if (tmp2_elvis_lhs == null) {
|
|
323
|
-
var tmp3_safe_receiver = PATTERNS_getInstance().
|
|
323
|
+
var tmp3_safe_receiver = PATTERNS_getInstance().z1n_1.pc(color_0);
|
|
324
324
|
var tmp_10;
|
|
325
325
|
if (tmp3_safe_receiver == null) {
|
|
326
326
|
tmp_10 = null;
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
var tmp3_elvis_lhs = tmp_9;
|
|
338
338
|
var tmp_11;
|
|
339
339
|
if (tmp3_elvis_lhs == null) {
|
|
340
|
-
var tmp4_safe_receiver = PATTERNS_getInstance().
|
|
340
|
+
var tmp4_safe_receiver = PATTERNS_getInstance().a1o_1.pc(color_0);
|
|
341
341
|
var tmp_12;
|
|
342
342
|
if (tmp4_safe_receiver == null) {
|
|
343
343
|
tmp_12 = null;
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
var tmp4_elvis_lhs = tmp_11;
|
|
355
355
|
var tmp_13;
|
|
356
356
|
if (tmp4_elvis_lhs == null) {
|
|
357
|
-
var tmp5_safe_receiver = PATTERNS_getInstance().
|
|
357
|
+
var tmp5_safe_receiver = PATTERNS_getInstance().b1o_1.pc(color_0);
|
|
358
358
|
var tmp_14;
|
|
359
359
|
if (tmp5_safe_receiver == null) {
|
|
360
360
|
tmp_14 = null;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
var tmp5_elvis_lhs = tmp_13;
|
|
372
372
|
var tmp_15;
|
|
373
373
|
if (tmp5_elvis_lhs == null) {
|
|
374
|
-
var tmp6_safe_receiver = PATTERNS_getInstance().
|
|
374
|
+
var tmp6_safe_receiver = PATTERNS_getInstance().c1o_1.pc(color_0);
|
|
375
375
|
var tmp_16;
|
|
376
376
|
if (tmp6_safe_receiver == null) {
|
|
377
377
|
tmp_16 = null;
|
|
@@ -388,7 +388,7 @@
|
|
|
388
388
|
var tmp6_elvis_lhs = tmp_15;
|
|
389
389
|
var tmp_17;
|
|
390
390
|
if (tmp6_elvis_lhs == null) {
|
|
391
|
-
var tmp7_safe_receiver = PATTERNS_getInstance().
|
|
391
|
+
var tmp7_safe_receiver = PATTERNS_getInstance().d1o_1.pc(color_0);
|
|
392
392
|
var tmp_18;
|
|
393
393
|
if (tmp7_safe_receiver == null) {
|
|
394
394
|
tmp_18 = null;
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
var tmp7_elvis_lhs = tmp_17;
|
|
406
406
|
var tmp_19;
|
|
407
407
|
if (tmp7_elvis_lhs == null) {
|
|
408
|
-
var tmp8_safe_receiver = PATTERNS_getInstance().
|
|
408
|
+
var tmp8_safe_receiver = PATTERNS_getInstance().e1o_1.pc(color_0);
|
|
409
409
|
var tmp_20;
|
|
410
410
|
if (tmp8_safe_receiver == null) {
|
|
411
411
|
tmp_20 = null;
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
var tmp8_elvis_lhs = tmp_19;
|
|
423
423
|
var tmp_21;
|
|
424
424
|
if (tmp8_elvis_lhs == null) {
|
|
425
|
-
var tmp9_safe_receiver = PATTERNS_getInstance().
|
|
425
|
+
var tmp9_safe_receiver = PATTERNS_getInstance().f1o_1.pc(color_0);
|
|
426
426
|
var tmp_22;
|
|
427
427
|
if (tmp9_safe_receiver == null) {
|
|
428
428
|
tmp_22 = null;
|
|
@@ -442,22 +442,22 @@
|
|
|
442
442
|
}
|
|
443
443
|
function PATTERNS() {
|
|
444
444
|
PATTERNS_instance = 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.
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
445
|
+
this.q1n_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?';
|
|
446
|
+
this.r1n_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?)';
|
|
447
|
+
this.s1n_1 = '[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?';
|
|
448
|
+
this.t1n_1 = '\\s*(?:/\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
449
|
+
this.u1n_1 = '\\s*(?:,\\s*([+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?%?))?\\s*';
|
|
450
|
+
this.v1n_1 = '(?:none|[+-]?(?:\\d+|\\d*\\.\\d+)(?:[eE][+-]?\\d+)?(?:deg|grad|rad|turn)?)';
|
|
451
|
+
this.w1n_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*\\)');
|
|
452
|
+
this.x1n_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*\\)');
|
|
453
|
+
this.y1n_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*\\)');
|
|
454
|
+
this.z1n_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*\\)');
|
|
455
|
+
this.a1o_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*\\)');
|
|
456
|
+
this.b1o_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*\\)');
|
|
457
|
+
this.c1o_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*\\)');
|
|
458
|
+
this.d1o_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*\\)');
|
|
459
|
+
this.e1o_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*\\)');
|
|
460
|
+
this.f1o_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*\\)');
|
|
461
461
|
}
|
|
462
462
|
var PATTERNS_instance;
|
|
463
463
|
function PATTERNS_getInstance() {
|
|
@@ -466,56 +466,56 @@
|
|
|
466
466
|
return PATTERNS_instance;
|
|
467
467
|
}
|
|
468
468
|
function rgb(match) {
|
|
469
|
-
var r = percentOrNumber(match.nd().o(1), Companion_getInstance_6().
|
|
470
|
-
var g = percentOrNumber(match.nd().o(2), Companion_getInstance_6().
|
|
471
|
-
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_6().
|
|
469
|
+
var r = percentOrNumber(match.nd().o(1), Companion_getInstance_6().n1n().o(0).l1n_1);
|
|
470
|
+
var g = percentOrNumber(match.nd().o(2), Companion_getInstance_6().n1n().o(1).l1n_1);
|
|
471
|
+
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_6().n1n().o(2).l1n_1);
|
|
472
472
|
var a = alpha(match.nd().o(4));
|
|
473
473
|
var tmp;
|
|
474
474
|
if (endsWith(match.nd().o(1), '%')) {
|
|
475
|
-
tmp = Companion_getInstance_6().
|
|
475
|
+
tmp = Companion_getInstance_6().i1o(r, g, b, a);
|
|
476
476
|
} else {
|
|
477
|
-
tmp = Companion_getInstance_6().
|
|
477
|
+
tmp = Companion_getInstance_6().i1o(r / 255.0, g / 255.0, b / 255.0, a);
|
|
478
478
|
}
|
|
479
479
|
return tmp;
|
|
480
480
|
}
|
|
481
481
|
function hsl(match) {
|
|
482
482
|
var h = hue(match.nd().o(1));
|
|
483
|
-
var s = percentOrNumber(match.nd().o(2), Companion_getInstance_0().
|
|
484
|
-
var l = percentOrNumber(match.nd().o(3), Companion_getInstance_0().
|
|
483
|
+
var s = percentOrNumber(match.nd().o(2), Companion_getInstance_0().j1o_1.o(1).l1n_1);
|
|
484
|
+
var l = percentOrNumber(match.nd().o(3), Companion_getInstance_0().j1o_1.o(2).l1n_1);
|
|
485
485
|
var a = alpha(match.nd().o(4));
|
|
486
486
|
return new HSL(h, s, l, a);
|
|
487
487
|
}
|
|
488
488
|
function lab(match) {
|
|
489
|
-
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_2().
|
|
490
|
-
var a = percentOrNumber(match.nd().o(2), Companion_getInstance_2().
|
|
491
|
-
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_2().
|
|
489
|
+
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_2().n1n().o(0).l1n_1);
|
|
490
|
+
var a = percentOrNumber(match.nd().o(2), Companion_getInstance_2().n1n().o(1).l1n_1);
|
|
491
|
+
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_2().n1n().o(2).l1n_1);
|
|
492
492
|
var alpha_0 = alpha(match.nd().o(4));
|
|
493
|
-
return LABColorSpaces_getInstance().
|
|
493
|
+
return LABColorSpaces_getInstance().m1o_1.i1o(l, a, b, alpha_0);
|
|
494
494
|
}
|
|
495
495
|
function lch(match) {
|
|
496
|
-
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_3().
|
|
497
|
-
var c = percentOrNumber(match.nd().o(2), Companion_getInstance_3().
|
|
496
|
+
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_3().n1n().o(0).l1n_1);
|
|
497
|
+
var c = percentOrNumber(match.nd().o(2), Companion_getInstance_3().n1n().o(1).l1n_1);
|
|
498
498
|
var h = hue(match.nd().o(3));
|
|
499
499
|
var a = alpha(match.nd().o(4));
|
|
500
|
-
return LCHabColorSpaces_getInstance().
|
|
500
|
+
return LCHabColorSpaces_getInstance().p1o_1.i1o(l, c, h, a);
|
|
501
501
|
}
|
|
502
502
|
function hwb(match) {
|
|
503
503
|
var h = hue(match.nd().o(1));
|
|
504
|
-
var w = percentOrNumber(match.nd().o(2), Companion_getInstance_1().
|
|
505
|
-
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_1().
|
|
504
|
+
var w = percentOrNumber(match.nd().o(2), Companion_getInstance_1().q1o_1.o(1).l1n_1);
|
|
505
|
+
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_1().q1o_1.o(2).l1n_1);
|
|
506
506
|
var a = alpha(match.nd().o(4));
|
|
507
507
|
return new HWB(h, w, b, a);
|
|
508
508
|
}
|
|
509
509
|
function oklab(match) {
|
|
510
|
-
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_4().
|
|
511
|
-
var a = percentOrNumber(match.nd().o(2), Companion_getInstance_4().
|
|
512
|
-
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_4().
|
|
510
|
+
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_4().r1o_1.o(0).l1n_1);
|
|
511
|
+
var a = percentOrNumber(match.nd().o(2), Companion_getInstance_4().r1o_1.o(1).l1n_1);
|
|
512
|
+
var b = percentOrNumber(match.nd().o(3), Companion_getInstance_4().r1o_1.o(2).l1n_1);
|
|
513
513
|
var alpha_0 = alpha(match.nd().o(4));
|
|
514
514
|
return new Oklab(l, a, b, alpha_0);
|
|
515
515
|
}
|
|
516
516
|
function oklch(match) {
|
|
517
|
-
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_5().
|
|
518
|
-
var c = percentOrNumber(match.nd().o(2), Companion_getInstance_5().
|
|
517
|
+
var l = percentOrNumber(match.nd().o(1), Companion_getInstance_5().s1o_1.o(0).l1n_1);
|
|
518
|
+
var c = percentOrNumber(match.nd().o(2), Companion_getInstance_5().s1o_1.o(1).l1n_1);
|
|
519
519
|
var h = hue(match.nd().o(3));
|
|
520
520
|
var a = alpha(match.nd().o(4));
|
|
521
521
|
return new Oklch(l, c, h, a);
|
|
@@ -528,26 +528,26 @@
|
|
|
528
528
|
tmp = SRGB_getInstance();
|
|
529
529
|
break;
|
|
530
530
|
case 'srgb-linear':
|
|
531
|
-
tmp = RGBColorSpaces_getInstance().
|
|
531
|
+
tmp = RGBColorSpaces_getInstance().u1o_1;
|
|
532
532
|
break;
|
|
533
533
|
case 'display-p3':
|
|
534
|
-
tmp = RGBColorSpaces_getInstance().
|
|
534
|
+
tmp = RGBColorSpaces_getInstance().d1p_1;
|
|
535
535
|
break;
|
|
536
536
|
case 'a98-rgb':
|
|
537
|
-
tmp = RGBColorSpaces_getInstance().
|
|
537
|
+
tmp = RGBColorSpaces_getInstance().z1o_1;
|
|
538
538
|
break;
|
|
539
539
|
case 'prophoto-rgb':
|
|
540
|
-
tmp = RGBColorSpaces_getInstance().
|
|
540
|
+
tmp = RGBColorSpaces_getInstance().e1p_1;
|
|
541
541
|
break;
|
|
542
542
|
case 'rec2020':
|
|
543
|
-
tmp = RGBColorSpaces_getInstance().
|
|
543
|
+
tmp = RGBColorSpaces_getInstance().a1p_1;
|
|
544
544
|
break;
|
|
545
545
|
case 'xyz':
|
|
546
546
|
case 'xyz-d50':
|
|
547
|
-
tmp = XYZColorSpaces_getInstance().
|
|
547
|
+
tmp = XYZColorSpaces_getInstance().g1p_1;
|
|
548
548
|
break;
|
|
549
549
|
case 'xyz-d65':
|
|
550
|
-
tmp = XYZColorSpaces_getInstance().
|
|
550
|
+
tmp = XYZColorSpaces_getInstance().f1p_1;
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
553
|
var tmp$ret$1;
|
|
@@ -591,12 +591,12 @@
|
|
|
591
591
|
var tmp1 = index;
|
|
592
592
|
index = tmp1 + 1 | 0;
|
|
593
593
|
var i = checkIndexOverflow(tmp1);
|
|
594
|
-
var tmp$ret$3 = percentOrNumber(item, space.
|
|
594
|
+
var tmp$ret$3 = percentOrNumber(item, space.n1n().o(i).l1n_1);
|
|
595
595
|
destination.e(tmp$ret$3);
|
|
596
596
|
}
|
|
597
597
|
var values = destination;
|
|
598
598
|
var tmp_1 = 0;
|
|
599
|
-
var tmp_2 = space.
|
|
599
|
+
var tmp_2 = space.n1n().m();
|
|
600
600
|
var tmp_3 = new Float32Array(tmp_2);
|
|
601
601
|
while (tmp_1 < tmp_2) {
|
|
602
602
|
var tmp_4 = tmp_1;
|
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
}
|
|
615
615
|
var components = tmp_3;
|
|
616
616
|
components[get_lastIndex(components)] = alpha(match.nd().o(3));
|
|
617
|
-
return space.
|
|
617
|
+
return space.o1n(components);
|
|
618
618
|
}
|
|
619
619
|
function percentOrNumber(str, max) {
|
|
620
620
|
var tmp;
|
|
@@ -745,7 +745,7 @@
|
|
|
745
745
|
while (tmp0_iterator.k()) {
|
|
746
746
|
var element = tmp0_iterator.l();
|
|
747
747
|
// Inline function 'com.github.ajalt.colormath.formatCssStringOrNull.<anonymous>' call
|
|
748
|
-
if (equals(element.h2(), _this__u8e3s4.
|
|
748
|
+
if (equals(element.h2(), _this__u8e3s4.f1m())) {
|
|
749
749
|
tmp$ret$1 = element;
|
|
750
750
|
break $l$block;
|
|
751
751
|
}
|
|
@@ -768,17 +768,17 @@
|
|
|
768
768
|
if (tmp0_elvis_lhs == null) {
|
|
769
769
|
var tmp_1;
|
|
770
770
|
if (_this__u8e3s4 instanceof RGB) {
|
|
771
|
-
var tmp14_subject = _this__u8e3s4.
|
|
772
|
-
tmp_1 = equals(tmp14_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().
|
|
771
|
+
var tmp14_subject = _this__u8e3s4.m1m_1;
|
|
772
|
+
tmp_1 = equals(tmp14_subject, SRGB_getInstance()) ? renderSRGB(_this__u8e3s4, legacyFormat, legacyName, unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().d1p_1) ? renderFn(_this__u8e3s4, 'display-p3', unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().z1o_1) ? renderFn(_this__u8e3s4, 'a98-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().e1p_1) ? renderFn(_this__u8e3s4, 'prophoto-rgb', unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().a1p_1) ? renderFn(_this__u8e3s4, 'rec2020', unitsPercent, alphaPercent, renderAlpha) : equals(tmp14_subject, RGBColorSpaces_getInstance().u1o_1) ? renderFn(_this__u8e3s4, 'srgb-linear', unitsPercent, alphaPercent, renderAlpha) : null;
|
|
773
773
|
} else {
|
|
774
774
|
if (_this__u8e3s4 instanceof HSL) {
|
|
775
775
|
tmp_1 = renderHsl(_this__u8e3s4, legacyFormat, legacyName, hueUnit, alphaPercent, renderAlpha);
|
|
776
776
|
} else {
|
|
777
777
|
if (_this__u8e3s4 instanceof LAB) {
|
|
778
|
-
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().
|
|
778
|
+
tmp_1 = renderLab(convertTo(_this__u8e3s4, LABColorSpaces_getInstance().m1o_1), alphaPercent, renderAlpha);
|
|
779
779
|
} else {
|
|
780
780
|
if (_this__u8e3s4 instanceof LCHab) {
|
|
781
|
-
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().
|
|
781
|
+
tmp_1 = renderLCH(convertTo(_this__u8e3s4, LCHabColorSpaces_getInstance().p1o_1), hueUnit, alphaPercent, renderAlpha);
|
|
782
782
|
} else {
|
|
783
783
|
if (_this__u8e3s4 instanceof HWB) {
|
|
784
784
|
tmp_1 = renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
@@ -790,7 +790,7 @@
|
|
|
790
790
|
tmp_1 = renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha);
|
|
791
791
|
} else {
|
|
792
792
|
if (_this__u8e3s4 instanceof XYZ) {
|
|
793
|
-
tmp_1 = _this__u8e3s4.
|
|
793
|
+
tmp_1 = _this__u8e3s4.t1m_1.m1n().equals(Illuminant_getInstance().n1p_1) ? renderFn(_this__u8e3s4, 'xyz-d65', unitsPercent, alphaPercent, renderAlpha) : renderFn(_this__u8e3s4.h1p(XYZColorSpaces_getInstance().g1p_1), 'xyz', unitsPercent, alphaPercent, renderAlpha);
|
|
794
794
|
} else {
|
|
795
795
|
tmp_1 = null;
|
|
796
796
|
}
|
|
@@ -824,30 +824,30 @@
|
|
|
824
824
|
function get_dashName(_this__u8e3s4) {
|
|
825
825
|
// Inline function 'kotlin.text.lowercase' call
|
|
826
826
|
// Inline function 'kotlin.text.replace' call
|
|
827
|
-
var this_0 = _this__u8e3s4.
|
|
827
|
+
var this_0 = _this__u8e3s4.f1m().q2();
|
|
828
828
|
// Inline function 'kotlin.js.asDynamic' call
|
|
829
829
|
return '--' + Regex_init_$Create$('\\W').qc(this_0, '-').toLowerCase();
|
|
830
830
|
}
|
|
831
831
|
function renderSRGB(_this__u8e3s4, commas, namedRgba, rgbPercent, alphaPercent, renderAlpha) {
|
|
832
|
-
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.
|
|
832
|
+
return renderColorFn(_this__u8e3s4, namedRgba ? 'rgba' : 'rgb', [rgbPercent ? render(_this__u8e3s4.i1m_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_r__impl__dulq0e(_this__u8e3s4.q1p())), rgbPercent ? render(_this__u8e3s4.j1m_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_g__impl__o93c71(_this__u8e3s4.q1p())), rgbPercent ? render(_this__u8e3s4.k1m_1, true) : UByte__toString_impl_v72jg(_RGBInt___get_b__impl__m772ua(_this__u8e3s4.q1p()))], alphaPercent, renderAlpha, commas);
|
|
833
833
|
}
|
|
834
834
|
function renderHsl(_this__u8e3s4, commas, namedHsla, hueUnit, alphaPercent, renderAlpha) {
|
|
835
|
-
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
835
|
+
return renderColorFn(_this__u8e3s4, namedHsla ? 'hsla' : 'hsl', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.s1p_1, true), render(_this__u8e3s4.t1p_1, true)], alphaPercent, renderAlpha, commas);
|
|
836
836
|
}
|
|
837
837
|
function renderLab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
838
|
-
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.
|
|
838
|
+
return renderColorFn(_this__u8e3s4, 'lab', [render(_this__u8e3s4.v1m_1 / 100, true), render(_this__u8e3s4.w1m_1), render(_this__u8e3s4.x1m_1)], alphaPercent, renderAlpha);
|
|
839
839
|
}
|
|
840
840
|
function renderLCH(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
841
|
-
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.
|
|
841
|
+
return renderColorFn(_this__u8e3s4, 'lch', [render(_this__u8e3s4.v1p_1 / 100, true), render(_this__u8e3s4.w1p_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
842
842
|
}
|
|
843
843
|
function renderHWB(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
844
|
-
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.
|
|
844
|
+
return renderColorFn(_this__u8e3s4, 'hwb', [renderHue(_this__u8e3s4, hueUnit), render(_this__u8e3s4.b1q_1, true), render(_this__u8e3s4.c1q_1, true)], alphaPercent, renderAlpha);
|
|
845
845
|
}
|
|
846
846
|
function renderOklab(_this__u8e3s4, alphaPercent, renderAlpha) {
|
|
847
|
-
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.
|
|
847
|
+
return renderColorFn(_this__u8e3s4, 'oklab', [render(_this__u8e3s4.d1n_1, true), render(_this__u8e3s4.e1n_1), render(_this__u8e3s4.f1n_1)], alphaPercent, renderAlpha);
|
|
848
848
|
}
|
|
849
849
|
function renderOklch(_this__u8e3s4, hueUnit, alphaPercent, renderAlpha) {
|
|
850
|
-
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.
|
|
850
|
+
return renderColorFn(_this__u8e3s4, 'oklch', [render(_this__u8e3s4.e1q_1, true), render(_this__u8e3s4.f1q_1), renderHue(_this__u8e3s4, hueUnit)], alphaPercent, renderAlpha);
|
|
851
851
|
}
|
|
852
852
|
function render(_this__u8e3s4, percent, precision) {
|
|
853
853
|
percent = percent === VOID ? false : percent;
|
|
@@ -874,8 +874,8 @@
|
|
|
874
874
|
}
|
|
875
875
|
function renderAlpha(_this__u8e3s4, commas, renderAlpha, alphaPercent) {
|
|
876
876
|
var tmp;
|
|
877
|
-
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.
|
|
878
|
-
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.
|
|
877
|
+
if (renderAlpha.equals(RenderCondition_ALWAYS_getInstance()) || (renderAlpha.equals(RenderCondition_AUTO_getInstance()) && !isNaN_0(_this__u8e3s4.e1m()) && !(_this__u8e3s4.e1m() === 1.0))) {
|
|
878
|
+
tmp = (commas ? ', ' : ' / ') + render(nanToOne(_this__u8e3s4.e1m()), alphaPercent);
|
|
879
879
|
} else {
|
|
880
880
|
tmp = '';
|
|
881
881
|
}
|
|
@@ -898,16 +898,16 @@
|
|
|
898
898
|
}
|
|
899
899
|
function renderHue(_this__u8e3s4, hueUnit) {
|
|
900
900
|
var tmp;
|
|
901
|
-
if (isNaN_0(_this__u8e3s4.
|
|
901
|
+
if (isNaN_0(_this__u8e3s4.i1q())) {
|
|
902
902
|
tmp = 'none';
|
|
903
903
|
} else {
|
|
904
904
|
var tmp_0;
|
|
905
905
|
switch (hueUnit.p2_1) {
|
|
906
906
|
case 0:
|
|
907
|
-
tmp_0 = render(_this__u8e3s4.
|
|
907
|
+
tmp_0 = render(_this__u8e3s4.i1q());
|
|
908
908
|
break;
|
|
909
909
|
case 1:
|
|
910
|
-
tmp_0 = render(_this__u8e3s4.
|
|
910
|
+
tmp_0 = render(_this__u8e3s4.i1q()) + 'deg';
|
|
911
911
|
break;
|
|
912
912
|
case 2:
|
|
913
913
|
tmp_0 = render(hueAsRad(_this__u8e3s4)) + 'rad';
|
|
@@ -944,27 +944,27 @@
|
|
|
944
944
|
return AngleUnit_AUTO_instance;
|
|
945
945
|
}
|
|
946
946
|
function hueOr(_this__u8e3s4, whenNaN) {
|
|
947
|
-
return isNaN_0(_this__u8e3s4.
|
|
947
|
+
return isNaN_0(_this__u8e3s4.i1q()) ? numberToDouble(whenNaN) : _this__u8e3s4.i1q();
|
|
948
948
|
}
|
|
949
949
|
function hueAsRad(_this__u8e3s4) {
|
|
950
|
-
return degToRad(_this__u8e3s4.
|
|
950
|
+
return degToRad(_this__u8e3s4.i1q());
|
|
951
951
|
}
|
|
952
952
|
function hueAsGrad(_this__u8e3s4) {
|
|
953
|
-
return degToGrad(_this__u8e3s4.
|
|
953
|
+
return degToGrad(_this__u8e3s4.i1q());
|
|
954
954
|
}
|
|
955
955
|
function hueAsTurns(_this__u8e3s4) {
|
|
956
|
-
return degToTurns(_this__u8e3s4.
|
|
956
|
+
return degToTurns(_this__u8e3s4.i1q());
|
|
957
957
|
}
|
|
958
958
|
function WhitePoint(name, chromaticity) {
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
959
|
+
this.j1q_1 = name;
|
|
960
|
+
this.k1q_1 = chromaticity;
|
|
961
961
|
}
|
|
962
962
|
protoOf(WhitePoint).toString = function () {
|
|
963
|
-
return this.
|
|
963
|
+
return this.j1q_1;
|
|
964
964
|
};
|
|
965
965
|
protoOf(WhitePoint).hashCode = function () {
|
|
966
|
-
var result = getStringHashCode(this.
|
|
967
|
-
result = imul(result, 31) + this.
|
|
966
|
+
var result = getStringHashCode(this.j1q_1);
|
|
967
|
+
result = imul(result, 31) + this.k1q_1.hashCode() | 0;
|
|
968
968
|
return result;
|
|
969
969
|
};
|
|
970
970
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -973,22 +973,22 @@
|
|
|
973
973
|
if (!(other instanceof WhitePoint))
|
|
974
974
|
return false;
|
|
975
975
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
976
|
-
if (!(this.
|
|
976
|
+
if (!(this.j1q_1 === tmp0_other_with_cast.j1q_1))
|
|
977
977
|
return false;
|
|
978
|
-
if (!this.
|
|
978
|
+
if (!this.k1q_1.equals(tmp0_other_with_cast.k1q_1))
|
|
979
979
|
return false;
|
|
980
980
|
return true;
|
|
981
981
|
};
|
|
982
982
|
function Illuminant() {
|
|
983
983
|
Illuminant_instance = this;
|
|
984
|
-
this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
984
|
+
this.i1p_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
985
|
+
this.j1p_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
986
|
+
this.k1p_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
987
|
+
this.l1p_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
988
|
+
this.m1p_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
989
|
+
this.n1p_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
990
|
+
this.o1p_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
991
|
+
this.p1p_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
992
992
|
}
|
|
993
993
|
var Illuminant_instance;
|
|
994
994
|
function Illuminant_getInstance() {
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
}
|
|
1079
1079
|
function CssColors() {
|
|
1080
1080
|
CssColors_instance = this;
|
|
1081
|
-
this.
|
|
1081
|
+
this.p1n_1 = mapOf([to('black', Companion_getInstance_6().l1q(0, 0, 0)), to('silver', Companion_getInstance_6().l1q(192, 192, 192)), to('gray', Companion_getInstance_6().l1q(128, 128, 128)), to('white', Companion_getInstance_6().l1q(255, 255, 255)), to('maroon', Companion_getInstance_6().l1q(128, 0, 0)), to('red', Companion_getInstance_6().l1q(255, 0, 0)), to('purple', Companion_getInstance_6().l1q(128, 0, 128)), to('fuchsia', Companion_getInstance_6().l1q(255, 0, 255)), to('green', Companion_getInstance_6().l1q(0, 128, 0)), to('lime', Companion_getInstance_6().l1q(0, 255, 0)), to('olive', Companion_getInstance_6().l1q(128, 128, 0)), to('yellow', Companion_getInstance_6().l1q(255, 255, 0)), to('navy', Companion_getInstance_6().l1q(0, 0, 128)), to('blue', Companion_getInstance_6().l1q(0, 0, 255)), to('teal', Companion_getInstance_6().l1q(0, 128, 128)), to('aqua', Companion_getInstance_6().l1q(0, 255, 255)), to('orange', Companion_getInstance_6().l1q(255, 165, 0)), to('aliceblue', Companion_getInstance_6().l1q(240, 248, 255)), to('antiquewhite', Companion_getInstance_6().l1q(250, 235, 215)), to('aquamarine', Companion_getInstance_6().l1q(127, 255, 212)), to('azure', Companion_getInstance_6().l1q(240, 255, 255)), to('beige', Companion_getInstance_6().l1q(245, 245, 220)), to('bisque', Companion_getInstance_6().l1q(255, 228, 196)), to('blanchedalmond', Companion_getInstance_6().l1q(255, 235, 205)), to('blueviolet', Companion_getInstance_6().l1q(138, 43, 226)), to('brown', Companion_getInstance_6().l1q(165, 42, 42)), to('burlywood', Companion_getInstance_6().l1q(222, 184, 135)), to('cadetblue', Companion_getInstance_6().l1q(95, 158, 160)), to('chartreuse', Companion_getInstance_6().l1q(127, 255, 0)), to('chocolate', Companion_getInstance_6().l1q(210, 105, 30)), to('coral', Companion_getInstance_6().l1q(255, 127, 80)), to('cornflowerblue', Companion_getInstance_6().l1q(100, 149, 237)), to('cornsilk', Companion_getInstance_6().l1q(255, 248, 220)), to('crimson', Companion_getInstance_6().l1q(220, 20, 60)), to('cyan', Companion_getInstance_6().l1q(0, 255, 255)), to('darkblue', Companion_getInstance_6().l1q(0, 0, 139)), to('darkcyan', Companion_getInstance_6().l1q(0, 139, 139)), to('darkgoldenrod', Companion_getInstance_6().l1q(184, 134, 11)), to('darkgray', Companion_getInstance_6().l1q(169, 169, 169)), to('darkgreen', Companion_getInstance_6().l1q(0, 100, 0)), to('darkgrey', Companion_getInstance_6().l1q(169, 169, 169)), to('darkkhaki', Companion_getInstance_6().l1q(189, 183, 107)), to('darkmagenta', Companion_getInstance_6().l1q(139, 0, 139)), to('darkolivegreen', Companion_getInstance_6().l1q(85, 107, 47)), to('darkorange', Companion_getInstance_6().l1q(255, 140, 0)), to('darkorchid', Companion_getInstance_6().l1q(153, 50, 204)), to('darkred', Companion_getInstance_6().l1q(139, 0, 0)), to('darksalmon', Companion_getInstance_6().l1q(233, 150, 122)), to('darkseagreen', Companion_getInstance_6().l1q(143, 188, 143)), to('darkslateblue', Companion_getInstance_6().l1q(72, 61, 139)), to('darkslategray', Companion_getInstance_6().l1q(47, 79, 79)), to('darkslategrey', Companion_getInstance_6().l1q(47, 79, 79)), to('darkturquoise', Companion_getInstance_6().l1q(0, 206, 209)), to('darkviolet', Companion_getInstance_6().l1q(148, 0, 211)), to('deeppink', Companion_getInstance_6().l1q(255, 20, 147)), to('deepskyblue', Companion_getInstance_6().l1q(0, 191, 255)), to('dimgray', Companion_getInstance_6().l1q(105, 105, 105)), to('dimgrey', Companion_getInstance_6().l1q(105, 105, 105)), to('dodgerblue', Companion_getInstance_6().l1q(30, 144, 255)), to('firebrick', Companion_getInstance_6().l1q(178, 34, 34)), to('floralwhite', Companion_getInstance_6().l1q(255, 250, 240)), to('forestgreen', Companion_getInstance_6().l1q(34, 139, 34)), to('gainsboro', Companion_getInstance_6().l1q(220, 220, 220)), to('ghostwhite', Companion_getInstance_6().l1q(248, 248, 255)), to('gold', Companion_getInstance_6().l1q(255, 215, 0)), to('goldenrod', Companion_getInstance_6().l1q(218, 165, 32)), to('greenyellow', Companion_getInstance_6().l1q(173, 255, 47)), to('grey', Companion_getInstance_6().l1q(128, 128, 128)), to('honeydew', Companion_getInstance_6().l1q(240, 255, 240)), to('hotpink', Companion_getInstance_6().l1q(255, 105, 180)), to('indianred', Companion_getInstance_6().l1q(205, 92, 92)), to('indigo', Companion_getInstance_6().l1q(75, 0, 130)), to('ivory', Companion_getInstance_6().l1q(255, 255, 240)), to('khaki', Companion_getInstance_6().l1q(240, 230, 140)), to('lavender', Companion_getInstance_6().l1q(230, 230, 250)), to('lavenderblush', Companion_getInstance_6().l1q(255, 240, 245)), to('lawngreen', Companion_getInstance_6().l1q(124, 252, 0)), to('lemonchiffon', Companion_getInstance_6().l1q(255, 250, 205)), to('lightblue', Companion_getInstance_6().l1q(173, 216, 230)), to('lightcoral', Companion_getInstance_6().l1q(240, 128, 128)), to('lightcyan', Companion_getInstance_6().l1q(224, 255, 255)), to('lightgoldenrodyellow', Companion_getInstance_6().l1q(250, 250, 210)), to('lightgray', Companion_getInstance_6().l1q(211, 211, 211)), to('lightgreen', Companion_getInstance_6().l1q(144, 238, 144)), to('lightgrey', Companion_getInstance_6().l1q(211, 211, 211)), to('lightpink', Companion_getInstance_6().l1q(255, 182, 193)), to('lightsalmon', Companion_getInstance_6().l1q(255, 160, 122)), to('lightseagreen', Companion_getInstance_6().l1q(32, 178, 170)), to('lightskyblue', Companion_getInstance_6().l1q(135, 206, 250)), to('lightslategray', Companion_getInstance_6().l1q(119, 136, 153)), to('lightslategrey', Companion_getInstance_6().l1q(119, 136, 153)), to('lightsteelblue', Companion_getInstance_6().l1q(176, 196, 222)), to('lightyellow', Companion_getInstance_6().l1q(255, 255, 224)), to('limegreen', Companion_getInstance_6().l1q(50, 205, 50)), to('linen', Companion_getInstance_6().l1q(250, 240, 230)), to('magenta', Companion_getInstance_6().l1q(255, 0, 255)), to('mediumaquamarine', Companion_getInstance_6().l1q(102, 205, 170)), to('mediumblue', Companion_getInstance_6().l1q(0, 0, 205)), to('mediumorchid', Companion_getInstance_6().l1q(186, 85, 211)), to('mediumpurple', Companion_getInstance_6().l1q(147, 112, 219)), to('mediumseagreen', Companion_getInstance_6().l1q(60, 179, 113)), to('mediumslateblue', Companion_getInstance_6().l1q(123, 104, 238)), to('mediumspringgreen', Companion_getInstance_6().l1q(0, 250, 154)), to('mediumturquoise', Companion_getInstance_6().l1q(72, 209, 204)), to('mediumvioletred', Companion_getInstance_6().l1q(199, 21, 133)), to('midnightblue', Companion_getInstance_6().l1q(25, 25, 112)), to('mintcream', Companion_getInstance_6().l1q(245, 255, 250)), to('mistyrose', Companion_getInstance_6().l1q(255, 228, 225)), to('moccasin', Companion_getInstance_6().l1q(255, 228, 181)), to('navajowhite', Companion_getInstance_6().l1q(255, 222, 173)), to('oldlace', Companion_getInstance_6().l1q(253, 245, 230)), to('olivedrab', Companion_getInstance_6().l1q(107, 142, 35)), to('orangered', Companion_getInstance_6().l1q(255, 69, 0)), to('orchid', Companion_getInstance_6().l1q(218, 112, 214)), to('palegoldenrod', Companion_getInstance_6().l1q(238, 232, 170)), to('palegreen', Companion_getInstance_6().l1q(152, 251, 152)), to('paleturquoise', Companion_getInstance_6().l1q(175, 238, 238)), to('palevioletred', Companion_getInstance_6().l1q(219, 112, 147)), to('papayawhip', Companion_getInstance_6().l1q(255, 239, 213)), to('peachpuff', Companion_getInstance_6().l1q(255, 218, 185)), to('peru', Companion_getInstance_6().l1q(205, 133, 63)), to('pink', Companion_getInstance_6().l1q(255, 192, 203)), to('plum', Companion_getInstance_6().l1q(221, 160, 221)), to('powderblue', Companion_getInstance_6().l1q(176, 224, 230)), to('rosybrown', Companion_getInstance_6().l1q(188, 143, 143)), to('royalblue', Companion_getInstance_6().l1q(65, 105, 225)), to('saddlebrown', Companion_getInstance_6().l1q(139, 69, 19)), to('salmon', Companion_getInstance_6().l1q(250, 128, 114)), to('sandybrown', Companion_getInstance_6().l1q(244, 164, 96)), to('seagreen', Companion_getInstance_6().l1q(46, 139, 87)), to('seashell', Companion_getInstance_6().l1q(255, 245, 238)), to('sienna', Companion_getInstance_6().l1q(160, 82, 45)), to('skyblue', Companion_getInstance_6().l1q(135, 206, 235)), to('slateblue', Companion_getInstance_6().l1q(106, 90, 205)), to('slategray', Companion_getInstance_6().l1q(112, 128, 144)), to('slategrey', Companion_getInstance_6().l1q(112, 128, 144)), to('snow', Companion_getInstance_6().l1q(255, 250, 250)), to('springgreen', Companion_getInstance_6().l1q(0, 255, 127)), to('steelblue', Companion_getInstance_6().l1q(70, 130, 180)), to('tan', Companion_getInstance_6().l1q(210, 180, 140)), to('thistle', Companion_getInstance_6().l1q(216, 191, 216)), to('tomato', Companion_getInstance_6().l1q(255, 99, 71)), to('turquoise', Companion_getInstance_6().l1q(64, 224, 208)), to('violet', Companion_getInstance_6().l1q(238, 130, 238)), to('wheat', Companion_getInstance_6().l1q(245, 222, 179)), to('whitesmoke', Companion_getInstance_6().l1q(245, 245, 245)), to('yellowgreen', Companion_getInstance_6().l1q(154, 205, 50)), to('rebeccapurple', Companion_getInstance_6().l1q(102, 51, 153)), to('transparent', Companion_getInstance_6().m1q(0, 0, 0, 0))]);
|
|
1082
1082
|
}
|
|
1083
1083
|
var CssColors_instance;
|
|
1084
1084
|
function CssColors_getInstance() {
|
|
@@ -1164,22 +1164,22 @@
|
|
|
1164
1164
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
1165
1165
|
if (!(other instanceof Matrix))
|
|
1166
1166
|
return false;
|
|
1167
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
1167
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.n1q_1 : THROW_CCE();
|
|
1168
1168
|
if (!equals($this, tmp0_other_with_cast))
|
|
1169
1169
|
return false;
|
|
1170
1170
|
return true;
|
|
1171
1171
|
}
|
|
1172
1172
|
function Matrix(rowMajor) {
|
|
1173
|
-
this.
|
|
1173
|
+
this.n1q_1 = rowMajor;
|
|
1174
1174
|
}
|
|
1175
1175
|
protoOf(Matrix).toString = function () {
|
|
1176
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
1176
|
+
return Matrix__toString_impl_l0abk0(this.n1q_1);
|
|
1177
1177
|
};
|
|
1178
1178
|
protoOf(Matrix).hashCode = function () {
|
|
1179
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
1179
|
+
return Matrix__hashCode_impl_s9ntm9(this.n1q_1);
|
|
1180
1180
|
};
|
|
1181
1181
|
protoOf(Matrix).equals = function (other) {
|
|
1182
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
1182
|
+
return Matrix__equals_impl_g5p8p9(this.n1q_1, other);
|
|
1183
1183
|
};
|
|
1184
1184
|
function inverse(_this__u8e3s4, inPlace) {
|
|
1185
1185
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -1260,21 +1260,21 @@
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function Companion_0() {
|
|
1262
1262
|
Companion_instance_1 = this;
|
|
1263
|
-
this.
|
|
1263
|
+
this.j1o_1 = polarComponentInfo('HSL', 0.0, 1.0);
|
|
1264
1264
|
}
|
|
1265
1265
|
protoOf(Companion_0).q2 = function () {
|
|
1266
1266
|
return 'HSL';
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(Companion_0).
|
|
1269
|
-
return this.
|
|
1268
|
+
protoOf(Companion_0).n1n = function () {
|
|
1269
|
+
return this.j1o_1;
|
|
1270
1270
|
};
|
|
1271
|
-
protoOf(Companion_0).
|
|
1272
|
-
return color.
|
|
1271
|
+
protoOf(Companion_0).h1n = function (color) {
|
|
1272
|
+
return color.h1m();
|
|
1273
1273
|
};
|
|
1274
|
-
protoOf(Companion_0).
|
|
1274
|
+
protoOf(Companion_0).o1n = function (components) {
|
|
1275
1275
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1276
1276
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1277
|
-
var size = this.
|
|
1277
|
+
var size = this.n1n().m();
|
|
1278
1278
|
// Inline function 'kotlin.require' call
|
|
1279
1279
|
var containsLower = size - 1 | 0;
|
|
1280
1280
|
var containsArg = components.length;
|
|
@@ -1320,53 +1320,53 @@
|
|
|
1320
1320
|
function HSL(h, s, l, alpha) {
|
|
1321
1321
|
Companion_getInstance_0();
|
|
1322
1322
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1323
|
+
this.r1p_1 = h;
|
|
1324
|
+
this.s1p_1 = s;
|
|
1325
|
+
this.t1p_1 = l;
|
|
1326
|
+
this.u1p_1 = alpha;
|
|
1327
1327
|
}
|
|
1328
|
-
protoOf(HSL).
|
|
1329
|
-
return this.
|
|
1328
|
+
protoOf(HSL).i1q = function () {
|
|
1329
|
+
return this.r1p_1;
|
|
1330
1330
|
};
|
|
1331
|
-
protoOf(HSL).
|
|
1332
|
-
return this.
|
|
1331
|
+
protoOf(HSL).e1m = function () {
|
|
1332
|
+
return this.u1p_1;
|
|
1333
1333
|
};
|
|
1334
|
-
protoOf(HSL).
|
|
1334
|
+
protoOf(HSL).f1m = function () {
|
|
1335
1335
|
return Companion_getInstance_0();
|
|
1336
1336
|
};
|
|
1337
|
-
protoOf(HSL).
|
|
1338
|
-
if (this.
|
|
1339
|
-
return Companion_getInstance_6().
|
|
1337
|
+
protoOf(HSL).g1m = function () {
|
|
1338
|
+
if (this.s1p_1 < 1.0E-7)
|
|
1339
|
+
return Companion_getInstance_6().i1o(this.t1p_1, this.t1p_1, this.t1p_1, this.u1p_1);
|
|
1340
1340
|
var h = normalizeDeg_0(hueOr(this, 0)) / 30.0;
|
|
1341
|
-
var s = this.
|
|
1342
|
-
var l = this.
|
|
1343
|
-
return SRGB_getInstance().
|
|
1341
|
+
var s = this.s1p_1;
|
|
1342
|
+
var l = this.t1p_1;
|
|
1343
|
+
return SRGB_getInstance().i1o(toSRGB$f(h, s, l, 0), toSRGB$f(h, s, l, 8), toSRGB$f(h, s, l, 4), this.u1p_1);
|
|
1344
1344
|
};
|
|
1345
|
-
protoOf(HSL).
|
|
1345
|
+
protoOf(HSL).h1m = function () {
|
|
1346
1346
|
return this;
|
|
1347
1347
|
};
|
|
1348
1348
|
protoOf(HSL).u5 = function () {
|
|
1349
1349
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1350
|
-
return new Float32Array([this.
|
|
1350
|
+
return new Float32Array([this.r1p_1, this.s1p_1, this.t1p_1, this.u1p_1]);
|
|
1351
1351
|
};
|
|
1352
|
-
protoOf(HSL).
|
|
1352
|
+
protoOf(HSL).p1q = function (h, s, l, alpha) {
|
|
1353
1353
|
return new HSL(h, s, l, alpha);
|
|
1354
1354
|
};
|
|
1355
|
-
protoOf(HSL).
|
|
1356
|
-
h = h === VOID ? this.
|
|
1357
|
-
s = s === VOID ? this.
|
|
1358
|
-
l = l === VOID ? this.
|
|
1359
|
-
alpha = alpha === VOID ? this.
|
|
1360
|
-
return $super === VOID ? this.
|
|
1355
|
+
protoOf(HSL).q1q = function (h, s, l, alpha, $super) {
|
|
1356
|
+
h = h === VOID ? this.r1p_1 : h;
|
|
1357
|
+
s = s === VOID ? this.s1p_1 : s;
|
|
1358
|
+
l = l === VOID ? this.t1p_1 : l;
|
|
1359
|
+
alpha = alpha === VOID ? this.u1p_1 : alpha;
|
|
1360
|
+
return $super === VOID ? this.p1q(h, s, l, alpha) : $super.p1q.call(this, h, s, l, alpha);
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf(HSL).toString = function () {
|
|
1363
|
-
return 'HSL(h=' + this.
|
|
1363
|
+
return 'HSL(h=' + this.r1p_1 + ', s=' + this.s1p_1 + ', l=' + this.t1p_1 + ', alpha=' + this.u1p_1 + ')';
|
|
1364
1364
|
};
|
|
1365
1365
|
protoOf(HSL).hashCode = function () {
|
|
1366
|
-
var result = getNumberHashCode(this.
|
|
1367
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1368
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1369
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1366
|
+
var result = getNumberHashCode(this.r1p_1);
|
|
1367
|
+
result = imul(result, 31) + getNumberHashCode(this.s1p_1) | 0;
|
|
1368
|
+
result = imul(result, 31) + getNumberHashCode(this.t1p_1) | 0;
|
|
1369
|
+
result = imul(result, 31) + getNumberHashCode(this.u1p_1) | 0;
|
|
1370
1370
|
return result;
|
|
1371
1371
|
};
|
|
1372
1372
|
protoOf(HSL).equals = function (other) {
|
|
@@ -1375,33 +1375,33 @@
|
|
|
1375
1375
|
if (!(other instanceof HSL))
|
|
1376
1376
|
return false;
|
|
1377
1377
|
var tmp0_other_with_cast = other instanceof HSL ? other : THROW_CCE();
|
|
1378
|
-
if (!equals(this.
|
|
1378
|
+
if (!equals(this.r1p_1, tmp0_other_with_cast.r1p_1))
|
|
1379
1379
|
return false;
|
|
1380
|
-
if (!equals(this.
|
|
1380
|
+
if (!equals(this.s1p_1, tmp0_other_with_cast.s1p_1))
|
|
1381
1381
|
return false;
|
|
1382
|
-
if (!equals(this.
|
|
1382
|
+
if (!equals(this.t1p_1, tmp0_other_with_cast.t1p_1))
|
|
1383
1383
|
return false;
|
|
1384
|
-
if (!equals(this.
|
|
1384
|
+
if (!equals(this.u1p_1, tmp0_other_with_cast.u1p_1))
|
|
1385
1385
|
return false;
|
|
1386
1386
|
return true;
|
|
1387
1387
|
};
|
|
1388
1388
|
function Companion_1() {
|
|
1389
1389
|
Companion_instance_2 = this;
|
|
1390
|
-
this.
|
|
1390
|
+
this.q1o_1 = polarComponentInfo('HWB', 0.0, 1.0);
|
|
1391
1391
|
}
|
|
1392
1392
|
protoOf(Companion_1).q2 = function () {
|
|
1393
1393
|
return 'HWB';
|
|
1394
1394
|
};
|
|
1395
|
-
protoOf(Companion_1).
|
|
1396
|
-
return this.
|
|
1395
|
+
protoOf(Companion_1).n1n = function () {
|
|
1396
|
+
return this.q1o_1;
|
|
1397
1397
|
};
|
|
1398
|
-
protoOf(Companion_1).
|
|
1399
|
-
return color.
|
|
1398
|
+
protoOf(Companion_1).h1n = function (color) {
|
|
1399
|
+
return color.a1n();
|
|
1400
1400
|
};
|
|
1401
|
-
protoOf(Companion_1).
|
|
1401
|
+
protoOf(Companion_1).o1n = function (components) {
|
|
1402
1402
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1403
1403
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1404
|
-
var size = this.
|
|
1404
|
+
var size = this.n1n().m();
|
|
1405
1405
|
// Inline function 'kotlin.require' call
|
|
1406
1406
|
var containsLower = size - 1 | 0;
|
|
1407
1407
|
var containsArg = components.length;
|
|
@@ -1436,28 +1436,28 @@
|
|
|
1436
1436
|
function HWB(h, w, b, alpha) {
|
|
1437
1437
|
Companion_getInstance_1();
|
|
1438
1438
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1439
|
+
this.a1q_1 = h;
|
|
1440
|
+
this.b1q_1 = w;
|
|
1441
|
+
this.c1q_1 = b;
|
|
1442
|
+
this.d1q_1 = alpha;
|
|
1443
1443
|
}
|
|
1444
|
-
protoOf(HWB).
|
|
1445
|
-
return this.
|
|
1444
|
+
protoOf(HWB).i1q = function () {
|
|
1445
|
+
return this.a1q_1;
|
|
1446
1446
|
};
|
|
1447
|
-
protoOf(HWB).
|
|
1448
|
-
return this.
|
|
1447
|
+
protoOf(HWB).e1m = function () {
|
|
1448
|
+
return this.d1q_1;
|
|
1449
1449
|
};
|
|
1450
|
-
protoOf(HWB).
|
|
1450
|
+
protoOf(HWB).f1m = function () {
|
|
1451
1451
|
return Companion_getInstance_1();
|
|
1452
1452
|
};
|
|
1453
|
-
protoOf(HWB).
|
|
1454
|
-
var h = this.
|
|
1455
|
-
var w = this.
|
|
1456
|
-
var b = this.
|
|
1457
|
-
var a = this.
|
|
1453
|
+
protoOf(HWB).g1m = function () {
|
|
1454
|
+
var h = this.a1q_1 / 60.0;
|
|
1455
|
+
var w = this.b1q_1;
|
|
1456
|
+
var b = this.c1q_1;
|
|
1457
|
+
var a = this.d1q_1;
|
|
1458
1458
|
if (w + b >= 1) {
|
|
1459
1459
|
var gray = w / (w + b);
|
|
1460
|
-
return Companion_getInstance_6().
|
|
1460
|
+
return Companion_getInstance_6().i1o(gray, gray, gray, a);
|
|
1461
1461
|
}
|
|
1462
1462
|
var v = 1 - b;
|
|
1463
1463
|
var i = numberToInt(h);
|
|
@@ -1465,34 +1465,34 @@
|
|
|
1465
1465
|
var n = w + f * (v - w);
|
|
1466
1466
|
switch (i) {
|
|
1467
1467
|
case 1:
|
|
1468
|
-
return Companion_getInstance_6().
|
|
1468
|
+
return Companion_getInstance_6().i1o(n, v, w, a);
|
|
1469
1469
|
case 2:
|
|
1470
|
-
return Companion_getInstance_6().
|
|
1470
|
+
return Companion_getInstance_6().i1o(w, v, n, a);
|
|
1471
1471
|
case 3:
|
|
1472
|
-
return Companion_getInstance_6().
|
|
1472
|
+
return Companion_getInstance_6().i1o(w, n, v, a);
|
|
1473
1473
|
case 4:
|
|
1474
|
-
return Companion_getInstance_6().
|
|
1474
|
+
return Companion_getInstance_6().i1o(n, w, v, a);
|
|
1475
1475
|
case 5:
|
|
1476
|
-
return Companion_getInstance_6().
|
|
1476
|
+
return Companion_getInstance_6().i1o(v, w, n, a);
|
|
1477
1477
|
default:
|
|
1478
|
-
return Companion_getInstance_6().
|
|
1478
|
+
return Companion_getInstance_6().i1o(v, n, w, a);
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
protoOf(HWB).
|
|
1481
|
+
protoOf(HWB).a1n = function () {
|
|
1482
1482
|
return this;
|
|
1483
1483
|
};
|
|
1484
1484
|
protoOf(HWB).u5 = function () {
|
|
1485
1485
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1486
|
-
return new Float32Array([this.
|
|
1486
|
+
return new Float32Array([this.a1q_1, this.b1q_1, this.c1q_1, this.d1q_1]);
|
|
1487
1487
|
};
|
|
1488
1488
|
protoOf(HWB).toString = function () {
|
|
1489
|
-
return 'HWB(h=' + this.
|
|
1489
|
+
return 'HWB(h=' + this.a1q_1 + ', w=' + this.b1q_1 + ', b=' + this.c1q_1 + ', alpha=' + this.d1q_1 + ')';
|
|
1490
1490
|
};
|
|
1491
1491
|
protoOf(HWB).hashCode = function () {
|
|
1492
|
-
var result = getNumberHashCode(this.
|
|
1493
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1494
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1495
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1492
|
+
var result = getNumberHashCode(this.a1q_1);
|
|
1493
|
+
result = imul(result, 31) + getNumberHashCode(this.b1q_1) | 0;
|
|
1494
|
+
result = imul(result, 31) + getNumberHashCode(this.c1q_1) | 0;
|
|
1495
|
+
result = imul(result, 31) + getNumberHashCode(this.d1q_1) | 0;
|
|
1496
1496
|
return result;
|
|
1497
1497
|
};
|
|
1498
1498
|
protoOf(HWB).equals = function (other) {
|
|
@@ -1501,13 +1501,13 @@
|
|
|
1501
1501
|
if (!(other instanceof HWB))
|
|
1502
1502
|
return false;
|
|
1503
1503
|
var tmp0_other_with_cast = other instanceof HWB ? other : THROW_CCE();
|
|
1504
|
-
if (!equals(this.
|
|
1504
|
+
if (!equals(this.a1q_1, tmp0_other_with_cast.a1q_1))
|
|
1505
1505
|
return false;
|
|
1506
|
-
if (!equals(this.
|
|
1506
|
+
if (!equals(this.b1q_1, tmp0_other_with_cast.b1q_1))
|
|
1507
1507
|
return false;
|
|
1508
|
-
if (!equals(this.
|
|
1508
|
+
if (!equals(this.c1q_1, tmp0_other_with_cast.c1q_1))
|
|
1509
1509
|
return false;
|
|
1510
|
-
if (!equals(this.
|
|
1510
|
+
if (!equals(this.d1q_1, tmp0_other_with_cast.d1q_1))
|
|
1511
1511
|
return false;
|
|
1512
1512
|
return true;
|
|
1513
1513
|
};
|
|
@@ -1549,45 +1549,45 @@
|
|
|
1549
1549
|
var ICTCP_LMS_TO_XYZ;
|
|
1550
1550
|
function ICtCp() {
|
|
1551
1551
|
}
|
|
1552
|
-
protoOf(ICtCp).
|
|
1553
|
-
var fo = RGBColorSpaces_getInstance().
|
|
1552
|
+
protoOf(ICtCp).v1q = function () {
|
|
1553
|
+
var fo = RGBColorSpaces_getInstance().a1p_1.w1q();
|
|
1554
1554
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1555
1555
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
1556
|
-
var v0 = this.
|
|
1557
|
-
var v1 = this.
|
|
1558
|
-
var v2 = this.
|
|
1556
|
+
var v0 = this.r1q_1;
|
|
1557
|
+
var v1 = this.s1q_1;
|
|
1558
|
+
var v2 = this.t1q_1;
|
|
1559
1559
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
1560
1560
|
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;
|
|
1561
1561
|
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;
|
|
1562
1562
|
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;
|
|
1563
1563
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1564
1564
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
1565
|
-
var v0_0 = PqNonlinearity_instance.
|
|
1566
|
-
var v1_0 = PqNonlinearity_instance.
|
|
1567
|
-
var v2_0 = PqNonlinearity_instance.
|
|
1565
|
+
var v0_0 = PqNonlinearity_instance.f1r(l);
|
|
1566
|
+
var v1_0 = PqNonlinearity_instance.f1r(m);
|
|
1567
|
+
var v2_0 = PqNonlinearity_instance.f1r(s);
|
|
1568
1568
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
1569
1569
|
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;
|
|
1570
1570
|
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;
|
|
1571
1571
|
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;
|
|
1572
|
-
return RGBColorSpaces_getInstance().
|
|
1572
|
+
return RGBColorSpaces_getInstance().a1p_1.i1o(fo.g1r(r), fo.g1r(g), fo.g1r(b), this.u1q_1);
|
|
1573
1573
|
};
|
|
1574
1574
|
function PqNonlinearity() {
|
|
1575
|
-
this.
|
|
1576
|
-
this.
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
}
|
|
1584
|
-
protoOf(PqNonlinearity).
|
|
1575
|
+
this.x1q_1 = 0.1593017578125;
|
|
1576
|
+
this.y1q_1 = 78.84375;
|
|
1577
|
+
this.z1q_1 = 0.8359375;
|
|
1578
|
+
this.a1r_1 = 18.8515625;
|
|
1579
|
+
this.b1r_1 = 18.6875;
|
|
1580
|
+
this.c1r_1 = 10000.0;
|
|
1581
|
+
this.d1r_1 = 6.277394636015326;
|
|
1582
|
+
this.e1r_1 = 0.012683313515655966;
|
|
1583
|
+
}
|
|
1584
|
+
protoOf(PqNonlinearity).f1r = function (x) {
|
|
1585
1585
|
var vp = spow(x, 0.012683313515655966);
|
|
1586
1586
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
1587
1587
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
1588
1588
|
return 10000.0 * l;
|
|
1589
1589
|
};
|
|
1590
|
-
protoOf(PqNonlinearity).
|
|
1590
|
+
protoOf(PqNonlinearity).g1r = function (x) {
|
|
1591
1591
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
1592
1592
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
1593
1593
|
};
|
|
@@ -1611,34 +1611,34 @@
|
|
|
1611
1611
|
}
|
|
1612
1612
|
function Companion_2() {
|
|
1613
1613
|
Companion_instance_3 = this;
|
|
1614
|
-
this.
|
|
1614
|
+
this.k1o_1 = LABColorSpaces_getInstance().l1o_1;
|
|
1615
1615
|
}
|
|
1616
|
-
protoOf(Companion_2).
|
|
1617
|
-
return this.
|
|
1616
|
+
protoOf(Companion_2).i1o = function (l, a, b, alpha) {
|
|
1617
|
+
return this.k1o_1.i1o(l, a, b, alpha);
|
|
1618
1618
|
};
|
|
1619
|
-
protoOf(Companion_2).
|
|
1620
|
-
return this.
|
|
1619
|
+
protoOf(Companion_2).h1r = function (l, a, b, alpha) {
|
|
1620
|
+
return this.k1o_1.h1r(l, a, b, alpha);
|
|
1621
1621
|
};
|
|
1622
|
-
protoOf(Companion_2).
|
|
1623
|
-
return this.
|
|
1622
|
+
protoOf(Companion_2).h1n = function (color) {
|
|
1623
|
+
return this.k1o_1.h1n(color);
|
|
1624
1624
|
};
|
|
1625
|
-
protoOf(Companion_2).
|
|
1626
|
-
return this.
|
|
1625
|
+
protoOf(Companion_2).o1n = function (components) {
|
|
1626
|
+
return this.k1o_1.o1n(components);
|
|
1627
1627
|
};
|
|
1628
|
-
protoOf(Companion_2).
|
|
1629
|
-
return this.
|
|
1628
|
+
protoOf(Companion_2).m1n = function () {
|
|
1629
|
+
return this.k1o_1.m1n();
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(Companion_2).q2 = function () {
|
|
1632
|
-
return this.
|
|
1632
|
+
return this.k1o_1.q2();
|
|
1633
1633
|
};
|
|
1634
|
-
protoOf(Companion_2).
|
|
1635
|
-
return this.
|
|
1634
|
+
protoOf(Companion_2).n1n = function () {
|
|
1635
|
+
return this.k1o_1.n1n();
|
|
1636
1636
|
};
|
|
1637
1637
|
protoOf(Companion_2).equals = function (other) {
|
|
1638
|
-
return equals(LABColorSpaces_getInstance().
|
|
1638
|
+
return equals(LABColorSpaces_getInstance().l1o_1, other);
|
|
1639
1639
|
};
|
|
1640
1640
|
protoOf(Companion_2).hashCode = function () {
|
|
1641
|
-
return hashCode(LABColorSpaces_getInstance().
|
|
1641
|
+
return hashCode(LABColorSpaces_getInstance().l1o_1);
|
|
1642
1642
|
};
|
|
1643
1643
|
var Companion_instance_3;
|
|
1644
1644
|
function Companion_getInstance_2() {
|
|
@@ -1648,34 +1648,34 @@
|
|
|
1648
1648
|
}
|
|
1649
1649
|
function LAB(l, a, b, alpha, space) {
|
|
1650
1650
|
Companion_getInstance_2();
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
}
|
|
1657
|
-
protoOf(LAB).
|
|
1658
|
-
return this.
|
|
1659
|
-
};
|
|
1660
|
-
protoOf(LAB).
|
|
1661
|
-
return this.
|
|
1662
|
-
};
|
|
1663
|
-
protoOf(LAB).
|
|
1664
|
-
return this.
|
|
1665
|
-
};
|
|
1666
|
-
protoOf(LAB).
|
|
1667
|
-
var xyzSpace = XYZColorSpace_0(this.
|
|
1668
|
-
if (this.
|
|
1669
|
-
return xyzSpace.
|
|
1670
|
-
var fy = (this.
|
|
1671
|
-
var fz = fy - this.
|
|
1672
|
-
var fx = this.
|
|
1651
|
+
this.v1m_1 = l;
|
|
1652
|
+
this.w1m_1 = a;
|
|
1653
|
+
this.x1m_1 = b;
|
|
1654
|
+
this.y1m_1 = alpha;
|
|
1655
|
+
this.z1m_1 = space;
|
|
1656
|
+
}
|
|
1657
|
+
protoOf(LAB).e1m = function () {
|
|
1658
|
+
return this.y1m_1;
|
|
1659
|
+
};
|
|
1660
|
+
protoOf(LAB).f1m = function () {
|
|
1661
|
+
return this.z1m_1;
|
|
1662
|
+
};
|
|
1663
|
+
protoOf(LAB).g1m = function () {
|
|
1664
|
+
return this.v1m_1 === 0.0 ? Companion_getInstance_6().i1o(0.0, 0.0, 0.0, this.y1m_1) : this.n1m().g1m();
|
|
1665
|
+
};
|
|
1666
|
+
protoOf(LAB).n1m = function () {
|
|
1667
|
+
var xyzSpace = XYZColorSpace_0(this.z1m_1.m1n());
|
|
1668
|
+
if (this.v1m_1 === 0.0)
|
|
1669
|
+
return xyzSpace.i1r(0.0, 0.0, 0.0);
|
|
1670
|
+
var fy = (this.v1m_1 + 16) / 116.0;
|
|
1671
|
+
var fz = fy - this.x1m_1 / 200.0;
|
|
1672
|
+
var fx = this.w1m_1 / 500.0 + fy;
|
|
1673
1673
|
var tmp;
|
|
1674
|
-
if (this.
|
|
1674
|
+
if (this.v1m_1 > 8.0) {
|
|
1675
1675
|
// Inline function 'kotlin.math.pow' call
|
|
1676
1676
|
tmp = Math.pow(fy, 3);
|
|
1677
1677
|
} else {
|
|
1678
|
-
tmp = this.
|
|
1678
|
+
tmp = this.v1m_1 / 903.2962962962963;
|
|
1679
1679
|
}
|
|
1680
1680
|
var yr = tmp;
|
|
1681
1681
|
// Inline function 'kotlin.let' call
|
|
@@ -1690,13 +1690,13 @@
|
|
|
1690
1690
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toXYZ.<anonymous>' call
|
|
1691
1691
|
var it_0 = Math.pow(fx, 3);
|
|
1692
1692
|
var xr = it_0 > 0.008856451679035631 ? it_0 : (116 * fx - 16) / 903.2962962962963;
|
|
1693
|
-
var wp = this.
|
|
1694
|
-
return xyzSpace.
|
|
1693
|
+
var wp = this.z1m_1.m1n().k1q_1;
|
|
1694
|
+
return xyzSpace.h1r(xr * wp.m1r(), yr * wp.l1r_1, zr * wp.n1r(), this.y1m_1);
|
|
1695
1695
|
};
|
|
1696
|
-
protoOf(LAB).
|
|
1696
|
+
protoOf(LAB).u1m = function () {
|
|
1697
1697
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
1698
|
-
var a = this.
|
|
1699
|
-
var b = this.
|
|
1698
|
+
var a = this.w1m_1;
|
|
1699
|
+
var b = this.x1m_1;
|
|
1700
1700
|
// Inline function 'kotlin.math.sqrt' call
|
|
1701
1701
|
var x = a * a + b * b;
|
|
1702
1702
|
var c = Math.sqrt(x);
|
|
@@ -1711,24 +1711,24 @@
|
|
|
1711
1711
|
var h = tmp;
|
|
1712
1712
|
// Inline function 'com.github.ajalt.colormath.model.LAB.toLCHab.<anonymous>' call
|
|
1713
1713
|
var h_0 = normalizeDeg_0(h);
|
|
1714
|
-
return LCHabColorSpace_0(this.
|
|
1714
|
+
return LCHabColorSpace_0(this.z1m_1.m1n()).i1o(this.v1m_1, c, h_0, this.y1m_1);
|
|
1715
1715
|
};
|
|
1716
|
-
protoOf(LAB).
|
|
1716
|
+
protoOf(LAB).o1m = function () {
|
|
1717
1717
|
return this;
|
|
1718
1718
|
};
|
|
1719
1719
|
protoOf(LAB).u5 = function () {
|
|
1720
1720
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1721
|
-
return new Float32Array([this.
|
|
1721
|
+
return new Float32Array([this.v1m_1, this.w1m_1, this.x1m_1, this.y1m_1]);
|
|
1722
1722
|
};
|
|
1723
1723
|
protoOf(LAB).toString = function () {
|
|
1724
|
-
return 'LAB(l=' + this.
|
|
1724
|
+
return 'LAB(l=' + this.v1m_1 + ', a=' + this.w1m_1 + ', b=' + this.x1m_1 + ', alpha=' + this.y1m_1 + ', space=' + toString(this.z1m_1) + ')';
|
|
1725
1725
|
};
|
|
1726
1726
|
protoOf(LAB).hashCode = function () {
|
|
1727
|
-
var result = getNumberHashCode(this.
|
|
1728
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1729
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1730
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1731
|
-
result = imul(result, 31) + hashCode(this.
|
|
1727
|
+
var result = getNumberHashCode(this.v1m_1);
|
|
1728
|
+
result = imul(result, 31) + getNumberHashCode(this.w1m_1) | 0;
|
|
1729
|
+
result = imul(result, 31) + getNumberHashCode(this.x1m_1) | 0;
|
|
1730
|
+
result = imul(result, 31) + getNumberHashCode(this.y1m_1) | 0;
|
|
1731
|
+
result = imul(result, 31) + hashCode(this.z1m_1) | 0;
|
|
1732
1732
|
return result;
|
|
1733
1733
|
};
|
|
1734
1734
|
protoOf(LAB).equals = function (other) {
|
|
@@ -1737,27 +1737,27 @@
|
|
|
1737
1737
|
if (!(other instanceof LAB))
|
|
1738
1738
|
return false;
|
|
1739
1739
|
var tmp0_other_with_cast = other instanceof LAB ? other : THROW_CCE();
|
|
1740
|
-
if (!equals(this.
|
|
1740
|
+
if (!equals(this.v1m_1, tmp0_other_with_cast.v1m_1))
|
|
1741
1741
|
return false;
|
|
1742
|
-
if (!equals(this.
|
|
1742
|
+
if (!equals(this.w1m_1, tmp0_other_with_cast.w1m_1))
|
|
1743
1743
|
return false;
|
|
1744
|
-
if (!equals(this.
|
|
1744
|
+
if (!equals(this.x1m_1, tmp0_other_with_cast.x1m_1))
|
|
1745
1745
|
return false;
|
|
1746
|
-
if (!equals(this.
|
|
1746
|
+
if (!equals(this.y1m_1, tmp0_other_with_cast.y1m_1))
|
|
1747
1747
|
return false;
|
|
1748
|
-
if (!equals(this.
|
|
1748
|
+
if (!equals(this.z1m_1, tmp0_other_with_cast.z1m_1))
|
|
1749
1749
|
return false;
|
|
1750
1750
|
return true;
|
|
1751
1751
|
};
|
|
1752
1752
|
function LABColorSpace() {
|
|
1753
1753
|
}
|
|
1754
1754
|
function LABColorSpace_0(whitePoint) {
|
|
1755
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1755
|
+
return whitePoint.equals(Illuminant_getInstance().n1p_1) ? LABColorSpaces_getInstance().l1o_1 : whitePoint.equals(Illuminant_getInstance().l1p_1) ? LABColorSpaces_getInstance().m1o_1 : new LABColorSpaceImpl(whitePoint);
|
|
1756
1756
|
}
|
|
1757
1757
|
function LABColorSpaces() {
|
|
1758
1758
|
LABColorSpaces_instance = this;
|
|
1759
|
-
this.
|
|
1760
|
-
this.
|
|
1759
|
+
this.l1o_1 = new LABColorSpaceImpl(Illuminant_getInstance().n1p_1);
|
|
1760
|
+
this.m1o_1 = new LABColorSpaceImpl(Illuminant_getInstance().l1p_1);
|
|
1761
1761
|
}
|
|
1762
1762
|
var LABColorSpaces_instance;
|
|
1763
1763
|
function LABColorSpaces_getInstance() {
|
|
@@ -1766,37 +1766,37 @@
|
|
|
1766
1766
|
return LABColorSpaces_instance;
|
|
1767
1767
|
}
|
|
1768
1768
|
function LABColorSpaceImpl(whitePoint) {
|
|
1769
|
-
this.
|
|
1770
|
-
this.
|
|
1769
|
+
this.o1r_1 = whitePoint;
|
|
1770
|
+
this.p1r_1 = threeComponentInfo('L', 0.0, 100.0, 'A', -128.0, 128.0, 'B', -128.0, 128.0);
|
|
1771
1771
|
}
|
|
1772
|
-
protoOf(LABColorSpaceImpl).
|
|
1773
|
-
return this.
|
|
1772
|
+
protoOf(LABColorSpaceImpl).m1n = function () {
|
|
1773
|
+
return this.o1r_1;
|
|
1774
1774
|
};
|
|
1775
1775
|
protoOf(LABColorSpaceImpl).q2 = function () {
|
|
1776
1776
|
return 'LAB';
|
|
1777
1777
|
};
|
|
1778
|
-
protoOf(LABColorSpaceImpl).
|
|
1779
|
-
return this.
|
|
1778
|
+
protoOf(LABColorSpaceImpl).n1n = function () {
|
|
1779
|
+
return this.p1r_1;
|
|
1780
1780
|
};
|
|
1781
|
-
protoOf(LABColorSpaceImpl).
|
|
1781
|
+
protoOf(LABColorSpaceImpl).h1n = function (color) {
|
|
1782
1782
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1783
1783
|
var tmp;
|
|
1784
|
-
var tmp_0 = color.
|
|
1784
|
+
var tmp_0 = color.f1m();
|
|
1785
1785
|
var tmp17_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1786
|
-
var tmp0_elvis_lhs = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.
|
|
1787
|
-
if ((tmp0_elvis_lhs == null ? Illuminant_getInstance().
|
|
1786
|
+
var tmp0_elvis_lhs = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.m1n();
|
|
1787
|
+
if ((tmp0_elvis_lhs == null ? Illuminant_getInstance().n1p_1 : tmp0_elvis_lhs).equals(this.m1n())) {
|
|
1788
1788
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1789
|
-
tmp = color.
|
|
1789
|
+
tmp = color.o1m();
|
|
1790
1790
|
} else {
|
|
1791
1791
|
// Inline function 'com.github.ajalt.colormath.model.LABColorSpaceImpl.convert.<anonymous>' call
|
|
1792
|
-
tmp = color.
|
|
1792
|
+
tmp = color.n1m().h1p(XYZColorSpace_0(this.m1n())).o1m();
|
|
1793
1793
|
}
|
|
1794
1794
|
return tmp;
|
|
1795
1795
|
};
|
|
1796
|
-
protoOf(LABColorSpaceImpl).
|
|
1796
|
+
protoOf(LABColorSpaceImpl).o1n = function (components) {
|
|
1797
1797
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1798
1798
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1799
|
-
var size = this.
|
|
1799
|
+
var size = this.n1n().m();
|
|
1800
1800
|
// Inline function 'kotlin.require' call
|
|
1801
1801
|
var containsLower = size - 1 | 0;
|
|
1802
1802
|
var containsArg = components.length;
|
|
@@ -1820,21 +1820,21 @@
|
|
|
1820
1820
|
tmp = 1.0;
|
|
1821
1821
|
}
|
|
1822
1822
|
var p3 = tmp;
|
|
1823
|
-
return this.
|
|
1823
|
+
return this.i1o(p0, p1, p2, p3);
|
|
1824
1824
|
};
|
|
1825
1825
|
protoOf(LABColorSpaceImpl).toString = function () {
|
|
1826
|
-
return 'LABColorSpace(' + this.
|
|
1826
|
+
return 'LABColorSpace(' + this.o1r_1.toString() + ')';
|
|
1827
1827
|
};
|
|
1828
|
-
protoOf(LABColorSpaceImpl).
|
|
1828
|
+
protoOf(LABColorSpaceImpl).i1o = function (l, a, b, alpha) {
|
|
1829
1829
|
return new LAB(l, a, b, alpha, this);
|
|
1830
1830
|
};
|
|
1831
1831
|
protoOf(LABColorSpaceImpl).hashCode = function () {
|
|
1832
|
-
return this.
|
|
1832
|
+
return this.o1r_1.hashCode();
|
|
1833
1833
|
};
|
|
1834
1834
|
protoOf(LABColorSpaceImpl).equals = function (other) {
|
|
1835
1835
|
var tmp;
|
|
1836
1836
|
if (!(other == null) ? isInterface(other, LABColorSpace) : false) {
|
|
1837
|
-
tmp = this.
|
|
1837
|
+
tmp = this.o1r_1.equals(other.m1n());
|
|
1838
1838
|
} else {
|
|
1839
1839
|
tmp = false;
|
|
1840
1840
|
}
|
|
@@ -1842,31 +1842,31 @@
|
|
|
1842
1842
|
};
|
|
1843
1843
|
function Companion_3() {
|
|
1844
1844
|
Companion_instance_4 = this;
|
|
1845
|
-
this.
|
|
1845
|
+
this.n1o_1 = LCHabColorSpaces_getInstance().o1o_1;
|
|
1846
1846
|
}
|
|
1847
|
-
protoOf(Companion_3).
|
|
1848
|
-
return this.
|
|
1847
|
+
protoOf(Companion_3).i1o = function (l, c, h, alpha) {
|
|
1848
|
+
return this.n1o_1.i1o(l, c, h, alpha);
|
|
1849
1849
|
};
|
|
1850
|
-
protoOf(Companion_3).
|
|
1851
|
-
return this.
|
|
1850
|
+
protoOf(Companion_3).h1n = function (color) {
|
|
1851
|
+
return this.n1o_1.h1n(color);
|
|
1852
1852
|
};
|
|
1853
|
-
protoOf(Companion_3).
|
|
1854
|
-
return this.
|
|
1853
|
+
protoOf(Companion_3).o1n = function (components) {
|
|
1854
|
+
return this.n1o_1.o1n(components);
|
|
1855
1855
|
};
|
|
1856
|
-
protoOf(Companion_3).
|
|
1857
|
-
return this.
|
|
1856
|
+
protoOf(Companion_3).m1n = function () {
|
|
1857
|
+
return this.n1o_1.m1n();
|
|
1858
1858
|
};
|
|
1859
1859
|
protoOf(Companion_3).q2 = function () {
|
|
1860
|
-
return this.
|
|
1860
|
+
return this.n1o_1.q2();
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(Companion_3).
|
|
1863
|
-
return this.
|
|
1862
|
+
protoOf(Companion_3).n1n = function () {
|
|
1863
|
+
return this.n1o_1.n1n();
|
|
1864
1864
|
};
|
|
1865
1865
|
protoOf(Companion_3).equals = function (other) {
|
|
1866
|
-
return equals(LCHabColorSpaces_getInstance().
|
|
1866
|
+
return equals(LCHabColorSpaces_getInstance().o1o_1, other);
|
|
1867
1867
|
};
|
|
1868
1868
|
protoOf(Companion_3).hashCode = function () {
|
|
1869
|
-
return hashCode(LCHabColorSpaces_getInstance().
|
|
1869
|
+
return hashCode(LCHabColorSpaces_getInstance().o1o_1);
|
|
1870
1870
|
};
|
|
1871
1871
|
var Companion_instance_4;
|
|
1872
1872
|
function Companion_getInstance_3() {
|
|
@@ -1876,55 +1876,55 @@
|
|
|
1876
1876
|
}
|
|
1877
1877
|
function LCHab(l, c, h, alpha, space) {
|
|
1878
1878
|
Companion_getInstance_3();
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1881
|
-
this.
|
|
1882
|
-
this.
|
|
1883
|
-
this.
|
|
1879
|
+
this.v1p_1 = l;
|
|
1880
|
+
this.w1p_1 = c;
|
|
1881
|
+
this.x1p_1 = h;
|
|
1882
|
+
this.y1p_1 = alpha;
|
|
1883
|
+
this.z1p_1 = space;
|
|
1884
1884
|
}
|
|
1885
|
-
protoOf(LCHab).
|
|
1886
|
-
return this.
|
|
1885
|
+
protoOf(LCHab).i1q = function () {
|
|
1886
|
+
return this.x1p_1;
|
|
1887
1887
|
};
|
|
1888
|
-
protoOf(LCHab).
|
|
1889
|
-
return this.
|
|
1888
|
+
protoOf(LCHab).e1m = function () {
|
|
1889
|
+
return this.y1p_1;
|
|
1890
1890
|
};
|
|
1891
|
-
protoOf(LCHab).
|
|
1892
|
-
return this.
|
|
1891
|
+
protoOf(LCHab).f1m = function () {
|
|
1892
|
+
return this.z1p_1;
|
|
1893
1893
|
};
|
|
1894
|
-
protoOf(LCHab).
|
|
1895
|
-
return this.
|
|
1894
|
+
protoOf(LCHab).g1m = function () {
|
|
1895
|
+
return this.o1m().g1m();
|
|
1896
1896
|
};
|
|
1897
|
-
protoOf(LCHab).
|
|
1898
|
-
return this.
|
|
1897
|
+
protoOf(LCHab).n1m = function () {
|
|
1898
|
+
return this.o1m().n1m();
|
|
1899
1899
|
};
|
|
1900
|
-
protoOf(LCHab).
|
|
1900
|
+
protoOf(LCHab).o1m = function () {
|
|
1901
1901
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
1902
|
-
var c = this.
|
|
1903
|
-
var h = this.
|
|
1902
|
+
var c = this.w1p_1;
|
|
1903
|
+
var h = this.x1p_1;
|
|
1904
1904
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
1905
1905
|
// Inline function 'kotlin.math.cos' call
|
|
1906
1906
|
var a = c * Math.cos(hDegrees);
|
|
1907
1907
|
// Inline function 'kotlin.math.sin' call
|
|
1908
1908
|
var b = c * Math.sin(hDegrees);
|
|
1909
1909
|
// Inline function 'com.github.ajalt.colormath.model.LCHab.toLAB.<anonymous>' call
|
|
1910
|
-
return LABColorSpace_0(this.
|
|
1910
|
+
return LABColorSpace_0(this.z1p_1.m1n()).i1o(this.v1p_1, a, b, this.y1p_1);
|
|
1911
1911
|
};
|
|
1912
|
-
protoOf(LCHab).
|
|
1912
|
+
protoOf(LCHab).u1m = function () {
|
|
1913
1913
|
return this;
|
|
1914
1914
|
};
|
|
1915
1915
|
protoOf(LCHab).u5 = function () {
|
|
1916
1916
|
// Inline function 'kotlin.floatArrayOf' call
|
|
1917
|
-
return new Float32Array([this.
|
|
1917
|
+
return new Float32Array([this.v1p_1, this.w1p_1, this.x1p_1, this.y1p_1]);
|
|
1918
1918
|
};
|
|
1919
1919
|
protoOf(LCHab).toString = function () {
|
|
1920
|
-
return 'LCHab(l=' + this.
|
|
1920
|
+
return 'LCHab(l=' + this.v1p_1 + ', c=' + this.w1p_1 + ', h=' + this.x1p_1 + ', alpha=' + this.y1p_1 + ', space=' + toString(this.z1p_1) + ')';
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(LCHab).hashCode = function () {
|
|
1923
|
-
var result = getNumberHashCode(this.
|
|
1924
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1925
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1926
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1927
|
-
result = imul(result, 31) + hashCode(this.
|
|
1923
|
+
var result = getNumberHashCode(this.v1p_1);
|
|
1924
|
+
result = imul(result, 31) + getNumberHashCode(this.w1p_1) | 0;
|
|
1925
|
+
result = imul(result, 31) + getNumberHashCode(this.x1p_1) | 0;
|
|
1926
|
+
result = imul(result, 31) + getNumberHashCode(this.y1p_1) | 0;
|
|
1927
|
+
result = imul(result, 31) + hashCode(this.z1p_1) | 0;
|
|
1928
1928
|
return result;
|
|
1929
1929
|
};
|
|
1930
1930
|
protoOf(LCHab).equals = function (other) {
|
|
@@ -1933,27 +1933,27 @@
|
|
|
1933
1933
|
if (!(other instanceof LCHab))
|
|
1934
1934
|
return false;
|
|
1935
1935
|
var tmp0_other_with_cast = other instanceof LCHab ? other : THROW_CCE();
|
|
1936
|
-
if (!equals(this.
|
|
1936
|
+
if (!equals(this.v1p_1, tmp0_other_with_cast.v1p_1))
|
|
1937
1937
|
return false;
|
|
1938
|
-
if (!equals(this.
|
|
1938
|
+
if (!equals(this.w1p_1, tmp0_other_with_cast.w1p_1))
|
|
1939
1939
|
return false;
|
|
1940
|
-
if (!equals(this.
|
|
1940
|
+
if (!equals(this.x1p_1, tmp0_other_with_cast.x1p_1))
|
|
1941
1941
|
return false;
|
|
1942
|
-
if (!equals(this.
|
|
1942
|
+
if (!equals(this.y1p_1, tmp0_other_with_cast.y1p_1))
|
|
1943
1943
|
return false;
|
|
1944
|
-
if (!equals(this.
|
|
1944
|
+
if (!equals(this.z1p_1, tmp0_other_with_cast.z1p_1))
|
|
1945
1945
|
return false;
|
|
1946
1946
|
return true;
|
|
1947
1947
|
};
|
|
1948
1948
|
function LCHabColorSpace() {
|
|
1949
1949
|
}
|
|
1950
1950
|
function LCHabColorSpace_0(whitePoint) {
|
|
1951
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1951
|
+
return whitePoint.equals(Illuminant_getInstance().n1p_1) ? LCHabColorSpaces_getInstance().o1o_1 : whitePoint.equals(Illuminant_getInstance().l1p_1) ? LCHabColorSpaces_getInstance().p1o_1 : new LCHabColorSpaceImpl(whitePoint);
|
|
1952
1952
|
}
|
|
1953
1953
|
function LCHabColorSpaces() {
|
|
1954
1954
|
LCHabColorSpaces_instance = this;
|
|
1955
|
-
this.
|
|
1956
|
-
this.
|
|
1955
|
+
this.o1o_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().n1p_1);
|
|
1956
|
+
this.p1o_1 = new LCHabColorSpaceImpl(Illuminant_getInstance().l1p_1);
|
|
1957
1957
|
}
|
|
1958
1958
|
var LCHabColorSpaces_instance;
|
|
1959
1959
|
function LCHabColorSpaces_getInstance() {
|
|
@@ -1962,37 +1962,37 @@
|
|
|
1962
1962
|
return LCHabColorSpaces_instance;
|
|
1963
1963
|
}
|
|
1964
1964
|
function LCHabColorSpaceImpl(whitePoint) {
|
|
1965
|
-
this.
|
|
1966
|
-
this.
|
|
1965
|
+
this.q1r_1 = whitePoint;
|
|
1966
|
+
this.r1r_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)]);
|
|
1967
1967
|
}
|
|
1968
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1969
|
-
return this.
|
|
1968
|
+
protoOf(LCHabColorSpaceImpl).m1n = function () {
|
|
1969
|
+
return this.q1r_1;
|
|
1970
1970
|
};
|
|
1971
1971
|
protoOf(LCHabColorSpaceImpl).q2 = function () {
|
|
1972
1972
|
return 'LCHab';
|
|
1973
1973
|
};
|
|
1974
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1975
|
-
return this.
|
|
1974
|
+
protoOf(LCHabColorSpaceImpl).n1n = function () {
|
|
1975
|
+
return this.r1r_1;
|
|
1976
1976
|
};
|
|
1977
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1977
|
+
protoOf(LCHabColorSpaceImpl).h1n = function (color) {
|
|
1978
1978
|
// Inline function 'com.github.ajalt.colormath.internal.adaptToThis' call
|
|
1979
1979
|
var tmp;
|
|
1980
|
-
var tmp_0 = color.
|
|
1980
|
+
var tmp_0 = color.f1m();
|
|
1981
1981
|
var tmp17_safe_receiver = isInterface(tmp_0, WhitePointColorSpace) ? tmp_0 : null;
|
|
1982
|
-
var tmp0_elvis_lhs = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.
|
|
1983
|
-
if ((tmp0_elvis_lhs == null ? Illuminant_getInstance().
|
|
1982
|
+
var tmp0_elvis_lhs = tmp17_safe_receiver == null ? null : tmp17_safe_receiver.m1n();
|
|
1983
|
+
if ((tmp0_elvis_lhs == null ? Illuminant_getInstance().n1p_1 : tmp0_elvis_lhs).equals(this.m1n())) {
|
|
1984
1984
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1985
|
-
tmp = color.
|
|
1985
|
+
tmp = color.u1m();
|
|
1986
1986
|
} else {
|
|
1987
1987
|
// Inline function 'com.github.ajalt.colormath.model.LCHabColorSpaceImpl.convert.<anonymous>' call
|
|
1988
|
-
tmp = color.
|
|
1988
|
+
tmp = color.n1m().h1p(XYZColorSpace_0(this.m1n())).u1m();
|
|
1989
1989
|
}
|
|
1990
1990
|
return tmp;
|
|
1991
1991
|
};
|
|
1992
|
-
protoOf(LCHabColorSpaceImpl).
|
|
1992
|
+
protoOf(LCHabColorSpaceImpl).o1n = function (components) {
|
|
1993
1993
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
1994
1994
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
1995
|
-
var size = this.
|
|
1995
|
+
var size = this.n1n().m();
|
|
1996
1996
|
// Inline function 'kotlin.require' call
|
|
1997
1997
|
var containsLower = size - 1 | 0;
|
|
1998
1998
|
var containsArg = components.length;
|
|
@@ -2016,21 +2016,21 @@
|
|
|
2016
2016
|
tmp = 1.0;
|
|
2017
2017
|
}
|
|
2018
2018
|
var p3 = tmp;
|
|
2019
|
-
return this.
|
|
2019
|
+
return this.i1o(p0, p1, p2, p3);
|
|
2020
2020
|
};
|
|
2021
2021
|
protoOf(LCHabColorSpaceImpl).toString = function () {
|
|
2022
|
-
return 'LCHabColorSpace(' + this.
|
|
2022
|
+
return 'LCHabColorSpace(' + this.q1r_1.toString() + ')';
|
|
2023
2023
|
};
|
|
2024
|
-
protoOf(LCHabColorSpaceImpl).
|
|
2024
|
+
protoOf(LCHabColorSpaceImpl).i1o = function (l, c, h, alpha) {
|
|
2025
2025
|
return new LCHab(l, c, h, alpha, this);
|
|
2026
2026
|
};
|
|
2027
2027
|
protoOf(LCHabColorSpaceImpl).hashCode = function () {
|
|
2028
|
-
return this.
|
|
2028
|
+
return this.q1r_1.hashCode();
|
|
2029
2029
|
};
|
|
2030
2030
|
protoOf(LCHabColorSpaceImpl).equals = function (other) {
|
|
2031
2031
|
var tmp;
|
|
2032
2032
|
if (!(other == null) ? isInterface(other, LCHabColorSpace) : false) {
|
|
2033
|
-
tmp = this.
|
|
2033
|
+
tmp = this.q1r_1.equals(other.m1n());
|
|
2034
2034
|
} else {
|
|
2035
2035
|
tmp = false;
|
|
2036
2036
|
}
|
|
@@ -2038,21 +2038,21 @@
|
|
|
2038
2038
|
};
|
|
2039
2039
|
function Companion_4() {
|
|
2040
2040
|
Companion_instance_5 = this;
|
|
2041
|
-
this.
|
|
2041
|
+
this.r1o_1 = threeComponentInfo('l', 0.0, 1.0, 'a', -0.4, 0.4, 'b', -0.4, 0.4);
|
|
2042
2042
|
}
|
|
2043
2043
|
protoOf(Companion_4).q2 = function () {
|
|
2044
2044
|
return 'Oklab';
|
|
2045
2045
|
};
|
|
2046
|
-
protoOf(Companion_4).
|
|
2047
|
-
return this.
|
|
2046
|
+
protoOf(Companion_4).n1n = function () {
|
|
2047
|
+
return this.r1o_1;
|
|
2048
2048
|
};
|
|
2049
|
-
protoOf(Companion_4).
|
|
2050
|
-
return color.
|
|
2049
|
+
protoOf(Companion_4).h1n = function (color) {
|
|
2050
|
+
return color.b1n();
|
|
2051
2051
|
};
|
|
2052
|
-
protoOf(Companion_4).
|
|
2052
|
+
protoOf(Companion_4).o1n = function (components) {
|
|
2053
2053
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2054
2054
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2055
|
-
var size = this.
|
|
2055
|
+
var size = this.n1n().m();
|
|
2056
2056
|
// Inline function 'kotlin.require' call
|
|
2057
2057
|
var containsLower = size - 1 | 0;
|
|
2058
2058
|
var containsArg = components.length;
|
|
@@ -2095,45 +2095,45 @@
|
|
|
2095
2095
|
function Oklab(l, a, b, alpha) {
|
|
2096
2096
|
Companion_getInstance_4();
|
|
2097
2097
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2098
|
-
this.
|
|
2099
|
-
this.
|
|
2100
|
-
this.
|
|
2101
|
-
this.
|
|
2098
|
+
this.d1n_1 = l;
|
|
2099
|
+
this.e1n_1 = a;
|
|
2100
|
+
this.f1n_1 = b;
|
|
2101
|
+
this.g1n_1 = alpha;
|
|
2102
2102
|
}
|
|
2103
|
-
protoOf(Oklab).
|
|
2104
|
-
return this.
|
|
2103
|
+
protoOf(Oklab).e1m = function () {
|
|
2104
|
+
return this.g1n_1;
|
|
2105
2105
|
};
|
|
2106
|
-
protoOf(Oklab).
|
|
2106
|
+
protoOf(Oklab).f1m = function () {
|
|
2107
2107
|
return Companion_getInstance_4();
|
|
2108
2108
|
};
|
|
2109
|
-
protoOf(Oklab).
|
|
2109
|
+
protoOf(Oklab).g1m = function () {
|
|
2110
2110
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2111
|
-
var ll = this.
|
|
2112
|
-
var mm = this.
|
|
2113
|
-
var ss = this.
|
|
2111
|
+
var ll = this.d1n_1 + 0.3963377774 * this.e1n_1 + 0.2158037573 * this.f1n_1;
|
|
2112
|
+
var mm = this.d1n_1 - 0.1055613458 * this.e1n_1 - 0.0638541728 * this.f1n_1;
|
|
2113
|
+
var ss = this.d1n_1 - 0.0894841775 * this.e1n_1 - 1.291485548 * this.f1n_1;
|
|
2114
2114
|
var l = ll * ll * ll;
|
|
2115
2115
|
var m = mm * mm * mm;
|
|
2116
2116
|
var s = ss * ss * ss;
|
|
2117
2117
|
var r = +4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s;
|
|
2118
2118
|
var g = -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s;
|
|
2119
2119
|
var b = -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s;
|
|
2120
|
-
var f = Companion_getInstance_6().
|
|
2121
|
-
return Companion_getInstance_6().
|
|
2120
|
+
var f = Companion_getInstance_6().w1q();
|
|
2121
|
+
return Companion_getInstance_6().i1o(f.g1r(r), f.g1r(g), f.g1r(b), this.g1n_1);
|
|
2122
2122
|
};
|
|
2123
|
-
protoOf(Oklab).
|
|
2123
|
+
protoOf(Oklab).n1m = function () {
|
|
2124
2124
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.calculateConeResponse' call
|
|
2125
|
-
var ll = this.
|
|
2126
|
-
var mm = this.
|
|
2127
|
-
var ss = this.
|
|
2125
|
+
var ll = this.d1n_1 + 0.3963377774 * this.e1n_1 + 0.2158037573 * this.f1n_1;
|
|
2126
|
+
var mm = this.d1n_1 - 0.1055613458 * this.e1n_1 - 0.0638541728 * this.f1n_1;
|
|
2127
|
+
var ss = this.d1n_1 - 0.0894841775 * this.e1n_1 - 1.291485548 * this.f1n_1;
|
|
2128
2128
|
var l = ll * ll * ll;
|
|
2129
2129
|
var m = mm * mm * mm;
|
|
2130
2130
|
var s = ss * ss * ss;
|
|
2131
|
-
return Companion_getInstance_8().
|
|
2131
|
+
return Companion_getInstance_8().h1r(+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.g1n_1);
|
|
2132
2132
|
};
|
|
2133
|
-
protoOf(Oklab).
|
|
2133
|
+
protoOf(Oklab).c1n = function () {
|
|
2134
2134
|
// Inline function 'com.github.ajalt.colormath.internal.toPolarModel' call
|
|
2135
|
-
var a = this.
|
|
2136
|
-
var b = this.
|
|
2135
|
+
var a = this.e1n_1;
|
|
2136
|
+
var b = this.f1n_1;
|
|
2137
2137
|
// Inline function 'kotlin.math.sqrt' call
|
|
2138
2138
|
var x = a * a + b * b;
|
|
2139
2139
|
var c = Math.sqrt(x);
|
|
@@ -2148,23 +2148,23 @@
|
|
|
2148
2148
|
var h = tmp;
|
|
2149
2149
|
// Inline function 'com.github.ajalt.colormath.model.Oklab.toOklch.<anonymous>' call
|
|
2150
2150
|
var h_0 = normalizeDeg_0(h);
|
|
2151
|
-
return new Oklch(this.
|
|
2151
|
+
return new Oklch(this.d1n_1, c, h_0, this.g1n_1);
|
|
2152
2152
|
};
|
|
2153
|
-
protoOf(Oklab).
|
|
2153
|
+
protoOf(Oklab).b1n = function () {
|
|
2154
2154
|
return this;
|
|
2155
2155
|
};
|
|
2156
2156
|
protoOf(Oklab).u5 = function () {
|
|
2157
2157
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2158
|
-
return new Float32Array([this.
|
|
2158
|
+
return new Float32Array([this.d1n_1, this.e1n_1, this.f1n_1, this.g1n_1]);
|
|
2159
2159
|
};
|
|
2160
2160
|
protoOf(Oklab).toString = function () {
|
|
2161
|
-
return 'Oklab(l=' + this.
|
|
2161
|
+
return 'Oklab(l=' + this.d1n_1 + ', a=' + this.e1n_1 + ', b=' + this.f1n_1 + ', alpha=' + this.g1n_1 + ')';
|
|
2162
2162
|
};
|
|
2163
2163
|
protoOf(Oklab).hashCode = function () {
|
|
2164
|
-
var result = getNumberHashCode(this.
|
|
2165
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2166
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2167
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2164
|
+
var result = getNumberHashCode(this.d1n_1);
|
|
2165
|
+
result = imul(result, 31) + getNumberHashCode(this.e1n_1) | 0;
|
|
2166
|
+
result = imul(result, 31) + getNumberHashCode(this.f1n_1) | 0;
|
|
2167
|
+
result = imul(result, 31) + getNumberHashCode(this.g1n_1) | 0;
|
|
2168
2168
|
return result;
|
|
2169
2169
|
};
|
|
2170
2170
|
protoOf(Oklab).equals = function (other) {
|
|
@@ -2173,33 +2173,33 @@
|
|
|
2173
2173
|
if (!(other instanceof Oklab))
|
|
2174
2174
|
return false;
|
|
2175
2175
|
var tmp0_other_with_cast = other instanceof Oklab ? other : THROW_CCE();
|
|
2176
|
-
if (!equals(this.
|
|
2176
|
+
if (!equals(this.d1n_1, tmp0_other_with_cast.d1n_1))
|
|
2177
2177
|
return false;
|
|
2178
|
-
if (!equals(this.
|
|
2178
|
+
if (!equals(this.e1n_1, tmp0_other_with_cast.e1n_1))
|
|
2179
2179
|
return false;
|
|
2180
|
-
if (!equals(this.
|
|
2180
|
+
if (!equals(this.f1n_1, tmp0_other_with_cast.f1n_1))
|
|
2181
2181
|
return false;
|
|
2182
|
-
if (!equals(this.
|
|
2182
|
+
if (!equals(this.g1n_1, tmp0_other_with_cast.g1n_1))
|
|
2183
2183
|
return false;
|
|
2184
2184
|
return true;
|
|
2185
2185
|
};
|
|
2186
2186
|
function Companion_5() {
|
|
2187
2187
|
Companion_instance_6 = this;
|
|
2188
|
-
this.
|
|
2188
|
+
this.s1o_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)]);
|
|
2189
2189
|
}
|
|
2190
2190
|
protoOf(Companion_5).q2 = function () {
|
|
2191
2191
|
return 'Oklch';
|
|
2192
2192
|
};
|
|
2193
|
-
protoOf(Companion_5).
|
|
2194
|
-
return this.
|
|
2193
|
+
protoOf(Companion_5).n1n = function () {
|
|
2194
|
+
return this.s1o_1;
|
|
2195
2195
|
};
|
|
2196
|
-
protoOf(Companion_5).
|
|
2197
|
-
return color.
|
|
2196
|
+
protoOf(Companion_5).h1n = function (color) {
|
|
2197
|
+
return color.c1n();
|
|
2198
2198
|
};
|
|
2199
|
-
protoOf(Companion_5).
|
|
2199
|
+
protoOf(Companion_5).o1n = function (components) {
|
|
2200
2200
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2201
2201
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2202
|
-
var size = this.
|
|
2202
|
+
var size = this.n1n().m();
|
|
2203
2203
|
// Inline function 'kotlin.require' call
|
|
2204
2204
|
var containsLower = size - 1 | 0;
|
|
2205
2205
|
var containsArg = components.length;
|
|
@@ -2234,53 +2234,53 @@
|
|
|
2234
2234
|
function Oklch(l, c, h, alpha) {
|
|
2235
2235
|
Companion_getInstance_5();
|
|
2236
2236
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2239
|
-
this.
|
|
2240
|
-
this.
|
|
2237
|
+
this.e1q_1 = l;
|
|
2238
|
+
this.f1q_1 = c;
|
|
2239
|
+
this.g1q_1 = h;
|
|
2240
|
+
this.h1q_1 = alpha;
|
|
2241
2241
|
}
|
|
2242
|
-
protoOf(Oklch).
|
|
2243
|
-
return this.
|
|
2242
|
+
protoOf(Oklch).i1q = function () {
|
|
2243
|
+
return this.g1q_1;
|
|
2244
2244
|
};
|
|
2245
|
-
protoOf(Oklch).
|
|
2246
|
-
return this.
|
|
2245
|
+
protoOf(Oklch).e1m = function () {
|
|
2246
|
+
return this.h1q_1;
|
|
2247
2247
|
};
|
|
2248
|
-
protoOf(Oklch).
|
|
2248
|
+
protoOf(Oklch).f1m = function () {
|
|
2249
2249
|
return Companion_getInstance_5();
|
|
2250
2250
|
};
|
|
2251
|
-
protoOf(Oklch).
|
|
2252
|
-
return this.
|
|
2251
|
+
protoOf(Oklch).g1m = function () {
|
|
2252
|
+
return this.b1n().g1m();
|
|
2253
2253
|
};
|
|
2254
|
-
protoOf(Oklch).
|
|
2255
|
-
return this.
|
|
2254
|
+
protoOf(Oklch).n1m = function () {
|
|
2255
|
+
return this.b1n().n1m();
|
|
2256
2256
|
};
|
|
2257
|
-
protoOf(Oklch).
|
|
2257
|
+
protoOf(Oklch).b1n = function () {
|
|
2258
2258
|
// Inline function 'com.github.ajalt.colormath.internal.fromPolarModel' call
|
|
2259
|
-
var c = this.
|
|
2260
|
-
var h = this.
|
|
2259
|
+
var c = this.f1q_1;
|
|
2260
|
+
var h = this.g1q_1;
|
|
2261
2261
|
var hDegrees = isNaN_0(h) ? 0.0 : degToRad(h);
|
|
2262
2262
|
// Inline function 'kotlin.math.cos' call
|
|
2263
2263
|
var a = c * Math.cos(hDegrees);
|
|
2264
2264
|
// Inline function 'kotlin.math.sin' call
|
|
2265
2265
|
var b = c * Math.sin(hDegrees);
|
|
2266
2266
|
// Inline function 'com.github.ajalt.colormath.model.Oklch.toOklab.<anonymous>' call
|
|
2267
|
-
return new Oklab(this.
|
|
2267
|
+
return new Oklab(this.e1q_1, a, b, this.h1q_1);
|
|
2268
2268
|
};
|
|
2269
|
-
protoOf(Oklch).
|
|
2269
|
+
protoOf(Oklch).c1n = function () {
|
|
2270
2270
|
return this;
|
|
2271
2271
|
};
|
|
2272
2272
|
protoOf(Oklch).u5 = function () {
|
|
2273
2273
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2274
|
-
return new Float32Array([this.
|
|
2274
|
+
return new Float32Array([this.e1q_1, this.f1q_1, this.g1q_1, this.h1q_1]);
|
|
2275
2275
|
};
|
|
2276
2276
|
protoOf(Oklch).toString = function () {
|
|
2277
|
-
return 'Oklch(l=' + this.
|
|
2277
|
+
return 'Oklch(l=' + this.e1q_1 + ', c=' + this.f1q_1 + ', h=' + this.g1q_1 + ', alpha=' + this.h1q_1 + ')';
|
|
2278
2278
|
};
|
|
2279
2279
|
protoOf(Oklch).hashCode = function () {
|
|
2280
|
-
var result = getNumberHashCode(this.
|
|
2281
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2282
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2283
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2280
|
+
var result = getNumberHashCode(this.e1q_1);
|
|
2281
|
+
result = imul(result, 31) + getNumberHashCode(this.f1q_1) | 0;
|
|
2282
|
+
result = imul(result, 31) + getNumberHashCode(this.g1q_1) | 0;
|
|
2283
|
+
result = imul(result, 31) + getNumberHashCode(this.h1q_1) | 0;
|
|
2284
2284
|
return result;
|
|
2285
2285
|
};
|
|
2286
2286
|
protoOf(Oklch).equals = function (other) {
|
|
@@ -2289,30 +2289,30 @@
|
|
|
2289
2289
|
if (!(other instanceof Oklch))
|
|
2290
2290
|
return false;
|
|
2291
2291
|
var tmp0_other_with_cast = other instanceof Oklch ? other : THROW_CCE();
|
|
2292
|
-
if (!equals(this.
|
|
2292
|
+
if (!equals(this.e1q_1, tmp0_other_with_cast.e1q_1))
|
|
2293
2293
|
return false;
|
|
2294
|
-
if (!equals(this.
|
|
2294
|
+
if (!equals(this.f1q_1, tmp0_other_with_cast.f1q_1))
|
|
2295
2295
|
return false;
|
|
2296
|
-
if (!equals(this.
|
|
2296
|
+
if (!equals(this.g1q_1, tmp0_other_with_cast.g1q_1))
|
|
2297
2297
|
return false;
|
|
2298
|
-
if (!equals(this.
|
|
2298
|
+
if (!equals(this.h1q_1, tmp0_other_with_cast.h1q_1))
|
|
2299
2299
|
return false;
|
|
2300
2300
|
return true;
|
|
2301
2301
|
};
|
|
2302
2302
|
function GammaTransferFunctions(gamma) {
|
|
2303
|
-
this.
|
|
2303
|
+
this.t1r_1 = gamma;
|
|
2304
2304
|
}
|
|
2305
|
-
protoOf(GammaTransferFunctions).
|
|
2306
|
-
return spow(x, this.
|
|
2305
|
+
protoOf(GammaTransferFunctions).f1r = function (x) {
|
|
2306
|
+
return spow(x, this.t1r_1);
|
|
2307
2307
|
};
|
|
2308
|
-
protoOf(GammaTransferFunctions).
|
|
2309
|
-
return spow(x, 1.0 / this.
|
|
2308
|
+
protoOf(GammaTransferFunctions).g1r = function (x) {
|
|
2309
|
+
return spow(x, 1.0 / this.t1r_1);
|
|
2310
2310
|
};
|
|
2311
2311
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
2312
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
2312
|
+
return 'GammaTransferFunctions(gamma=' + this.t1r_1 + ')';
|
|
2313
2313
|
};
|
|
2314
2314
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
2315
|
-
return getNumberHashCode(this.
|
|
2315
|
+
return getNumberHashCode(this.t1r_1);
|
|
2316
2316
|
};
|
|
2317
2317
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
2318
2318
|
if (this === other)
|
|
@@ -2320,16 +2320,16 @@
|
|
|
2320
2320
|
if (!(other instanceof GammaTransferFunctions))
|
|
2321
2321
|
return false;
|
|
2322
2322
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
2323
|
-
if (!equals(this.
|
|
2323
|
+
if (!equals(this.t1r_1, tmp0_other_with_cast.t1r_1))
|
|
2324
2324
|
return false;
|
|
2325
2325
|
return true;
|
|
2326
2326
|
};
|
|
2327
2327
|
function LinearTransferFunctions() {
|
|
2328
2328
|
}
|
|
2329
|
-
protoOf(LinearTransferFunctions).
|
|
2329
|
+
protoOf(LinearTransferFunctions).f1r = function (x) {
|
|
2330
2330
|
return x;
|
|
2331
2331
|
};
|
|
2332
|
-
protoOf(LinearTransferFunctions).
|
|
2332
|
+
protoOf(LinearTransferFunctions).g1r = function (x) {
|
|
2333
2333
|
return x;
|
|
2334
2334
|
};
|
|
2335
2335
|
var LinearTransferFunctions_instance;
|
|
@@ -2340,49 +2340,49 @@
|
|
|
2340
2340
|
}
|
|
2341
2341
|
function Companion_6() {
|
|
2342
2342
|
Companion_instance_7 = this;
|
|
2343
|
-
this.
|
|
2343
|
+
this.g1o_1 = RGBColorSpaces_getInstance().t1o_1;
|
|
2344
2344
|
}
|
|
2345
|
-
protoOf(Companion_6).
|
|
2346
|
-
return this.
|
|
2345
|
+
protoOf(Companion_6).i1o = function (r, g, b, alpha) {
|
|
2346
|
+
return this.g1o_1.i1o(r, g, b, alpha);
|
|
2347
2347
|
};
|
|
2348
|
-
protoOf(Companion_6).
|
|
2349
|
-
return this.
|
|
2348
|
+
protoOf(Companion_6).h1r = function (r, g, b, alpha) {
|
|
2349
|
+
return this.g1o_1.h1r(r, g, b, alpha);
|
|
2350
2350
|
};
|
|
2351
|
-
protoOf(Companion_6).
|
|
2352
|
-
return this.
|
|
2351
|
+
protoOf(Companion_6).h1o = function (hex) {
|
|
2352
|
+
return this.g1o_1.h1o(hex);
|
|
2353
2353
|
};
|
|
2354
|
-
protoOf(Companion_6).
|
|
2355
|
-
return this.
|
|
2354
|
+
protoOf(Companion_6).m1q = function (r, g, b, alpha) {
|
|
2355
|
+
return this.g1o_1.m1q(r, g, b, alpha);
|
|
2356
2356
|
};
|
|
2357
|
-
protoOf(Companion_6).
|
|
2358
|
-
return this.
|
|
2357
|
+
protoOf(Companion_6).h1n = function (color) {
|
|
2358
|
+
return this.g1o_1.h1n(color);
|
|
2359
2359
|
};
|
|
2360
|
-
protoOf(Companion_6).
|
|
2361
|
-
return this.
|
|
2360
|
+
protoOf(Companion_6).o1n = function (components) {
|
|
2361
|
+
return this.g1o_1.o1n(components);
|
|
2362
2362
|
};
|
|
2363
|
-
protoOf(Companion_6).
|
|
2364
|
-
return this.
|
|
2363
|
+
protoOf(Companion_6).w1q = function () {
|
|
2364
|
+
return this.g1o_1.w1q();
|
|
2365
2365
|
};
|
|
2366
|
-
protoOf(Companion_6).
|
|
2367
|
-
return this.
|
|
2366
|
+
protoOf(Companion_6).u1r = function () {
|
|
2367
|
+
return this.g1o_1.u1r();
|
|
2368
2368
|
};
|
|
2369
|
-
protoOf(Companion_6).
|
|
2370
|
-
return this.
|
|
2369
|
+
protoOf(Companion_6).v1r = function () {
|
|
2370
|
+
return this.g1o_1.v1r();
|
|
2371
2371
|
};
|
|
2372
|
-
protoOf(Companion_6).
|
|
2373
|
-
return this.
|
|
2372
|
+
protoOf(Companion_6).m1n = function () {
|
|
2373
|
+
return this.g1o_1.m1n();
|
|
2374
2374
|
};
|
|
2375
2375
|
protoOf(Companion_6).q2 = function () {
|
|
2376
|
-
return this.
|
|
2376
|
+
return this.g1o_1.q2();
|
|
2377
2377
|
};
|
|
2378
|
-
protoOf(Companion_6).
|
|
2379
|
-
return this.
|
|
2378
|
+
protoOf(Companion_6).n1n = function () {
|
|
2379
|
+
return this.g1o_1.n1n();
|
|
2380
2380
|
};
|
|
2381
2381
|
protoOf(Companion_6).equals = function (other) {
|
|
2382
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2382
|
+
return equals(RGBColorSpaces_getInstance().t1o_1, other);
|
|
2383
2383
|
};
|
|
2384
2384
|
protoOf(Companion_6).hashCode = function () {
|
|
2385
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2385
|
+
return hashCode(RGBColorSpaces_getInstance().t1o_1);
|
|
2386
2386
|
};
|
|
2387
2387
|
var Companion_instance_7;
|
|
2388
2388
|
function Companion_getInstance_6() {
|
|
@@ -2392,37 +2392,37 @@
|
|
|
2392
2392
|
}
|
|
2393
2393
|
function RGB(r, g, b, alpha, space) {
|
|
2394
2394
|
Companion_getInstance_6();
|
|
2395
|
-
this.
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2398
|
-
this.
|
|
2399
|
-
this.
|
|
2395
|
+
this.i1m_1 = r;
|
|
2396
|
+
this.j1m_1 = g;
|
|
2397
|
+
this.k1m_1 = b;
|
|
2398
|
+
this.l1m_1 = alpha;
|
|
2399
|
+
this.m1m_1 = space;
|
|
2400
2400
|
}
|
|
2401
|
-
protoOf(RGB).
|
|
2402
|
-
return this.
|
|
2401
|
+
protoOf(RGB).e1m = function () {
|
|
2402
|
+
return this.l1m_1;
|
|
2403
2403
|
};
|
|
2404
|
-
protoOf(RGB).
|
|
2405
|
-
return this.
|
|
2404
|
+
protoOf(RGB).f1m = function () {
|
|
2405
|
+
return this.m1m_1;
|
|
2406
2406
|
};
|
|
2407
|
-
protoOf(RGB).
|
|
2407
|
+
protoOf(RGB).q1p = function () {
|
|
2408
2408
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2409
2409
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toRGBInt.<anonymous>' call
|
|
2410
|
-
var $this$toSRGB = this.
|
|
2411
|
-
return _RGBInt___init__impl__lqova7_1($this$toSRGB.
|
|
2410
|
+
var $this$toSRGB = this.w1r(SRGB_getInstance());
|
|
2411
|
+
return _RGBInt___init__impl__lqova7_1($this$toSRGB.i1m_1, $this$toSRGB.j1m_1, $this$toSRGB.k1m_1, nanToOne($this$toSRGB.l1m_1));
|
|
2412
2412
|
};
|
|
2413
|
-
protoOf(RGB).
|
|
2414
|
-
var f = SRGB_getInstance().
|
|
2415
|
-
return equals(this.
|
|
2413
|
+
protoOf(RGB).w1r = function (space) {
|
|
2414
|
+
var f = SRGB_getInstance().w1q();
|
|
2415
|
+
return equals(this.m1m_1, space) ? this : equals(this.m1m_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().u1o_1) ? space.i1o(f.f1r(this.i1m_1), f.f1r(this.j1m_1), f.f1r(this.k1m_1), this.l1m_1) : equals(this.m1m_1, RGBColorSpaces_getInstance().u1o_1) && equals(space, SRGB_getInstance()) ? space.i1o(f.g1r(this.i1m_1), f.g1r(this.j1m_1), f.g1r(this.k1m_1), this.l1m_1) : this.n1m().y1r(space);
|
|
2416
2416
|
};
|
|
2417
|
-
protoOf(RGB).
|
|
2417
|
+
protoOf(RGB).h1m = function () {
|
|
2418
2418
|
var tmp$ret$3;
|
|
2419
2419
|
$l$block: {
|
|
2420
2420
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2421
2421
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2422
|
-
var $this$toSRGB = this.
|
|
2423
|
-
var r = $this$toSRGB.
|
|
2424
|
-
var g = $this$toSRGB.
|
|
2425
|
-
var b = $this$toSRGB.
|
|
2422
|
+
var $this$toSRGB = this.w1r(SRGB_getInstance());
|
|
2423
|
+
var r = $this$toSRGB.i1m_1;
|
|
2424
|
+
var g = $this$toSRGB.j1m_1;
|
|
2425
|
+
var b = $this$toSRGB.k1m_1;
|
|
2426
2426
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2427
2427
|
var min = Math.min(r, g, b);
|
|
2428
2428
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2433,33 +2433,33 @@
|
|
|
2433
2433
|
var h_0 = normalizeDeg(h);
|
|
2434
2434
|
var l = (min + max) / 2.0;
|
|
2435
2435
|
var s = max === min ? 0.0 : l <= 0.5 ? chroma / (max + min) : chroma / (2 - max - min);
|
|
2436
|
-
tmp$ret$3 = new HSL(h_0, s, l, this.
|
|
2436
|
+
tmp$ret$3 = new HSL(h_0, s, l, this.l1m_1);
|
|
2437
2437
|
break $l$block;
|
|
2438
2438
|
}
|
|
2439
2439
|
return tmp$ret$3;
|
|
2440
2440
|
};
|
|
2441
|
-
protoOf(RGB).
|
|
2442
|
-
var f = this.
|
|
2441
|
+
protoOf(RGB).n1m = function () {
|
|
2442
|
+
var f = this.m1m_1.w1q();
|
|
2443
2443
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2444
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
2445
|
-
var v0 = f.
|
|
2446
|
-
var v1 = f.
|
|
2447
|
-
var v2 = f.
|
|
2444
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.m1m_1.u1r());
|
|
2445
|
+
var v0 = f.f1r(this.i1m_1);
|
|
2446
|
+
var v1 = f.f1r(this.j1m_1);
|
|
2447
|
+
var v2 = f.f1r(this.k1m_1);
|
|
2448
2448
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
2449
2449
|
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;
|
|
2450
2450
|
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;
|
|
2451
2451
|
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;
|
|
2452
|
-
return XYZColorSpace_0(this.
|
|
2452
|
+
return XYZColorSpace_0(this.m1m_1.m1n()).i1o(x, y, z, this.l1m_1);
|
|
2453
2453
|
};
|
|
2454
|
-
protoOf(RGB).
|
|
2454
|
+
protoOf(RGB).a1n = function () {
|
|
2455
2455
|
var tmp$ret$3;
|
|
2456
2456
|
$l$block: {
|
|
2457
2457
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
2458
2458
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
2459
|
-
var $this$toSRGB = this.
|
|
2460
|
-
var r = $this$toSRGB.
|
|
2461
|
-
var g = $this$toSRGB.
|
|
2462
|
-
var b = $this$toSRGB.
|
|
2459
|
+
var $this$toSRGB = this.w1r(SRGB_getInstance());
|
|
2460
|
+
var r = $this$toSRGB.i1m_1;
|
|
2461
|
+
var g = $this$toSRGB.j1m_1;
|
|
2462
|
+
var b = $this$toSRGB.k1m_1;
|
|
2463
2463
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2464
2464
|
var min = Math.min(r, g, b);
|
|
2465
2465
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -2468,17 +2468,17 @@
|
|
|
2468
2468
|
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
2469
2469
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHWB.<anonymous>' call
|
|
2470
2470
|
var hue = normalizeDeg(h);
|
|
2471
|
-
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.
|
|
2471
|
+
tmp$ret$3 = new HWB(hue, min, 1.0 - max, this.l1m_1);
|
|
2472
2472
|
break $l$block;
|
|
2473
2473
|
}
|
|
2474
2474
|
return tmp$ret$3;
|
|
2475
2475
|
};
|
|
2476
|
-
protoOf(RGB).
|
|
2477
|
-
if (!equals(this.
|
|
2478
|
-
return this.
|
|
2479
|
-
var r = this.
|
|
2480
|
-
var g = this.
|
|
2481
|
-
var b = this.
|
|
2476
|
+
protoOf(RGB).b1n = function () {
|
|
2477
|
+
if (!equals(this.m1m_1, RGBColorSpaces_getInstance().t1o_1))
|
|
2478
|
+
return this.n1m().b1n();
|
|
2479
|
+
var r = this.m1m_1.w1q().f1r(this.i1m_1);
|
|
2480
|
+
var g = this.m1m_1.w1q().f1r(this.j1m_1);
|
|
2481
|
+
var b = this.m1m_1.w1q().f1r(this.k1m_1);
|
|
2482
2482
|
var l = 0.4122214708 * r + 0.5363325363 * g + 0.0514459929 * b;
|
|
2483
2483
|
var m = 0.2119034982 * r + 0.6806995451 * g + 0.1073969566 * b;
|
|
2484
2484
|
var s = 0.0883024619 * r + 0.2817188376 * g + 0.6299787005 * b;
|
|
@@ -2488,24 +2488,24 @@
|
|
|
2488
2488
|
var mm = Math.cbrt(m);
|
|
2489
2489
|
// Inline function 'kotlin.math.cbrt' call
|
|
2490
2490
|
var ss = Math.cbrt(s);
|
|
2491
|
-
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.
|
|
2491
|
+
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.l1m_1);
|
|
2492
2492
|
};
|
|
2493
|
-
protoOf(RGB).
|
|
2494
|
-
return this.
|
|
2493
|
+
protoOf(RGB).g1m = function () {
|
|
2494
|
+
return this.w1r(RGBColorSpaces_getInstance().t1o_1);
|
|
2495
2495
|
};
|
|
2496
2496
|
protoOf(RGB).u5 = function () {
|
|
2497
2497
|
// Inline function 'kotlin.floatArrayOf' call
|
|
2498
|
-
return new Float32Array([this.
|
|
2498
|
+
return new Float32Array([this.i1m_1, this.j1m_1, this.k1m_1, this.l1m_1]);
|
|
2499
2499
|
};
|
|
2500
2500
|
protoOf(RGB).toString = function () {
|
|
2501
|
-
return 'RGB(r=' + this.
|
|
2501
|
+
return 'RGB(r=' + this.i1m_1 + ', g=' + this.j1m_1 + ', b=' + this.k1m_1 + ', alpha=' + this.l1m_1 + ', space=' + toString(this.m1m_1) + ')';
|
|
2502
2502
|
};
|
|
2503
2503
|
protoOf(RGB).hashCode = function () {
|
|
2504
|
-
var result = getNumberHashCode(this.
|
|
2505
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2506
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2507
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
2508
|
-
result = imul(result, 31) + hashCode(this.
|
|
2504
|
+
var result = getNumberHashCode(this.i1m_1);
|
|
2505
|
+
result = imul(result, 31) + getNumberHashCode(this.j1m_1) | 0;
|
|
2506
|
+
result = imul(result, 31) + getNumberHashCode(this.k1m_1) | 0;
|
|
2507
|
+
result = imul(result, 31) + getNumberHashCode(this.l1m_1) | 0;
|
|
2508
|
+
result = imul(result, 31) + hashCode(this.m1m_1) | 0;
|
|
2509
2509
|
return result;
|
|
2510
2510
|
};
|
|
2511
2511
|
protoOf(RGB).equals = function (other) {
|
|
@@ -2514,15 +2514,15 @@
|
|
|
2514
2514
|
if (!(other instanceof RGB))
|
|
2515
2515
|
return false;
|
|
2516
2516
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
2517
|
-
if (!equals(this.
|
|
2517
|
+
if (!equals(this.i1m_1, tmp0_other_with_cast.i1m_1))
|
|
2518
2518
|
return false;
|
|
2519
|
-
if (!equals(this.
|
|
2519
|
+
if (!equals(this.j1m_1, tmp0_other_with_cast.j1m_1))
|
|
2520
2520
|
return false;
|
|
2521
|
-
if (!equals(this.
|
|
2521
|
+
if (!equals(this.k1m_1, tmp0_other_with_cast.k1m_1))
|
|
2522
2522
|
return false;
|
|
2523
|
-
if (!equals(this.
|
|
2523
|
+
if (!equals(this.l1m_1, tmp0_other_with_cast.l1m_1))
|
|
2524
2524
|
return false;
|
|
2525
|
-
if (!equals(this.
|
|
2525
|
+
if (!equals(this.m1m_1, tmp0_other_with_cast.m1m_1))
|
|
2526
2526
|
return false;
|
|
2527
2527
|
return true;
|
|
2528
2528
|
};
|
|
@@ -2623,17 +2623,17 @@
|
|
|
2623
2623
|
}
|
|
2624
2624
|
var ACES_AP1_B;
|
|
2625
2625
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
2626
|
-
return it.
|
|
2626
|
+
return it.g1m();
|
|
2627
2627
|
}
|
|
2628
2628
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
2629
2629
|
var tmp;
|
|
2630
2630
|
if (color instanceof RGB) {
|
|
2631
|
-
tmp = color.
|
|
2631
|
+
tmp = color.w1r($this$RGBColorSpaceImpl);
|
|
2632
2632
|
} else {
|
|
2633
2633
|
if (color instanceof ICtCp) {
|
|
2634
|
-
tmp = color.
|
|
2634
|
+
tmp = color.v1q();
|
|
2635
2635
|
} else {
|
|
2636
|
-
tmp = color.
|
|
2636
|
+
tmp = color.n1m().y1r($this$RGBColorSpaceImpl);
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
2639
|
return tmp;
|
|
@@ -2641,29 +2641,29 @@
|
|
|
2641
2641
|
function RGBColorSpaces() {
|
|
2642
2642
|
RGBColorSpaces_instance = this;
|
|
2643
2643
|
var tmp = this;
|
|
2644
|
-
var tmp_0 = Illuminant_getInstance().
|
|
2644
|
+
var tmp_0 = Illuminant_getInstance().n1p_1;
|
|
2645
2645
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
2646
2646
|
var tmp_2 = get_SRGB_R();
|
|
2647
2647
|
var tmp_3 = get_SRGB_G();
|
|
2648
2648
|
var tmp_4 = get_SRGB_B();
|
|
2649
|
-
tmp.
|
|
2650
|
-
this.
|
|
2651
|
-
this.
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2654
|
-
this.
|
|
2655
|
-
this.
|
|
2649
|
+
tmp.t1o_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
2650
|
+
this.u1o_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().n1p_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
2651
|
+
this.v1o_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
2652
|
+
this.w1o_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2653
|
+
this.x1o_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2654
|
+
this.y1o_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
2655
|
+
this.z1o_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().n1p_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));
|
|
2656
2656
|
var tmp_5 = this;
|
|
2657
|
-
var tmp_6 = Illuminant_getInstance().
|
|
2657
|
+
var tmp_6 = Illuminant_getInstance().n1p_1;
|
|
2658
2658
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
2659
2659
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
2660
2660
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
2661
2661
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
2662
|
-
tmp_5.
|
|
2663
|
-
this.
|
|
2664
|
-
this.
|
|
2665
|
-
this.
|
|
2666
|
-
this.
|
|
2662
|
+
tmp_5.a1p_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
2663
|
+
this.b1p_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().n1p_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
2664
|
+
this.c1p_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));
|
|
2665
|
+
this.d1p_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().n1p_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
2666
|
+
this.e1p_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().l1p_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));
|
|
2667
2667
|
}
|
|
2668
2668
|
var RGBColorSpaces_instance;
|
|
2669
2669
|
function RGBColorSpaces_getInstance() {
|
|
@@ -2673,49 +2673,49 @@
|
|
|
2673
2673
|
}
|
|
2674
2674
|
function SRGB() {
|
|
2675
2675
|
SRGB_instance = this;
|
|
2676
|
-
this.
|
|
2676
|
+
this.o1q_1 = RGBColorSpaces_getInstance().t1o_1;
|
|
2677
2677
|
}
|
|
2678
|
-
protoOf(SRGB).
|
|
2679
|
-
return this.
|
|
2678
|
+
protoOf(SRGB).i1o = function (r, g, b, alpha) {
|
|
2679
|
+
return this.o1q_1.i1o(r, g, b, alpha);
|
|
2680
2680
|
};
|
|
2681
|
-
protoOf(SRGB).
|
|
2682
|
-
return this.
|
|
2681
|
+
protoOf(SRGB).h1r = function (r, g, b, alpha) {
|
|
2682
|
+
return this.o1q_1.h1r(r, g, b, alpha);
|
|
2683
2683
|
};
|
|
2684
|
-
protoOf(SRGB).
|
|
2685
|
-
return this.
|
|
2684
|
+
protoOf(SRGB).h1o = function (hex) {
|
|
2685
|
+
return this.o1q_1.h1o(hex);
|
|
2686
2686
|
};
|
|
2687
|
-
protoOf(SRGB).
|
|
2688
|
-
return this.
|
|
2687
|
+
protoOf(SRGB).m1q = function (r, g, b, alpha) {
|
|
2688
|
+
return this.o1q_1.m1q(r, g, b, alpha);
|
|
2689
2689
|
};
|
|
2690
|
-
protoOf(SRGB).
|
|
2691
|
-
return this.
|
|
2690
|
+
protoOf(SRGB).h1n = function (color) {
|
|
2691
|
+
return this.o1q_1.h1n(color);
|
|
2692
2692
|
};
|
|
2693
|
-
protoOf(SRGB).
|
|
2694
|
-
return this.
|
|
2693
|
+
protoOf(SRGB).o1n = function (components) {
|
|
2694
|
+
return this.o1q_1.o1n(components);
|
|
2695
2695
|
};
|
|
2696
|
-
protoOf(SRGB).
|
|
2697
|
-
return this.
|
|
2696
|
+
protoOf(SRGB).w1q = function () {
|
|
2697
|
+
return this.o1q_1.w1q();
|
|
2698
2698
|
};
|
|
2699
|
-
protoOf(SRGB).
|
|
2700
|
-
return this.
|
|
2699
|
+
protoOf(SRGB).u1r = function () {
|
|
2700
|
+
return this.o1q_1.u1r();
|
|
2701
2701
|
};
|
|
2702
|
-
protoOf(SRGB).
|
|
2703
|
-
return this.
|
|
2702
|
+
protoOf(SRGB).v1r = function () {
|
|
2703
|
+
return this.o1q_1.v1r();
|
|
2704
2704
|
};
|
|
2705
|
-
protoOf(SRGB).
|
|
2706
|
-
return this.
|
|
2705
|
+
protoOf(SRGB).m1n = function () {
|
|
2706
|
+
return this.o1q_1.m1n();
|
|
2707
2707
|
};
|
|
2708
2708
|
protoOf(SRGB).q2 = function () {
|
|
2709
|
-
return this.
|
|
2709
|
+
return this.o1q_1.q2();
|
|
2710
2710
|
};
|
|
2711
|
-
protoOf(SRGB).
|
|
2712
|
-
return this.
|
|
2711
|
+
protoOf(SRGB).n1n = function () {
|
|
2712
|
+
return this.o1q_1.n1n();
|
|
2713
2713
|
};
|
|
2714
2714
|
protoOf(SRGB).equals = function (other) {
|
|
2715
|
-
return equals(RGBColorSpaces_getInstance().
|
|
2715
|
+
return equals(RGBColorSpaces_getInstance().t1o_1, other);
|
|
2716
2716
|
};
|
|
2717
2717
|
protoOf(SRGB).hashCode = function () {
|
|
2718
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
2718
|
+
return hashCode(RGBColorSpaces_getInstance().t1o_1);
|
|
2719
2719
|
};
|
|
2720
2720
|
protoOf(SRGB).toString = function () {
|
|
2721
2721
|
return 'sRGB';
|
|
@@ -2727,36 +2727,36 @@
|
|
|
2727
2727
|
return SRGB_instance;
|
|
2728
2728
|
}
|
|
2729
2729
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2732
|
-
this.
|
|
2733
|
-
this.
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2739
|
-
this.
|
|
2730
|
+
this.z1r_1 = name;
|
|
2731
|
+
this.a1s_1 = whitePoint;
|
|
2732
|
+
this.b1s_1 = transferFunctions;
|
|
2733
|
+
this.c1s_1 = r;
|
|
2734
|
+
this.d1s_1 = g;
|
|
2735
|
+
this.e1s_1 = b;
|
|
2736
|
+
this.f1s_1 = convertImpl;
|
|
2737
|
+
this.g1s_1 = zeroOneComponentInfo('RGB');
|
|
2738
|
+
this.h1s_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.a1s_1, this.c1s_1, this.d1s_1, this.e1s_1));
|
|
2739
|
+
this.i1s_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.h1s_1)));
|
|
2740
2740
|
}
|
|
2741
2741
|
protoOf(RGBColorSpaceImpl).q2 = function () {
|
|
2742
|
-
return this.
|
|
2742
|
+
return this.z1r_1;
|
|
2743
2743
|
};
|
|
2744
|
-
protoOf(RGBColorSpaceImpl).
|
|
2745
|
-
return this.
|
|
2744
|
+
protoOf(RGBColorSpaceImpl).m1n = function () {
|
|
2745
|
+
return this.a1s_1;
|
|
2746
2746
|
};
|
|
2747
|
-
protoOf(RGBColorSpaceImpl).
|
|
2748
|
-
return this.
|
|
2747
|
+
protoOf(RGBColorSpaceImpl).w1q = function () {
|
|
2748
|
+
return this.b1s_1;
|
|
2749
2749
|
};
|
|
2750
|
-
protoOf(RGBColorSpaceImpl).
|
|
2751
|
-
return this.
|
|
2750
|
+
protoOf(RGBColorSpaceImpl).n1n = function () {
|
|
2751
|
+
return this.g1s_1;
|
|
2752
2752
|
};
|
|
2753
|
-
protoOf(RGBColorSpaceImpl).
|
|
2754
|
-
return this.
|
|
2753
|
+
protoOf(RGBColorSpaceImpl).h1n = function (color) {
|
|
2754
|
+
return this.f1s_1(this, color);
|
|
2755
2755
|
};
|
|
2756
|
-
protoOf(RGBColorSpaceImpl).
|
|
2756
|
+
protoOf(RGBColorSpaceImpl).o1n = function (components) {
|
|
2757
2757
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
2758
2758
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
2759
|
-
var size = this.
|
|
2759
|
+
var size = this.n1n().m();
|
|
2760
2760
|
// Inline function 'kotlin.require' call
|
|
2761
2761
|
var containsLower = size - 1 | 0;
|
|
2762
2762
|
var containsArg = components.length;
|
|
@@ -2780,18 +2780,18 @@
|
|
|
2780
2780
|
tmp = 1.0;
|
|
2781
2781
|
}
|
|
2782
2782
|
var p3 = tmp;
|
|
2783
|
-
return this.
|
|
2783
|
+
return this.i1o(p0, p1, p2, p3);
|
|
2784
2784
|
};
|
|
2785
|
-
protoOf(RGBColorSpaceImpl).
|
|
2786
|
-
return this.
|
|
2785
|
+
protoOf(RGBColorSpaceImpl).u1r = function () {
|
|
2786
|
+
return this.h1s_1;
|
|
2787
2787
|
};
|
|
2788
|
-
protoOf(RGBColorSpaceImpl).
|
|
2789
|
-
return this.
|
|
2788
|
+
protoOf(RGBColorSpaceImpl).v1r = function () {
|
|
2789
|
+
return this.i1s_1;
|
|
2790
2790
|
};
|
|
2791
2791
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
2792
|
-
return this.
|
|
2792
|
+
return this.z1r_1;
|
|
2793
2793
|
};
|
|
2794
|
-
protoOf(RGBColorSpaceImpl).
|
|
2794
|
+
protoOf(RGBColorSpaceImpl).i1o = function (r, g, b, alpha) {
|
|
2795
2795
|
return new RGB(r, g, b, alpha, this);
|
|
2796
2796
|
};
|
|
2797
2797
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -2799,42 +2799,42 @@
|
|
|
2799
2799
|
return true;
|
|
2800
2800
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
2801
2801
|
return false;
|
|
2802
|
-
if (!(this.
|
|
2802
|
+
if (!(this.z1r_1 === other.q2()))
|
|
2803
2803
|
return false;
|
|
2804
|
-
if (!this.
|
|
2804
|
+
if (!this.a1s_1.equals(other.m1n()))
|
|
2805
2805
|
return false;
|
|
2806
|
-
if (!equals(this.
|
|
2806
|
+
if (!equals(this.b1s_1, other.w1q()))
|
|
2807
2807
|
return false;
|
|
2808
2808
|
if (other instanceof RGBColorSpaceImpl) {
|
|
2809
|
-
if (!this.
|
|
2809
|
+
if (!this.c1s_1.equals(other.c1s_1))
|
|
2810
2810
|
return false;
|
|
2811
|
-
if (!this.
|
|
2811
|
+
if (!this.d1s_1.equals(other.d1s_1))
|
|
2812
2812
|
return false;
|
|
2813
|
-
if (!this.
|
|
2813
|
+
if (!this.e1s_1.equals(other.e1s_1))
|
|
2814
2814
|
return false;
|
|
2815
2815
|
} else {
|
|
2816
|
-
if (!contentEquals(this.
|
|
2816
|
+
if (!contentEquals(this.h1s_1, other.u1r()))
|
|
2817
2817
|
return false;
|
|
2818
|
-
if (!contentEquals(this.
|
|
2818
|
+
if (!contentEquals(this.i1s_1, other.v1r()))
|
|
2819
2819
|
return false;
|
|
2820
2820
|
}
|
|
2821
2821
|
return true;
|
|
2822
2822
|
};
|
|
2823
2823
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
2824
|
-
var result = getStringHashCode(this.
|
|
2825
|
-
result = imul(31, result) + this.w1r_1.hashCode() | 0;
|
|
2826
|
-
result = imul(31, result) + hashCode(this.x1r_1) | 0;
|
|
2827
|
-
result = imul(31, result) + this.y1r_1.hashCode() | 0;
|
|
2828
|
-
result = imul(31, result) + this.z1r_1.hashCode() | 0;
|
|
2824
|
+
var result = getStringHashCode(this.z1r_1);
|
|
2829
2825
|
result = imul(31, result) + this.a1s_1.hashCode() | 0;
|
|
2826
|
+
result = imul(31, result) + hashCode(this.b1s_1) | 0;
|
|
2827
|
+
result = imul(31, result) + this.c1s_1.hashCode() | 0;
|
|
2828
|
+
result = imul(31, result) + this.d1s_1.hashCode() | 0;
|
|
2829
|
+
result = imul(31, result) + this.e1s_1.hashCode() | 0;
|
|
2830
2830
|
return result;
|
|
2831
2831
|
};
|
|
2832
2832
|
function SRGBTransferFunctions() {
|
|
2833
2833
|
}
|
|
2834
|
-
protoOf(SRGBTransferFunctions).
|
|
2834
|
+
protoOf(SRGBTransferFunctions).g1r = function (x) {
|
|
2835
2835
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
2836
2836
|
};
|
|
2837
|
-
protoOf(SRGBTransferFunctions).
|
|
2837
|
+
protoOf(SRGBTransferFunctions).f1r = function (x) {
|
|
2838
2838
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
2839
2839
|
};
|
|
2840
2840
|
var SRGBTransferFunctions_instance;
|
|
@@ -2847,18 +2847,18 @@
|
|
|
2847
2847
|
}
|
|
2848
2848
|
function ACESccTransferFunctions() {
|
|
2849
2849
|
ACESccTransferFunctions_instance = this;
|
|
2850
|
-
this.
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2850
|
+
this.j1s_1 = 3.0517578125E-5;
|
|
2851
|
+
this.k1s_1 = 1.52587890625E-5;
|
|
2852
|
+
this.l1s_1 = -0.3013698630136986;
|
|
2853
2853
|
var tmp = this;
|
|
2854
2854
|
// Inline function 'kotlin.math.log2' call
|
|
2855
|
-
tmp.
|
|
2855
|
+
tmp.m1s_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2856
2856
|
}
|
|
2857
|
-
protoOf(ACESccTransferFunctions).
|
|
2857
|
+
protoOf(ACESccTransferFunctions).f1r = function (x) {
|
|
2858
2858
|
var tmp;
|
|
2859
2859
|
if (x <= -0.3013698630136986) {
|
|
2860
2860
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
2861
|
-
} else if (x < this.
|
|
2861
|
+
} else if (x < this.m1s_1) {
|
|
2862
2862
|
// Inline function 'kotlin.math.pow' call
|
|
2863
2863
|
var x_0 = x * 17.52 - 9.72;
|
|
2864
2864
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2867,7 +2867,7 @@
|
|
|
2867
2867
|
}
|
|
2868
2868
|
return tmp;
|
|
2869
2869
|
};
|
|
2870
|
-
protoOf(ACESccTransferFunctions).
|
|
2870
|
+
protoOf(ACESccTransferFunctions).g1r = function (x) {
|
|
2871
2871
|
var tmp;
|
|
2872
2872
|
if (x < 3.0517578125E-5) {
|
|
2873
2873
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -2887,17 +2887,17 @@
|
|
|
2887
2887
|
}
|
|
2888
2888
|
function ACEScctTransferFunctions() {
|
|
2889
2889
|
ACEScctTransferFunctions_instance = this;
|
|
2890
|
-
this.
|
|
2891
|
-
this.
|
|
2890
|
+
this.n1s_1 = 10.5402377416545;
|
|
2891
|
+
this.o1s_1 = 0.0729055341958355;
|
|
2892
2892
|
var tmp = this;
|
|
2893
2893
|
// Inline function 'kotlin.math.log2' call
|
|
2894
|
-
tmp.
|
|
2894
|
+
tmp.p1s_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(ACEScctTransferFunctions).
|
|
2896
|
+
protoOf(ACEScctTransferFunctions).f1r = function (x) {
|
|
2897
2897
|
var tmp;
|
|
2898
2898
|
if (x <= 0.155251141552511) {
|
|
2899
2899
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
2900
|
-
} else if (x < this.
|
|
2900
|
+
} else if (x < this.p1s_1) {
|
|
2901
2901
|
// Inline function 'kotlin.math.pow' call
|
|
2902
2902
|
var x_0 = x * 17.52 - 9.72;
|
|
2903
2903
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -2906,7 +2906,7 @@
|
|
|
2906
2906
|
}
|
|
2907
2907
|
return tmp;
|
|
2908
2908
|
};
|
|
2909
|
-
protoOf(ACEScctTransferFunctions).
|
|
2909
|
+
protoOf(ACEScctTransferFunctions).g1r = function (x) {
|
|
2910
2910
|
var tmp;
|
|
2911
2911
|
if (x < 0.0078125) {
|
|
2912
2912
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -2924,16 +2924,16 @@
|
|
|
2924
2924
|
}
|
|
2925
2925
|
function BT2020TransferFunctions() {
|
|
2926
2926
|
BT2020TransferFunctions_instance = this;
|
|
2927
|
-
this.
|
|
2928
|
-
this.
|
|
2927
|
+
this.q1s_1 = 1.0993;
|
|
2928
|
+
this.r1s_1 = 0.0181;
|
|
2929
2929
|
var tmp = this;
|
|
2930
2930
|
// Inline function 'kotlin.math.pow' call
|
|
2931
|
-
tmp.
|
|
2931
|
+
tmp.s1s_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
2932
2932
|
}
|
|
2933
|
-
protoOf(BT2020TransferFunctions).
|
|
2934
|
-
return numberToDouble(x < this.
|
|
2933
|
+
protoOf(BT2020TransferFunctions).f1r = function (x) {
|
|
2934
|
+
return numberToDouble(x < this.s1s_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
2935
2935
|
};
|
|
2936
|
-
protoOf(BT2020TransferFunctions).
|
|
2936
|
+
protoOf(BT2020TransferFunctions).g1r = function (x) {
|
|
2937
2937
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
2938
2938
|
};
|
|
2939
2939
|
var BT2020TransferFunctions_instance;
|
|
@@ -2944,12 +2944,12 @@
|
|
|
2944
2944
|
}
|
|
2945
2945
|
function BT709TransferFunctions() {
|
|
2946
2946
|
BT709TransferFunctions_instance = this;
|
|
2947
|
-
this.
|
|
2947
|
+
this.t1s_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
2948
2948
|
}
|
|
2949
|
-
protoOf(BT709TransferFunctions).
|
|
2950
|
-
return numberToDouble(x < this.
|
|
2949
|
+
protoOf(BT709TransferFunctions).f1r = function (x) {
|
|
2950
|
+
return numberToDouble(x < this.t1s_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
2951
2951
|
};
|
|
2952
|
-
protoOf(BT709TransferFunctions).
|
|
2952
|
+
protoOf(BT709TransferFunctions).g1r = function (x) {
|
|
2953
2953
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
2954
2954
|
};
|
|
2955
2955
|
var BT709TransferFunctions_instance;
|
|
@@ -2959,12 +2959,12 @@
|
|
|
2959
2959
|
return BT709TransferFunctions_instance;
|
|
2960
2960
|
}
|
|
2961
2961
|
function ROMMTransferFunctions() {
|
|
2962
|
-
this.
|
|
2962
|
+
this.u1s_1 = 0.001953;
|
|
2963
2963
|
}
|
|
2964
|
-
protoOf(ROMMTransferFunctions).
|
|
2964
|
+
protoOf(ROMMTransferFunctions).f1r = function (x) {
|
|
2965
2965
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
2966
2966
|
};
|
|
2967
|
-
protoOf(ROMMTransferFunctions).
|
|
2967
|
+
protoOf(ROMMTransferFunctions).g1r = function (x) {
|
|
2968
2968
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
2969
2969
|
};
|
|
2970
2970
|
var ROMMTransferFunctions_instance;
|
|
@@ -2973,13 +2973,13 @@
|
|
|
2973
2973
|
}
|
|
2974
2974
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
2975
2975
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2976
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
2977
|
-
var wp = whitePoint.
|
|
2976
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.j1r_1, g.j1r_1, b.j1r_1, r.k1r_1, g.k1r_1, b.k1r_1, r.v1s(), g.v1s(), b.v1s());
|
|
2977
|
+
var wp = whitePoint.k1q_1;
|
|
2978
2978
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
2979
2979
|
var this_0 = inverse(primaries);
|
|
2980
|
-
var v0 = wp.
|
|
2981
|
-
var v1 = wp.
|
|
2982
|
-
var v2 = wp.
|
|
2980
|
+
var v0 = wp.m1r();
|
|
2981
|
+
var v1 = wp.l1r_1;
|
|
2982
|
+
var v2 = wp.n1r();
|
|
2983
2983
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
2984
2984
|
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;
|
|
2985
2985
|
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;
|
|
@@ -2990,9 +2990,9 @@
|
|
|
2990
2990
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
2991
2991
|
var tmp;
|
|
2992
2992
|
if (color instanceof RGB) {
|
|
2993
|
-
tmp = color.
|
|
2993
|
+
tmp = color.w1r($this$RGBColorSpaceImpl);
|
|
2994
2994
|
} else {
|
|
2995
|
-
tmp = color.
|
|
2995
|
+
tmp = color.n1m().y1r($this$RGBColorSpaceImpl);
|
|
2996
2996
|
}
|
|
2997
2997
|
return tmp;
|
|
2998
2998
|
}
|
|
@@ -3020,24 +3020,24 @@
|
|
|
3020
3020
|
}
|
|
3021
3021
|
function Companion_7() {
|
|
3022
3022
|
Companion_instance_8 = this;
|
|
3023
|
-
this.
|
|
3023
|
+
this.w1s_1 = threeComponentInfo('R', 0.0, 255.0, 'G', 0.0, 255.0, 'B', 0.0, 255.0);
|
|
3024
3024
|
}
|
|
3025
3025
|
protoOf(Companion_7).q2 = function () {
|
|
3026
3026
|
return 'RGBInt';
|
|
3027
3027
|
};
|
|
3028
|
-
protoOf(Companion_7).
|
|
3029
|
-
return this.
|
|
3028
|
+
protoOf(Companion_7).n1n = function () {
|
|
3029
|
+
return this.w1s_1;
|
|
3030
3030
|
};
|
|
3031
|
-
protoOf(Companion_7).
|
|
3032
|
-
return color.
|
|
3031
|
+
protoOf(Companion_7).x1s = function (color) {
|
|
3032
|
+
return color.g1m().q1p();
|
|
3033
3033
|
};
|
|
3034
|
-
protoOf(Companion_7).
|
|
3035
|
-
return new RGBInt(this.
|
|
3034
|
+
protoOf(Companion_7).h1n = function (color) {
|
|
3035
|
+
return new RGBInt(this.x1s(color));
|
|
3036
3036
|
};
|
|
3037
|
-
protoOf(Companion_7).
|
|
3037
|
+
protoOf(Companion_7).y1s = function (components) {
|
|
3038
3038
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
3039
3039
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
3040
|
-
var size = this.
|
|
3040
|
+
var size = this.n1n().m();
|
|
3041
3041
|
// Inline function 'kotlin.require' call
|
|
3042
3042
|
var containsLower = size - 1 | 0;
|
|
3043
3043
|
var containsArg = components.length;
|
|
@@ -3064,8 +3064,8 @@
|
|
|
3064
3064
|
var a = tmp;
|
|
3065
3065
|
return _RGBInt___init__impl__lqova7_0(numberToInt(r), numberToInt(g), numberToInt(b), numberToInt(a));
|
|
3066
3066
|
};
|
|
3067
|
-
protoOf(Companion_7).
|
|
3068
|
-
return new RGBInt(this.
|
|
3067
|
+
protoOf(Companion_7).o1n = function (components) {
|
|
3068
|
+
return new RGBInt(this.y1s(components));
|
|
3069
3069
|
};
|
|
3070
3070
|
var Companion_instance_8;
|
|
3071
3071
|
function Companion_getInstance_7() {
|
|
@@ -3197,7 +3197,7 @@
|
|
|
3197
3197
|
return (_UByte___get_data__impl__jof9qr(this_0) & 255) / 255.0;
|
|
3198
3198
|
}
|
|
3199
3199
|
function RGBInt__toSRGB_impl_m0acyy($this) {
|
|
3200
|
-
return Companion_getInstance_6().
|
|
3200
|
+
return Companion_getInstance_6().i1o(_RGBInt___get_redFloat__impl__lnt6cx($this), _RGBInt___get_greenFloat__impl__opq1mn($this), _RGBInt___get_blueFloat__impl__jt6mw2($this), _RGBInt___get_alpha__impl__yl2tay($this));
|
|
3201
3201
|
}
|
|
3202
3202
|
function RGBInt__toArray_impl_73rlu9($this) {
|
|
3203
3203
|
// Inline function 'kotlin.floatArrayOf' call
|
|
@@ -3236,65 +3236,65 @@
|
|
|
3236
3236
|
function RGBInt__equals_impl_qmmpmc($this, other) {
|
|
3237
3237
|
if (!(other instanceof RGBInt))
|
|
3238
3238
|
return false;
|
|
3239
|
-
if (!($this === (other instanceof RGBInt ? other.
|
|
3239
|
+
if (!($this === (other instanceof RGBInt ? other.x1r_1 : THROW_CCE())))
|
|
3240
3240
|
return false;
|
|
3241
3241
|
return true;
|
|
3242
3242
|
}
|
|
3243
3243
|
function RGBInt(argb) {
|
|
3244
3244
|
Companion_getInstance_7();
|
|
3245
|
-
this.
|
|
3245
|
+
this.x1r_1 = argb;
|
|
3246
3246
|
}
|
|
3247
|
-
protoOf(RGBInt).
|
|
3248
|
-
return _RGBInt___get_alpha__impl__yl2tay(this.
|
|
3247
|
+
protoOf(RGBInt).e1m = function () {
|
|
3248
|
+
return _RGBInt___get_alpha__impl__yl2tay(this.x1r_1);
|
|
3249
3249
|
};
|
|
3250
|
-
protoOf(RGBInt).
|
|
3251
|
-
return _RGBInt___get_space__impl__emgnsy(this.
|
|
3250
|
+
protoOf(RGBInt).f1m = function () {
|
|
3251
|
+
return _RGBInt___get_space__impl__emgnsy(this.x1r_1);
|
|
3252
3252
|
};
|
|
3253
|
-
protoOf(RGBInt).
|
|
3254
|
-
return RGBInt__toSRGB_impl_m0acyy(this.
|
|
3253
|
+
protoOf(RGBInt).g1m = function () {
|
|
3254
|
+
return RGBInt__toSRGB_impl_m0acyy(this.x1r_1);
|
|
3255
3255
|
};
|
|
3256
3256
|
protoOf(RGBInt).u5 = function () {
|
|
3257
|
-
return RGBInt__toArray_impl_73rlu9(this.
|
|
3257
|
+
return RGBInt__toArray_impl_73rlu9(this.x1r_1);
|
|
3258
3258
|
};
|
|
3259
3259
|
protoOf(RGBInt).toString = function () {
|
|
3260
|
-
return RGBInt__toString_impl_cf5r29(this.
|
|
3260
|
+
return RGBInt__toString_impl_cf5r29(this.x1r_1);
|
|
3261
3261
|
};
|
|
3262
3262
|
protoOf(RGBInt).hashCode = function () {
|
|
3263
|
-
return RGBInt__hashCode_impl_y6bnv4(this.
|
|
3263
|
+
return RGBInt__hashCode_impl_y6bnv4(this.x1r_1);
|
|
3264
3264
|
};
|
|
3265
3265
|
protoOf(RGBInt).equals = function (other) {
|
|
3266
|
-
return RGBInt__equals_impl_qmmpmc(this.
|
|
3266
|
+
return RGBInt__equals_impl_qmmpmc(this.x1r_1, other);
|
|
3267
3267
|
};
|
|
3268
3268
|
function Companion_8() {
|
|
3269
3269
|
Companion_instance_9 = this;
|
|
3270
|
-
this.
|
|
3270
|
+
this.s1r_1 = XYZColorSpaces_getInstance().f1p_1;
|
|
3271
3271
|
}
|
|
3272
|
-
protoOf(Companion_8).
|
|
3273
|
-
return this.
|
|
3272
|
+
protoOf(Companion_8).i1o = function (x, y, z, alpha) {
|
|
3273
|
+
return this.s1r_1.i1o(x, y, z, alpha);
|
|
3274
3274
|
};
|
|
3275
|
-
protoOf(Companion_8).
|
|
3276
|
-
return this.
|
|
3275
|
+
protoOf(Companion_8).h1r = function (x, y, z, alpha) {
|
|
3276
|
+
return this.s1r_1.h1r(x, y, z, alpha);
|
|
3277
3277
|
};
|
|
3278
|
-
protoOf(Companion_8).
|
|
3279
|
-
return this.
|
|
3278
|
+
protoOf(Companion_8).h1n = function (color) {
|
|
3279
|
+
return this.s1r_1.h1n(color);
|
|
3280
3280
|
};
|
|
3281
|
-
protoOf(Companion_8).
|
|
3282
|
-
return this.
|
|
3281
|
+
protoOf(Companion_8).o1n = function (components) {
|
|
3282
|
+
return this.s1r_1.o1n(components);
|
|
3283
3283
|
};
|
|
3284
|
-
protoOf(Companion_8).
|
|
3285
|
-
return this.
|
|
3284
|
+
protoOf(Companion_8).m1n = function () {
|
|
3285
|
+
return this.s1r_1.m1n();
|
|
3286
3286
|
};
|
|
3287
3287
|
protoOf(Companion_8).q2 = function () {
|
|
3288
|
-
return this.
|
|
3288
|
+
return this.s1r_1.q2();
|
|
3289
3289
|
};
|
|
3290
|
-
protoOf(Companion_8).
|
|
3291
|
-
return this.
|
|
3290
|
+
protoOf(Companion_8).n1n = function () {
|
|
3291
|
+
return this.s1r_1.n1n();
|
|
3292
3292
|
};
|
|
3293
3293
|
protoOf(Companion_8).hashCode = function () {
|
|
3294
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
3294
|
+
return hashCode(XYZColorSpaces_getInstance().f1p_1);
|
|
3295
3295
|
};
|
|
3296
3296
|
protoOf(Companion_8).equals = function (other) {
|
|
3297
|
-
return equals(XYZColorSpaces_getInstance().
|
|
3297
|
+
return equals(XYZColorSpaces_getInstance().f1p_1, other);
|
|
3298
3298
|
};
|
|
3299
3299
|
var Companion_instance_9;
|
|
3300
3300
|
function Companion_getInstance_8() {
|
|
@@ -3303,18 +3303,18 @@
|
|
|
3303
3303
|
return Companion_instance_9;
|
|
3304
3304
|
}
|
|
3305
3305
|
function adaptToM($this, space, m, mi) {
|
|
3306
|
-
if (space.
|
|
3306
|
+
if (space.m1n().equals($this.t1m_1.m1n()))
|
|
3307
3307
|
return $this;
|
|
3308
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
3308
|
+
var transform = chromaticAdaptationMatrix(space, $this.t1m_1.m1n().k1q_1, m, mi);
|
|
3309
3309
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3310
|
-
var v0 = $this.
|
|
3311
|
-
var v1 = $this.
|
|
3312
|
-
var v2 = $this.
|
|
3310
|
+
var v0 = $this.p1m_1;
|
|
3311
|
+
var v1 = $this.q1m_1;
|
|
3312
|
+
var v2 = $this.r1m_1;
|
|
3313
3313
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
3314
3314
|
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;
|
|
3315
3315
|
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;
|
|
3316
3316
|
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;
|
|
3317
|
-
return space.
|
|
3317
|
+
return space.i1o(xx, yy, zz, $this.s1m_1);
|
|
3318
3318
|
}
|
|
3319
3319
|
function toLAB$f(t) {
|
|
3320
3320
|
var tmp;
|
|
@@ -3328,100 +3328,100 @@
|
|
|
3328
3328
|
}
|
|
3329
3329
|
function XYZ(x, y, z, alpha, space) {
|
|
3330
3330
|
Companion_getInstance_8();
|
|
3331
|
-
this.
|
|
3332
|
-
this.
|
|
3333
|
-
this.
|
|
3334
|
-
this.
|
|
3335
|
-
this.
|
|
3331
|
+
this.p1m_1 = x;
|
|
3332
|
+
this.q1m_1 = y;
|
|
3333
|
+
this.r1m_1 = z;
|
|
3334
|
+
this.s1m_1 = alpha;
|
|
3335
|
+
this.t1m_1 = space;
|
|
3336
3336
|
}
|
|
3337
|
-
protoOf(XYZ).
|
|
3338
|
-
return this.
|
|
3337
|
+
protoOf(XYZ).e1m = function () {
|
|
3338
|
+
return this.s1m_1;
|
|
3339
3339
|
};
|
|
3340
|
-
protoOf(XYZ).
|
|
3341
|
-
return this.
|
|
3340
|
+
protoOf(XYZ).f1m = function () {
|
|
3341
|
+
return this.t1m_1;
|
|
3342
3342
|
};
|
|
3343
|
-
protoOf(XYZ).
|
|
3343
|
+
protoOf(XYZ).h1p = function (space) {
|
|
3344
3344
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
3345
3345
|
};
|
|
3346
|
-
protoOf(XYZ).
|
|
3347
|
-
var _destruct__k2r9zo = this.
|
|
3346
|
+
protoOf(XYZ).y1r = function (space) {
|
|
3347
|
+
var _destruct__k2r9zo = this.h1p(XYZColorSpace_0(space.m1n()));
|
|
3348
3348
|
var x = _destruct__k2r9zo.lf();
|
|
3349
3349
|
var y = _destruct__k2r9zo.mf();
|
|
3350
|
-
var z = _destruct__k2r9zo.
|
|
3351
|
-
var f = space.
|
|
3350
|
+
var z = _destruct__k2r9zo.z1s();
|
|
3351
|
+
var f = space.w1q();
|
|
3352
3352
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
3353
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
3353
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.v1r());
|
|
3354
3354
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
3355
3355
|
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;
|
|
3356
3356
|
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;
|
|
3357
3357
|
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;
|
|
3358
|
-
return space.
|
|
3358
|
+
return space.i1o(f.g1r(r), f.g1r(g), f.g1r(b), this.s1m_1);
|
|
3359
3359
|
};
|
|
3360
|
-
protoOf(XYZ).
|
|
3361
|
-
return this.
|
|
3360
|
+
protoOf(XYZ).g1m = function () {
|
|
3361
|
+
return this.y1r(RGBColorSpaces_getInstance().t1o_1);
|
|
3362
3362
|
};
|
|
3363
|
-
protoOf(XYZ).
|
|
3364
|
-
var fx = toLAB$f(this.
|
|
3365
|
-
var fy = toLAB$f(this.
|
|
3366
|
-
var fz = toLAB$f(this.
|
|
3363
|
+
protoOf(XYZ).o1m = function () {
|
|
3364
|
+
var fx = toLAB$f(this.p1m_1 / this.t1m_1.m1n().k1q_1.m1r());
|
|
3365
|
+
var fy = toLAB$f(this.q1m_1 / this.t1m_1.m1n().k1q_1.l1r_1);
|
|
3366
|
+
var fz = toLAB$f(this.r1m_1 / this.t1m_1.m1n().k1q_1.n1r());
|
|
3367
3367
|
var l = 116 * fy - 16;
|
|
3368
3368
|
var a = 500 * (fx - fy);
|
|
3369
3369
|
var b = 200 * (fy - fz);
|
|
3370
|
-
return LABColorSpace_0(this.
|
|
3370
|
+
return LABColorSpace_0(this.t1m_1.m1n()).h1r(l, a, b, this.s1m_1);
|
|
3371
3371
|
};
|
|
3372
|
-
protoOf(XYZ).
|
|
3372
|
+
protoOf(XYZ).b1n = function () {
|
|
3373
3373
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toD65' call
|
|
3374
3374
|
var tmp;
|
|
3375
|
-
if (equals(this.
|
|
3376
|
-
var l = +0.8189330101 * this.
|
|
3377
|
-
var m = +0.0329845436 * this.
|
|
3378
|
-
var s = +0.0482003018 * this.
|
|
3375
|
+
if (equals(this.t1m_1, XYZColorSpaces_getInstance().f1p_1)) {
|
|
3376
|
+
var l = +0.8189330101 * this.p1m_1 + 0.3618667424 * this.q1m_1 - 0.1288597137 * this.r1m_1;
|
|
3377
|
+
var m = +0.0329845436 * this.p1m_1 + 0.9293118715 * this.q1m_1 + 0.0361456387 * this.r1m_1;
|
|
3378
|
+
var s = +0.0482003018 * this.p1m_1 + 0.2643662691 * this.q1m_1 + 0.633851707 * this.r1m_1;
|
|
3379
3379
|
// Inline function 'kotlin.math.cbrt' call
|
|
3380
3380
|
var ll = Math.cbrt(l);
|
|
3381
3381
|
// Inline function 'kotlin.math.cbrt' call
|
|
3382
3382
|
var mm = Math.cbrt(m);
|
|
3383
3383
|
// Inline function 'kotlin.math.cbrt' call
|
|
3384
3384
|
var ss = Math.cbrt(s);
|
|
3385
|
-
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.
|
|
3385
|
+
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.s1m_1);
|
|
3386
3386
|
} else {
|
|
3387
|
-
var $this$toD65 = this.
|
|
3388
|
-
var l_0 = +0.8189330101 * $this$toD65.
|
|
3389
|
-
var m_0 = +0.0329845436 * $this$toD65.
|
|
3390
|
-
var s_0 = +0.0482003018 * $this$toD65.
|
|
3387
|
+
var $this$toD65 = this.h1p(XYZColorSpaces_getInstance().f1p_1);
|
|
3388
|
+
var l_0 = +0.8189330101 * $this$toD65.p1m_1 + 0.3618667424 * $this$toD65.q1m_1 - 0.1288597137 * $this$toD65.r1m_1;
|
|
3389
|
+
var m_0 = +0.0329845436 * $this$toD65.p1m_1 + 0.9293118715 * $this$toD65.q1m_1 + 0.0361456387 * $this$toD65.r1m_1;
|
|
3390
|
+
var s_0 = +0.0482003018 * $this$toD65.p1m_1 + 0.2643662691 * $this$toD65.q1m_1 + 0.633851707 * $this$toD65.r1m_1;
|
|
3391
3391
|
// Inline function 'kotlin.math.cbrt' call
|
|
3392
3392
|
var ll_0 = Math.cbrt(l_0);
|
|
3393
3393
|
// Inline function 'kotlin.math.cbrt' call
|
|
3394
3394
|
var mm_0 = Math.cbrt(m_0);
|
|
3395
3395
|
// Inline function 'kotlin.math.cbrt' call
|
|
3396
3396
|
var ss_0 = Math.cbrt(s_0);
|
|
3397
|
-
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.
|
|
3397
|
+
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.s1m_1);
|
|
3398
3398
|
}
|
|
3399
3399
|
};
|
|
3400
|
-
protoOf(XYZ).
|
|
3400
|
+
protoOf(XYZ).n1m = function () {
|
|
3401
3401
|
return this;
|
|
3402
3402
|
};
|
|
3403
3403
|
protoOf(XYZ).u5 = function () {
|
|
3404
3404
|
// Inline function 'kotlin.floatArrayOf' call
|
|
3405
|
-
return new Float32Array([this.
|
|
3405
|
+
return new Float32Array([this.p1m_1, this.q1m_1, this.r1m_1, this.s1m_1]);
|
|
3406
3406
|
};
|
|
3407
3407
|
protoOf(XYZ).lf = function () {
|
|
3408
|
-
return this.
|
|
3408
|
+
return this.p1m_1;
|
|
3409
3409
|
};
|
|
3410
3410
|
protoOf(XYZ).mf = function () {
|
|
3411
|
-
return this.
|
|
3411
|
+
return this.q1m_1;
|
|
3412
3412
|
};
|
|
3413
|
-
protoOf(XYZ).
|
|
3414
|
-
return this.
|
|
3413
|
+
protoOf(XYZ).z1s = function () {
|
|
3414
|
+
return this.r1m_1;
|
|
3415
3415
|
};
|
|
3416
3416
|
protoOf(XYZ).toString = function () {
|
|
3417
|
-
return 'XYZ(x=' + this.
|
|
3417
|
+
return 'XYZ(x=' + this.p1m_1 + ', y=' + this.q1m_1 + ', z=' + this.r1m_1 + ', alpha=' + this.s1m_1 + ', space=' + toString(this.t1m_1) + ')';
|
|
3418
3418
|
};
|
|
3419
3419
|
protoOf(XYZ).hashCode = function () {
|
|
3420
|
-
var result = getNumberHashCode(this.
|
|
3421
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3422
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3423
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3424
|
-
result = imul(result, 31) + hashCode(this.
|
|
3420
|
+
var result = getNumberHashCode(this.p1m_1);
|
|
3421
|
+
result = imul(result, 31) + getNumberHashCode(this.q1m_1) | 0;
|
|
3422
|
+
result = imul(result, 31) + getNumberHashCode(this.r1m_1) | 0;
|
|
3423
|
+
result = imul(result, 31) + getNumberHashCode(this.s1m_1) | 0;
|
|
3424
|
+
result = imul(result, 31) + hashCode(this.t1m_1) | 0;
|
|
3425
3425
|
return result;
|
|
3426
3426
|
};
|
|
3427
3427
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -3430,27 +3430,27 @@
|
|
|
3430
3430
|
if (!(other instanceof XYZ))
|
|
3431
3431
|
return false;
|
|
3432
3432
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
3433
|
-
if (!equals(this.
|
|
3433
|
+
if (!equals(this.p1m_1, tmp0_other_with_cast.p1m_1))
|
|
3434
3434
|
return false;
|
|
3435
|
-
if (!equals(this.
|
|
3435
|
+
if (!equals(this.q1m_1, tmp0_other_with_cast.q1m_1))
|
|
3436
3436
|
return false;
|
|
3437
|
-
if (!equals(this.
|
|
3437
|
+
if (!equals(this.r1m_1, tmp0_other_with_cast.r1m_1))
|
|
3438
3438
|
return false;
|
|
3439
|
-
if (!equals(this.
|
|
3439
|
+
if (!equals(this.s1m_1, tmp0_other_with_cast.s1m_1))
|
|
3440
3440
|
return false;
|
|
3441
|
-
if (!equals(this.
|
|
3441
|
+
if (!equals(this.t1m_1, tmp0_other_with_cast.t1m_1))
|
|
3442
3442
|
return false;
|
|
3443
3443
|
return true;
|
|
3444
3444
|
};
|
|
3445
3445
|
function XYZColorSpace() {
|
|
3446
3446
|
}
|
|
3447
3447
|
function XYZColorSpace_0(whitePoint) {
|
|
3448
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
3448
|
+
return whitePoint.equals(Illuminant_getInstance().n1p_1) ? XYZColorSpaces_getInstance().f1p_1 : whitePoint.equals(Illuminant_getInstance().l1p_1) ? XYZColorSpaces_getInstance().g1p_1 : new XYZColorSpaceImpl(whitePoint);
|
|
3449
3449
|
}
|
|
3450
3450
|
function XYZColorSpaces() {
|
|
3451
3451
|
XYZColorSpaces_instance = this;
|
|
3452
|
-
this.
|
|
3453
|
-
this.
|
|
3452
|
+
this.f1p_1 = new XYZColorSpaceImpl(Illuminant_getInstance().n1p_1);
|
|
3453
|
+
this.g1p_1 = new XYZColorSpaceImpl(Illuminant_getInstance().l1p_1);
|
|
3454
3454
|
}
|
|
3455
3455
|
var XYZColorSpaces_instance;
|
|
3456
3456
|
function XYZColorSpaces_getInstance() {
|
|
@@ -3461,31 +3461,31 @@
|
|
|
3461
3461
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
3462
3462
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
3463
3463
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
3464
|
-
var dstWp = _this__u8e3s4.
|
|
3465
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
3466
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
3464
|
+
var dstWp = _this__u8e3s4.m1n().k1q_1;
|
|
3465
|
+
var src = dot_0(xyzToLms, srcWp.m1r(), srcWp.l1r_1, srcWp.n1r());
|
|
3466
|
+
var dst = dot_0(xyzToLms, dstWp.m1r(), dstWp.l1r_1, dstWp.n1r());
|
|
3467
3467
|
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);
|
|
3468
3468
|
}
|
|
3469
3469
|
function XYZColorSpaceImpl(whitePoint) {
|
|
3470
|
-
this.
|
|
3471
|
-
this.
|
|
3470
|
+
this.a1t_1 = whitePoint;
|
|
3471
|
+
this.b1t_1 = zeroOneComponentInfo('XYZ');
|
|
3472
3472
|
}
|
|
3473
|
-
protoOf(XYZColorSpaceImpl).
|
|
3474
|
-
return this.
|
|
3473
|
+
protoOf(XYZColorSpaceImpl).m1n = function () {
|
|
3474
|
+
return this.a1t_1;
|
|
3475
3475
|
};
|
|
3476
3476
|
protoOf(XYZColorSpaceImpl).q2 = function () {
|
|
3477
3477
|
return 'XYZ';
|
|
3478
3478
|
};
|
|
3479
|
-
protoOf(XYZColorSpaceImpl).
|
|
3480
|
-
return this.
|
|
3479
|
+
protoOf(XYZColorSpaceImpl).n1n = function () {
|
|
3480
|
+
return this.b1t_1;
|
|
3481
3481
|
};
|
|
3482
|
-
protoOf(XYZColorSpaceImpl).
|
|
3483
|
-
return color.
|
|
3482
|
+
protoOf(XYZColorSpaceImpl).h1n = function (color) {
|
|
3483
|
+
return color.n1m().h1p(this);
|
|
3484
3484
|
};
|
|
3485
|
-
protoOf(XYZColorSpaceImpl).
|
|
3485
|
+
protoOf(XYZColorSpaceImpl).o1n = function (components) {
|
|
3486
3486
|
// Inline function 'com.github.ajalt.colormath.internal.doCreate' call
|
|
3487
3487
|
// Inline function 'com.github.ajalt.colormath.internal.withValidComps' call
|
|
3488
|
-
var size = this.
|
|
3488
|
+
var size = this.n1n().m();
|
|
3489
3489
|
// Inline function 'kotlin.require' call
|
|
3490
3490
|
var containsLower = size - 1 | 0;
|
|
3491
3491
|
var containsArg = components.length;
|
|
@@ -3509,21 +3509,21 @@
|
|
|
3509
3509
|
tmp = 1.0;
|
|
3510
3510
|
}
|
|
3511
3511
|
var p3 = tmp;
|
|
3512
|
-
return this.
|
|
3512
|
+
return this.i1o(p0, p1, p2, p3);
|
|
3513
3513
|
};
|
|
3514
3514
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
3515
|
-
return 'XYZColorSpace(' + this.
|
|
3515
|
+
return 'XYZColorSpace(' + this.a1t_1.toString() + ')';
|
|
3516
3516
|
};
|
|
3517
|
-
protoOf(XYZColorSpaceImpl).
|
|
3517
|
+
protoOf(XYZColorSpaceImpl).i1o = function (x, y, z, alpha) {
|
|
3518
3518
|
return new XYZ(x, y, z, alpha, this);
|
|
3519
3519
|
};
|
|
3520
3520
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
3521
|
-
return this.
|
|
3521
|
+
return this.a1t_1.hashCode();
|
|
3522
3522
|
};
|
|
3523
3523
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
3524
3524
|
var tmp;
|
|
3525
3525
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
3526
|
-
tmp = this.
|
|
3526
|
+
tmp = this.a1t_1.equals(other.m1n());
|
|
3527
3527
|
} else {
|
|
3528
3528
|
tmp = false;
|
|
3529
3529
|
}
|
|
@@ -3539,26 +3539,26 @@
|
|
|
3539
3539
|
}
|
|
3540
3540
|
function xyY(x, y, Y) {
|
|
3541
3541
|
Y = Y === VOID ? 1.0 : Y;
|
|
3542
|
-
this.
|
|
3543
|
-
this.
|
|
3544
|
-
this.
|
|
3542
|
+
this.j1r_1 = x;
|
|
3543
|
+
this.k1r_1 = y;
|
|
3544
|
+
this.l1r_1 = Y;
|
|
3545
3545
|
}
|
|
3546
|
-
protoOf(xyY).
|
|
3547
|
-
return 1 - this.
|
|
3546
|
+
protoOf(xyY).v1s = function () {
|
|
3547
|
+
return 1 - this.j1r_1 - this.k1r_1;
|
|
3548
3548
|
};
|
|
3549
|
-
protoOf(xyY).
|
|
3550
|
-
return this.
|
|
3549
|
+
protoOf(xyY).m1r = function () {
|
|
3550
|
+
return this.j1r_1 * this.l1r_1 / this.k1r_1;
|
|
3551
3551
|
};
|
|
3552
|
-
protoOf(xyY).
|
|
3553
|
-
return (1 - this.
|
|
3552
|
+
protoOf(xyY).n1r = function () {
|
|
3553
|
+
return (1 - this.j1r_1 - this.k1r_1) * this.l1r_1 / this.k1r_1;
|
|
3554
3554
|
};
|
|
3555
3555
|
protoOf(xyY).toString = function () {
|
|
3556
|
-
return 'xyY(x=' + this.
|
|
3556
|
+
return 'xyY(x=' + this.j1r_1 + ', y=' + this.k1r_1 + ', Y=' + this.l1r_1 + ')';
|
|
3557
3557
|
};
|
|
3558
3558
|
protoOf(xyY).hashCode = function () {
|
|
3559
|
-
var result = getNumberHashCode(this.
|
|
3560
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3561
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
3559
|
+
var result = getNumberHashCode(this.j1r_1);
|
|
3560
|
+
result = imul(result, 31) + getNumberHashCode(this.k1r_1) | 0;
|
|
3561
|
+
result = imul(result, 31) + getNumberHashCode(this.l1r_1) | 0;
|
|
3562
3562
|
return result;
|
|
3563
3563
|
};
|
|
3564
3564
|
protoOf(xyY).equals = function (other) {
|
|
@@ -3567,67 +3567,67 @@
|
|
|
3567
3567
|
if (!(other instanceof xyY))
|
|
3568
3568
|
return false;
|
|
3569
3569
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
3570
|
-
if (!equals(this.
|
|
3570
|
+
if (!equals(this.j1r_1, tmp0_other_with_cast.j1r_1))
|
|
3571
3571
|
return false;
|
|
3572
|
-
if (!equals(this.
|
|
3572
|
+
if (!equals(this.k1r_1, tmp0_other_with_cast.k1r_1))
|
|
3573
3573
|
return false;
|
|
3574
|
-
if (!equals(this.
|
|
3574
|
+
if (!equals(this.l1r_1, tmp0_other_with_cast.l1r_1))
|
|
3575
3575
|
return false;
|
|
3576
3576
|
return true;
|
|
3577
3577
|
};
|
|
3578
3578
|
//region block: post-declaration
|
|
3579
|
-
protoOf(HSL).
|
|
3580
|
-
protoOf(HSL).
|
|
3581
|
-
protoOf(HSL).
|
|
3582
|
-
protoOf(HSL).
|
|
3583
|
-
protoOf(HSL).
|
|
3584
|
-
protoOf(HSL).
|
|
3585
|
-
protoOf(HWB).
|
|
3586
|
-
protoOf(HWB).
|
|
3587
|
-
protoOf(HWB).
|
|
3588
|
-
protoOf(HWB).
|
|
3589
|
-
protoOf(HWB).
|
|
3590
|
-
protoOf(HWB).
|
|
3591
|
-
protoOf(LAB).
|
|
3592
|
-
protoOf(LAB).
|
|
3593
|
-
protoOf(LAB).
|
|
3594
|
-
protoOf(LAB).
|
|
3595
|
-
protoOf(LABColorSpaceImpl).
|
|
3596
|
-
protoOf(LCHab).
|
|
3597
|
-
protoOf(LCHab).
|
|
3598
|
-
protoOf(LCHab).
|
|
3599
|
-
protoOf(LCHab).
|
|
3600
|
-
protoOf(Oklab).
|
|
3601
|
-
protoOf(Oklab).
|
|
3602
|
-
protoOf(Oklab).
|
|
3603
|
-
protoOf(Oklab).
|
|
3604
|
-
protoOf(Oklch).
|
|
3605
|
-
protoOf(Oklch).
|
|
3606
|
-
protoOf(Oklch).
|
|
3607
|
-
protoOf(Oklch).
|
|
3608
|
-
protoOf(Companion_6).
|
|
3609
|
-
protoOf(RGB).
|
|
3610
|
-
protoOf(RGB).
|
|
3611
|
-
protoOf(RGB).
|
|
3612
|
-
protoOf(SRGB).
|
|
3613
|
-
protoOf(RGBColorSpaceImpl).
|
|
3614
|
-
protoOf(RGBColorSpaceImpl).
|
|
3615
|
-
protoOf(RGBColorSpaceImpl).
|
|
3616
|
-
protoOf(RGBColorSpaceImpl).
|
|
3617
|
-
protoOf(RGBInt).
|
|
3618
|
-
protoOf(RGBInt).
|
|
3619
|
-
protoOf(RGBInt).
|
|
3620
|
-
protoOf(RGBInt).
|
|
3621
|
-
protoOf(RGBInt).
|
|
3622
|
-
protoOf(RGBInt).
|
|
3623
|
-
protoOf(RGBInt).
|
|
3624
|
-
protoOf(Companion_8).
|
|
3625
|
-
protoOf(XYZ).
|
|
3626
|
-
protoOf(XYZ).
|
|
3627
|
-
protoOf(XYZ).
|
|
3628
|
-
protoOf(XYZ).
|
|
3629
|
-
protoOf(XYZColorSpaceImpl).
|
|
3630
|
-
protoOf(XYZColorSpaceImpl).
|
|
3579
|
+
protoOf(HSL).n1m = toXYZ;
|
|
3580
|
+
protoOf(HSL).o1m = toLAB;
|
|
3581
|
+
protoOf(HSL).u1m = toLCHab;
|
|
3582
|
+
protoOf(HSL).a1n = toHWB;
|
|
3583
|
+
protoOf(HSL).b1n = toOklab;
|
|
3584
|
+
protoOf(HSL).c1n = toOklch;
|
|
3585
|
+
protoOf(HWB).h1m = toHSL;
|
|
3586
|
+
protoOf(HWB).n1m = toXYZ;
|
|
3587
|
+
protoOf(HWB).o1m = toLAB;
|
|
3588
|
+
protoOf(HWB).u1m = toLCHab;
|
|
3589
|
+
protoOf(HWB).b1n = toOklab;
|
|
3590
|
+
protoOf(HWB).c1n = toOklch;
|
|
3591
|
+
protoOf(LAB).h1m = toHSL;
|
|
3592
|
+
protoOf(LAB).a1n = toHWB;
|
|
3593
|
+
protoOf(LAB).b1n = toOklab;
|
|
3594
|
+
protoOf(LAB).c1n = toOklch;
|
|
3595
|
+
protoOf(LABColorSpaceImpl).h1r = invoke;
|
|
3596
|
+
protoOf(LCHab).h1m = toHSL;
|
|
3597
|
+
protoOf(LCHab).a1n = toHWB;
|
|
3598
|
+
protoOf(LCHab).b1n = toOklab;
|
|
3599
|
+
protoOf(LCHab).c1n = toOklch;
|
|
3600
|
+
protoOf(Oklab).h1m = toHSL;
|
|
3601
|
+
protoOf(Oklab).o1m = toLAB;
|
|
3602
|
+
protoOf(Oklab).u1m = toLCHab;
|
|
3603
|
+
protoOf(Oklab).a1n = toHWB;
|
|
3604
|
+
protoOf(Oklch).h1m = toHSL;
|
|
3605
|
+
protoOf(Oklch).o1m = toLAB;
|
|
3606
|
+
protoOf(Oklch).u1m = toLCHab;
|
|
3607
|
+
protoOf(Oklch).a1n = toHWB;
|
|
3608
|
+
protoOf(Companion_6).l1q = from255$default;
|
|
3609
|
+
protoOf(RGB).o1m = toLAB;
|
|
3610
|
+
protoOf(RGB).u1m = toLCHab;
|
|
3611
|
+
protoOf(RGB).c1n = toOklch;
|
|
3612
|
+
protoOf(SRGB).l1q = from255$default;
|
|
3613
|
+
protoOf(RGBColorSpaceImpl).h1r = invoke_0;
|
|
3614
|
+
protoOf(RGBColorSpaceImpl).h1o = invoke_1;
|
|
3615
|
+
protoOf(RGBColorSpaceImpl).m1q = from255;
|
|
3616
|
+
protoOf(RGBColorSpaceImpl).l1q = from255$default;
|
|
3617
|
+
protoOf(RGBInt).h1m = toHSL;
|
|
3618
|
+
protoOf(RGBInt).n1m = toXYZ;
|
|
3619
|
+
protoOf(RGBInt).o1m = toLAB;
|
|
3620
|
+
protoOf(RGBInt).u1m = toLCHab;
|
|
3621
|
+
protoOf(RGBInt).a1n = toHWB;
|
|
3622
|
+
protoOf(RGBInt).b1n = toOklab;
|
|
3623
|
+
protoOf(RGBInt).c1n = toOklch;
|
|
3624
|
+
protoOf(Companion_8).i1r = invoke$default;
|
|
3625
|
+
protoOf(XYZ).h1m = toHSL;
|
|
3626
|
+
protoOf(XYZ).u1m = toLCHab;
|
|
3627
|
+
protoOf(XYZ).a1n = toHWB;
|
|
3628
|
+
protoOf(XYZ).c1n = toOklch;
|
|
3629
|
+
protoOf(XYZColorSpaceImpl).h1r = invoke_2;
|
|
3630
|
+
protoOf(XYZColorSpaceImpl).i1r = invoke$default;
|
|
3631
3631
|
//endregion
|
|
3632
3632
|
//region block: init
|
|
3633
3633
|
Companion_instance_0 = new Companion();
|