git-digger 1.5.19 → 1.5.21
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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1266 -1266
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt-mordant.js +91 -91
- package/kotlin/clikt-clikt.js +1806 -1731
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +473 -473
- package/kotlin/command-line-tools-digger-cli.js +72 -72
- package/kotlin/kotlin-kotlin-stdlib.js +1875 -1669
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +921 -921
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +322 -322
- package/kotlin/mordant-mordant.js +1385 -1385
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +159 -159
- package/kotlin/tools-digger-json.js +114 -114
- package/kotlin/tools-digger-model.js +60 -60
- package/kotlin/tools-git-adapter.js +73 -73
- package/package.json +1 -1
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
8
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.p8;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.t7;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.r8;
|
|
9
9
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
10
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
11
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
12
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
13
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.q7;
|
|
11
|
+
var getStringHashCode = kotlin_kotlin.$_$.o7;
|
|
12
|
+
var THROW_CCE = kotlin_kotlin.$_$.yb;
|
|
13
|
+
var initMetadataForObject = kotlin_kotlin.$_$.v7;
|
|
14
14
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
15
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
16
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
17
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
18
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
19
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
15
|
+
var charSequenceLength = kotlin_kotlin.$_$.g7;
|
|
16
|
+
var charSequenceGet = kotlin_kotlin.$_$.f7;
|
|
17
|
+
var toString_0 = kotlin_kotlin.$_$.s1;
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.h3;
|
|
19
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.p1;
|
|
20
20
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
21
|
-
var listOf = kotlin_kotlin.$_$.
|
|
22
|
-
var withSign = kotlin_kotlin.$_$.
|
|
23
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
24
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
21
|
+
var listOf = kotlin_kotlin.$_$.h5;
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.t8;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.hb;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.p7;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.j7;
|
|
26
26
|
var VOID = kotlin_kotlin.$_$.g;
|
|
27
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
28
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
29
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
31
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
32
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
33
|
-
var Char = kotlin_kotlin.$_$.
|
|
34
|
-
var toInt = kotlin_kotlin.$_$.
|
|
35
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
36
|
-
var slice = kotlin_kotlin.$_$.
|
|
37
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
38
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
39
|
-
var contentEquals = kotlin_kotlin.$_$.
|
|
40
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.r7;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.u8;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.m7;
|
|
30
|
+
var numberToDouble = kotlin_kotlin.$_$.l8;
|
|
31
|
+
var roundToInt = kotlin_kotlin.$_$.s8;
|
|
32
|
+
var coerceIn = kotlin_kotlin.$_$.y8;
|
|
33
|
+
var Char = kotlin_kotlin.$_$.mb;
|
|
34
|
+
var toInt = kotlin_kotlin.$_$.fb;
|
|
35
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.j8;
|
|
36
|
+
var slice = kotlin_kotlin.$_$.va;
|
|
37
|
+
var startsWith = kotlin_kotlin.$_$.xa;
|
|
38
|
+
var isInterface = kotlin_kotlin.$_$.e8;
|
|
39
|
+
var contentEquals = kotlin_kotlin.$_$.h4;
|
|
40
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.w8;
|
|
41
|
+
var objectCreate = kotlin_kotlin.$_$.o8;
|
|
42
42
|
//endregion
|
|
43
43
|
//region block: pre-declaration
|
|
44
44
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
45
|
+
return this.u1w().v1w();
|
|
46
46
|
}
|
|
47
47
|
initMetadataForInterface(Color, 'Color');
|
|
48
48
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
62
62
|
function invoke$default(r, g, b, alpha, $super) {
|
|
63
63
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
64
|
-
return $super === VOID ? this.
|
|
64
|
+
return $super === VOID ? this.f1y(r, g, b, alpha) : $super.f1y.call(this, r, g, b, alpha);
|
|
65
65
|
}
|
|
66
66
|
function invoke(r, g, b, alpha) {
|
|
67
|
-
return this.
|
|
67
|
+
return this.f1y(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
68
68
|
}
|
|
69
69
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
70
70
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
71
|
-
return $super === VOID ? this.
|
|
71
|
+
return $super === VOID ? this.k1z(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
72
72
|
}
|
|
73
73
|
function from255(r, g, b, alpha) {
|
|
74
|
-
return this.
|
|
74
|
+
return this.f1y(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
75
75
|
}
|
|
76
76
|
function from255$default(r, g, b, alpha, $super) {
|
|
77
77
|
alpha = alpha === VOID ? 255 : alpha;
|
|
78
|
-
return $super === VOID ? this.
|
|
78
|
+
return $super === VOID ? this.l1z(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
79
79
|
}
|
|
80
80
|
function invoke_0(hex) {
|
|
81
81
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
} else {
|
|
92
92
|
tmp_2 = 255;
|
|
93
93
|
}
|
|
94
|
-
return this.
|
|
94
|
+
return this.l1z(tmp, tmp_0, tmp_1, tmp_2);
|
|
95
95
|
}
|
|
96
96
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
97
97
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -115,28 +115,28 @@
|
|
|
115
115
|
function Color() {
|
|
116
116
|
}
|
|
117
117
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
118
|
+
this.b1x_1 = name;
|
|
119
|
+
this.c1x_1 = isPolar;
|
|
120
|
+
this.d1x_1 = min;
|
|
121
|
+
this.e1x_1 = max;
|
|
122
122
|
// Inline function 'kotlin.require' call
|
|
123
123
|
// Inline function 'kotlin.contracts.contract' call
|
|
124
|
-
if (!(this.
|
|
124
|
+
if (!(this.d1x_1 <= this.e1x_1)) {
|
|
125
125
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
126
126
|
var message = 'min must be less than or equal to max';
|
|
127
127
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
function WhitePoint(name, chromaticity) {
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
131
|
+
this.f1x_1 = name;
|
|
132
|
+
this.g1x_1 = chromaticity;
|
|
133
133
|
}
|
|
134
134
|
protoOf(WhitePoint).toString = function () {
|
|
135
|
-
return this.
|
|
135
|
+
return this.f1x_1;
|
|
136
136
|
};
|
|
137
137
|
protoOf(WhitePoint).hashCode = function () {
|
|
138
|
-
var result = getStringHashCode(this.
|
|
139
|
-
result = imul(result, 31) + this.
|
|
138
|
+
var result = getStringHashCode(this.f1x_1);
|
|
139
|
+
result = imul(result, 31) + this.g1x_1.hashCode() | 0;
|
|
140
140
|
return result;
|
|
141
141
|
};
|
|
142
142
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -145,22 +145,22 @@
|
|
|
145
145
|
if (!(other instanceof WhitePoint))
|
|
146
146
|
return false;
|
|
147
147
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
148
|
-
if (!(this.
|
|
148
|
+
if (!(this.f1x_1 === tmp0_other_with_cast.f1x_1))
|
|
149
149
|
return false;
|
|
150
|
-
if (!this.
|
|
150
|
+
if (!this.g1x_1.equals(tmp0_other_with_cast.g1x_1))
|
|
151
151
|
return false;
|
|
152
152
|
return true;
|
|
153
153
|
};
|
|
154
154
|
function Illuminant() {
|
|
155
155
|
Illuminant_instance = this;
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
156
|
+
this.h1x_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
157
|
+
this.i1x_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
158
|
+
this.j1x_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
159
|
+
this.k1x_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
160
|
+
this.l1x_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
161
|
+
this.m1x_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
162
|
+
this.n1x_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
163
|
+
this.o1x_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
164
164
|
}
|
|
165
165
|
var Illuminant_instance;
|
|
166
166
|
function Illuminant_getInstance() {
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
this_0.e(tmp$ret$0);
|
|
193
193
|
}
|
|
194
194
|
this_0.e(get_alphaInfo());
|
|
195
|
-
return this_0.
|
|
195
|
+
return this_0.h5();
|
|
196
196
|
}
|
|
197
197
|
function polarComponentInfo(name, l, r) {
|
|
198
198
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
this_0.e(tmp$ret$0);
|
|
214
214
|
}
|
|
215
215
|
this_0.e(get_alphaInfo());
|
|
216
|
-
return this_0.
|
|
216
|
+
return this_0.h5();
|
|
217
217
|
}
|
|
218
218
|
function componentInfoList(c) {
|
|
219
219
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -295,22 +295,22 @@
|
|
|
295
295
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
296
296
|
if (!(other instanceof Matrix))
|
|
297
297
|
return false;
|
|
298
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
298
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.p1x_1 : THROW_CCE();
|
|
299
299
|
if (!equals($this, tmp0_other_with_cast))
|
|
300
300
|
return false;
|
|
301
301
|
return true;
|
|
302
302
|
}
|
|
303
303
|
function Matrix(rowMajor) {
|
|
304
|
-
this.
|
|
304
|
+
this.p1x_1 = rowMajor;
|
|
305
305
|
}
|
|
306
306
|
protoOf(Matrix).toString = function () {
|
|
307
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
307
|
+
return Matrix__toString_impl_l0abk0(this.p1x_1);
|
|
308
308
|
};
|
|
309
309
|
protoOf(Matrix).hashCode = function () {
|
|
310
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
310
|
+
return Matrix__hashCode_impl_s9ntm9(this.p1x_1);
|
|
311
311
|
};
|
|
312
312
|
protoOf(Matrix).equals = function (other) {
|
|
313
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
313
|
+
return Matrix__equals_impl_g5p8p9(this.p1x_1, other);
|
|
314
314
|
};
|
|
315
315
|
function inverse(_this__u8e3s4, inPlace) {
|
|
316
316
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -391,10 +391,10 @@
|
|
|
391
391
|
}
|
|
392
392
|
function Companion() {
|
|
393
393
|
Companion_instance = this;
|
|
394
|
-
this.
|
|
394
|
+
this.q1x_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
395
395
|
}
|
|
396
|
-
protoOf(Companion).
|
|
397
|
-
return this.
|
|
396
|
+
protoOf(Companion).r1x = function () {
|
|
397
|
+
return this.q1x_1;
|
|
398
398
|
};
|
|
399
399
|
var Companion_instance;
|
|
400
400
|
function Companion_getInstance() {
|
|
@@ -404,38 +404,38 @@
|
|
|
404
404
|
}
|
|
405
405
|
function Ansi16(code) {
|
|
406
406
|
Companion_getInstance();
|
|
407
|
-
this.
|
|
407
|
+
this.s1x_1 = code;
|
|
408
408
|
}
|
|
409
|
-
protoOf(Ansi16).
|
|
409
|
+
protoOf(Ansi16).t1w = function () {
|
|
410
410
|
return Companion_getInstance();
|
|
411
411
|
};
|
|
412
|
-
protoOf(Ansi16).
|
|
413
|
-
switch (this.
|
|
412
|
+
protoOf(Ansi16).u1w = function () {
|
|
413
|
+
switch (this.s1x_1) {
|
|
414
414
|
case 30:
|
|
415
415
|
case 40:
|
|
416
|
-
return Companion_getInstance_2().
|
|
416
|
+
return Companion_getInstance_2().t1x(0.0, 0.0, 0.0);
|
|
417
417
|
case 90:
|
|
418
418
|
case 100:
|
|
419
|
-
return Companion_getInstance_2().
|
|
419
|
+
return Companion_getInstance_2().u1x(128, 128, 128);
|
|
420
420
|
case 37:
|
|
421
421
|
case 47:
|
|
422
|
-
return Companion_getInstance_2().
|
|
422
|
+
return Companion_getInstance_2().u1x(192, 192, 192);
|
|
423
423
|
case 97:
|
|
424
424
|
case 107:
|
|
425
|
-
return Companion_getInstance_2().
|
|
425
|
+
return Companion_getInstance_2().t1x(1.0, 1.0, 1.0);
|
|
426
426
|
}
|
|
427
|
-
var color = this.
|
|
428
|
-
var mul = this.
|
|
427
|
+
var color = this.s1x_1 % 10 | 0;
|
|
428
|
+
var mul = this.s1x_1 > 50 ? 1.0 : 0.5;
|
|
429
429
|
var r = (color % 2 | 0) * mul;
|
|
430
430
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
431
431
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
432
|
-
return Companion_getInstance_2().
|
|
432
|
+
return Companion_getInstance_2().t1x(r, g, b);
|
|
433
433
|
};
|
|
434
434
|
protoOf(Ansi16).toString = function () {
|
|
435
|
-
return 'Ansi16(code=' + this.
|
|
435
|
+
return 'Ansi16(code=' + this.s1x_1 + ')';
|
|
436
436
|
};
|
|
437
437
|
protoOf(Ansi16).hashCode = function () {
|
|
438
|
-
return this.
|
|
438
|
+
return this.s1x_1;
|
|
439
439
|
};
|
|
440
440
|
protoOf(Ansi16).equals = function (other) {
|
|
441
441
|
if (this === other)
|
|
@@ -443,16 +443,16 @@
|
|
|
443
443
|
if (!(other instanceof Ansi16))
|
|
444
444
|
return false;
|
|
445
445
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
446
|
-
if (!(this.
|
|
446
|
+
if (!(this.s1x_1 === tmp0_other_with_cast.s1x_1))
|
|
447
447
|
return false;
|
|
448
448
|
return true;
|
|
449
449
|
};
|
|
450
450
|
function Companion_0() {
|
|
451
451
|
Companion_instance_0 = this;
|
|
452
|
-
this.
|
|
452
|
+
this.v1x_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
453
453
|
}
|
|
454
|
-
protoOf(Companion_0).
|
|
455
|
-
return this.
|
|
454
|
+
protoOf(Companion_0).r1x = function () {
|
|
455
|
+
return this.v1x_1;
|
|
456
456
|
};
|
|
457
457
|
var Companion_instance_0;
|
|
458
458
|
function Companion_getInstance_0() {
|
|
@@ -462,19 +462,19 @@
|
|
|
462
462
|
}
|
|
463
463
|
function Ansi256(code) {
|
|
464
464
|
Companion_getInstance_0();
|
|
465
|
-
this.
|
|
465
|
+
this.w1x_1 = code;
|
|
466
466
|
}
|
|
467
|
-
protoOf(Ansi256).
|
|
467
|
+
protoOf(Ansi256).t1w = function () {
|
|
468
468
|
return Companion_getInstance_0();
|
|
469
469
|
};
|
|
470
|
-
protoOf(Ansi256).
|
|
471
|
-
if (this.
|
|
472
|
-
return this.
|
|
473
|
-
if (this.
|
|
474
|
-
var c = imul(this.
|
|
475
|
-
return Companion_getInstance_2().
|
|
470
|
+
protoOf(Ansi256).u1w = function () {
|
|
471
|
+
if (this.w1x_1 < 16)
|
|
472
|
+
return this.x1x().u1w();
|
|
473
|
+
if (this.w1x_1 >= 232) {
|
|
474
|
+
var c = imul(this.w1x_1 - 232 | 0, 10) + 8 | 0;
|
|
475
|
+
return Companion_getInstance_2().u1x(c, c, c);
|
|
476
476
|
}
|
|
477
|
-
var c_0 = this.
|
|
477
|
+
var c_0 = this.w1x_1 - 16 | 0;
|
|
478
478
|
var rem = c_0 % 36 | 0;
|
|
479
479
|
// Inline function 'kotlin.math.floor' call
|
|
480
480
|
var x = c_0 / 36.0;
|
|
@@ -483,16 +483,16 @@
|
|
|
483
483
|
var x_0 = rem / 6.0;
|
|
484
484
|
var g = Math.floor(x_0) / 5.0;
|
|
485
485
|
var b = (rem % 6 | 0) / 5.0;
|
|
486
|
-
return Companion_getInstance_2().
|
|
486
|
+
return Companion_getInstance_2().y1x(r, g, b);
|
|
487
487
|
};
|
|
488
|
-
protoOf(Ansi256).
|
|
489
|
-
return this.
|
|
488
|
+
protoOf(Ansi256).x1x = function () {
|
|
489
|
+
return this.w1x_1 < 8 ? new Ansi16(this.w1x_1 + 30 | 0) : this.w1x_1 < 16 ? new Ansi16((this.w1x_1 - 8 | 0) + 90 | 0) : this.u1w().x1x();
|
|
490
490
|
};
|
|
491
491
|
protoOf(Ansi256).toString = function () {
|
|
492
|
-
return 'Ansi256(code=' + this.
|
|
492
|
+
return 'Ansi256(code=' + this.w1x_1 + ')';
|
|
493
493
|
};
|
|
494
494
|
protoOf(Ansi256).hashCode = function () {
|
|
495
|
-
return this.
|
|
495
|
+
return this.w1x_1;
|
|
496
496
|
};
|
|
497
497
|
protoOf(Ansi256).equals = function (other) {
|
|
498
498
|
if (this === other)
|
|
@@ -500,16 +500,16 @@
|
|
|
500
500
|
if (!(other instanceof Ansi256))
|
|
501
501
|
return false;
|
|
502
502
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
503
|
-
if (!(this.
|
|
503
|
+
if (!(this.w1x_1 === tmp0_other_with_cast.w1x_1))
|
|
504
504
|
return false;
|
|
505
505
|
return true;
|
|
506
506
|
};
|
|
507
507
|
function Companion_1() {
|
|
508
508
|
Companion_instance_1 = this;
|
|
509
|
-
this.
|
|
509
|
+
this.z1x_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
510
510
|
}
|
|
511
|
-
protoOf(Companion_1).
|
|
512
|
-
return this.
|
|
511
|
+
protoOf(Companion_1).r1x = function () {
|
|
512
|
+
return this.z1x_1;
|
|
513
513
|
};
|
|
514
514
|
var Companion_instance_1;
|
|
515
515
|
function Companion_getInstance_1() {
|
|
@@ -528,30 +528,30 @@
|
|
|
528
528
|
function HSV(h, s, v, alpha) {
|
|
529
529
|
Companion_getInstance_1();
|
|
530
530
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
531
|
+
this.a1y_1 = h;
|
|
532
|
+
this.b1y_1 = s;
|
|
533
|
+
this.c1y_1 = v;
|
|
534
|
+
this.d1y_1 = alpha;
|
|
535
535
|
}
|
|
536
|
-
protoOf(HSV).
|
|
536
|
+
protoOf(HSV).t1w = function () {
|
|
537
537
|
return Companion_getInstance_1();
|
|
538
538
|
};
|
|
539
|
-
protoOf(HSV).
|
|
540
|
-
if (this.
|
|
541
|
-
return Companion_getInstance_2().
|
|
542
|
-
var v = this.
|
|
543
|
-
var h = normalizeDeg_0(this.
|
|
544
|
-
var s = this.
|
|
545
|
-
return SRGB_getInstance().
|
|
539
|
+
protoOf(HSV).u1w = function () {
|
|
540
|
+
if (this.b1y_1 < 1.0E-7)
|
|
541
|
+
return Companion_getInstance_2().f1y(this.c1y_1, this.c1y_1, this.c1y_1, this.d1y_1);
|
|
542
|
+
var v = this.c1y_1;
|
|
543
|
+
var h = normalizeDeg_0(this.a1y_1) / 60.0;
|
|
544
|
+
var s = this.b1y_1;
|
|
545
|
+
return SRGB_getInstance().f1y(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.d1y_1);
|
|
546
546
|
};
|
|
547
547
|
protoOf(HSV).toString = function () {
|
|
548
|
-
return 'HSV(h=' + this.
|
|
548
|
+
return 'HSV(h=' + this.a1y_1 + ', s=' + this.b1y_1 + ', v=' + this.c1y_1 + ', alpha=' + this.d1y_1 + ')';
|
|
549
549
|
};
|
|
550
550
|
protoOf(HSV).hashCode = function () {
|
|
551
|
-
var result = getNumberHashCode(this.
|
|
552
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
553
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
554
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
551
|
+
var result = getNumberHashCode(this.a1y_1);
|
|
552
|
+
result = imul(result, 31) + getNumberHashCode(this.b1y_1) | 0;
|
|
553
|
+
result = imul(result, 31) + getNumberHashCode(this.c1y_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getNumberHashCode(this.d1y_1) | 0;
|
|
555
555
|
return result;
|
|
556
556
|
};
|
|
557
557
|
protoOf(HSV).equals = function (other) {
|
|
@@ -560,13 +560,13 @@
|
|
|
560
560
|
if (!(other instanceof HSV))
|
|
561
561
|
return false;
|
|
562
562
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
563
|
-
if (!equals(this.
|
|
563
|
+
if (!equals(this.a1y_1, tmp0_other_with_cast.a1y_1))
|
|
564
564
|
return false;
|
|
565
|
-
if (!equals(this.
|
|
565
|
+
if (!equals(this.b1y_1, tmp0_other_with_cast.b1y_1))
|
|
566
566
|
return false;
|
|
567
|
-
if (!equals(this.
|
|
567
|
+
if (!equals(this.c1y_1, tmp0_other_with_cast.c1y_1))
|
|
568
568
|
return false;
|
|
569
|
-
if (!equals(this.
|
|
569
|
+
if (!equals(this.d1y_1, tmp0_other_with_cast.d1y_1))
|
|
570
570
|
return false;
|
|
571
571
|
return true;
|
|
572
572
|
};
|
|
@@ -608,45 +608,45 @@
|
|
|
608
608
|
var ICTCP_LMS_TO_XYZ;
|
|
609
609
|
function ICtCp() {
|
|
610
610
|
}
|
|
611
|
-
protoOf(ICtCp).
|
|
612
|
-
var fo = RGBColorSpaces_getInstance().
|
|
611
|
+
protoOf(ICtCp).l1y = function () {
|
|
612
|
+
var fo = RGBColorSpaces_getInstance().t1y_1.y1y();
|
|
613
613
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
614
614
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
615
|
-
var v0 = this.
|
|
616
|
-
var v1 = this.
|
|
617
|
-
var v2 = this.
|
|
615
|
+
var v0 = this.h1y_1;
|
|
616
|
+
var v1 = this.i1y_1;
|
|
617
|
+
var v2 = this.j1y_1;
|
|
618
618
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
619
619
|
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;
|
|
620
620
|
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;
|
|
621
621
|
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;
|
|
622
622
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
623
623
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
624
|
-
var v0_0 = PqNonlinearity_instance.
|
|
625
|
-
var v1_0 = PqNonlinearity_instance.
|
|
626
|
-
var v2_0 = PqNonlinearity_instance.
|
|
624
|
+
var v0_0 = PqNonlinearity_instance.h1z(l);
|
|
625
|
+
var v1_0 = PqNonlinearity_instance.h1z(m);
|
|
626
|
+
var v2_0 = PqNonlinearity_instance.h1z(s);
|
|
627
627
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
628
628
|
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;
|
|
629
629
|
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;
|
|
630
630
|
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;
|
|
631
|
-
return RGBColorSpaces_getInstance().
|
|
631
|
+
return RGBColorSpaces_getInstance().t1y_1.f1y(fo.i1z(r), fo.i1z(g), fo.i1z(b), this.k1y_1);
|
|
632
632
|
};
|
|
633
633
|
function PqNonlinearity() {
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
642
|
-
}
|
|
643
|
-
protoOf(PqNonlinearity).
|
|
634
|
+
this.z1y_1 = 0.1593017578125;
|
|
635
|
+
this.a1z_1 = 78.84375;
|
|
636
|
+
this.b1z_1 = 0.8359375;
|
|
637
|
+
this.c1z_1 = 18.8515625;
|
|
638
|
+
this.d1z_1 = 18.6875;
|
|
639
|
+
this.e1z_1 = 10000.0;
|
|
640
|
+
this.f1z_1 = 6.277394636015326;
|
|
641
|
+
this.g1z_1 = 0.012683313515655966;
|
|
642
|
+
}
|
|
643
|
+
protoOf(PqNonlinearity).h1z = function (x) {
|
|
644
644
|
var vp = spow(x, 0.012683313515655966);
|
|
645
645
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
646
646
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
647
647
|
return 10000.0 * l;
|
|
648
648
|
};
|
|
649
|
-
protoOf(PqNonlinearity).
|
|
649
|
+
protoOf(PqNonlinearity).i1z = function (x) {
|
|
650
650
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
651
651
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
652
652
|
};
|
|
@@ -669,19 +669,19 @@
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
function GammaTransferFunctions(gamma) {
|
|
672
|
-
this.
|
|
672
|
+
this.j1z_1 = gamma;
|
|
673
673
|
}
|
|
674
|
-
protoOf(GammaTransferFunctions).
|
|
675
|
-
return spow(x, this.
|
|
674
|
+
protoOf(GammaTransferFunctions).h1z = function (x) {
|
|
675
|
+
return spow(x, this.j1z_1);
|
|
676
676
|
};
|
|
677
|
-
protoOf(GammaTransferFunctions).
|
|
678
|
-
return spow(x, 1.0 / this.
|
|
677
|
+
protoOf(GammaTransferFunctions).i1z = function (x) {
|
|
678
|
+
return spow(x, 1.0 / this.j1z_1);
|
|
679
679
|
};
|
|
680
680
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
681
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
681
|
+
return 'GammaTransferFunctions(gamma=' + this.j1z_1 + ')';
|
|
682
682
|
};
|
|
683
683
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
684
|
-
return getNumberHashCode(this.
|
|
684
|
+
return getNumberHashCode(this.j1z_1);
|
|
685
685
|
};
|
|
686
686
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
687
687
|
if (this === other)
|
|
@@ -689,16 +689,16 @@
|
|
|
689
689
|
if (!(other instanceof GammaTransferFunctions))
|
|
690
690
|
return false;
|
|
691
691
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
692
|
-
if (!equals(this.
|
|
692
|
+
if (!equals(this.j1z_1, tmp0_other_with_cast.j1z_1))
|
|
693
693
|
return false;
|
|
694
694
|
return true;
|
|
695
695
|
};
|
|
696
696
|
function LinearTransferFunctions() {
|
|
697
697
|
}
|
|
698
|
-
protoOf(LinearTransferFunctions).
|
|
698
|
+
protoOf(LinearTransferFunctions).h1z = function (x) {
|
|
699
699
|
return x;
|
|
700
700
|
};
|
|
701
|
-
protoOf(LinearTransferFunctions).
|
|
701
|
+
protoOf(LinearTransferFunctions).i1z = function (x) {
|
|
702
702
|
return x;
|
|
703
703
|
};
|
|
704
704
|
var LinearTransferFunctions_instance;
|
|
@@ -709,43 +709,43 @@
|
|
|
709
709
|
}
|
|
710
710
|
function Companion_2() {
|
|
711
711
|
Companion_instance_2 = this;
|
|
712
|
-
this.
|
|
712
|
+
this.e1y_1 = RGBColorSpaces_getInstance().m1y_1;
|
|
713
713
|
}
|
|
714
|
-
protoOf(Companion_2).
|
|
715
|
-
return this.
|
|
714
|
+
protoOf(Companion_2).f1y = function (r, g, b, alpha) {
|
|
715
|
+
return this.e1y_1.f1y(r, g, b, alpha);
|
|
716
716
|
};
|
|
717
|
-
protoOf(Companion_2).
|
|
718
|
-
return this.
|
|
717
|
+
protoOf(Companion_2).k1z = function (r, g, b, alpha) {
|
|
718
|
+
return this.e1y_1.k1z(r, g, b, alpha);
|
|
719
719
|
};
|
|
720
|
-
protoOf(Companion_2).
|
|
721
|
-
return this.
|
|
720
|
+
protoOf(Companion_2).m1z = function (hex) {
|
|
721
|
+
return this.e1y_1.m1z(hex);
|
|
722
722
|
};
|
|
723
|
-
protoOf(Companion_2).
|
|
724
|
-
return this.
|
|
723
|
+
protoOf(Companion_2).l1z = function (r, g, b, alpha) {
|
|
724
|
+
return this.e1y_1.l1z(r, g, b, alpha);
|
|
725
725
|
};
|
|
726
|
-
protoOf(Companion_2).
|
|
727
|
-
return this.
|
|
726
|
+
protoOf(Companion_2).y1y = function () {
|
|
727
|
+
return this.e1y_1.y1y();
|
|
728
728
|
};
|
|
729
|
-
protoOf(Companion_2).
|
|
730
|
-
return this.
|
|
729
|
+
protoOf(Companion_2).n1z = function () {
|
|
730
|
+
return this.e1y_1.n1z();
|
|
731
731
|
};
|
|
732
|
-
protoOf(Companion_2).
|
|
733
|
-
return this.
|
|
732
|
+
protoOf(Companion_2).o1z = function () {
|
|
733
|
+
return this.e1y_1.o1z();
|
|
734
734
|
};
|
|
735
|
-
protoOf(Companion_2).
|
|
736
|
-
return this.
|
|
735
|
+
protoOf(Companion_2).p1z = function () {
|
|
736
|
+
return this.e1y_1.p1z();
|
|
737
737
|
};
|
|
738
|
-
protoOf(Companion_2).
|
|
739
|
-
return this.
|
|
738
|
+
protoOf(Companion_2).y13 = function () {
|
|
739
|
+
return this.e1y_1.y13();
|
|
740
740
|
};
|
|
741
|
-
protoOf(Companion_2).
|
|
742
|
-
return this.
|
|
741
|
+
protoOf(Companion_2).r1x = function () {
|
|
742
|
+
return this.e1y_1.r1x();
|
|
743
743
|
};
|
|
744
744
|
protoOf(Companion_2).equals = function (other) {
|
|
745
|
-
return equals(RGBColorSpaces_getInstance().
|
|
745
|
+
return equals(RGBColorSpaces_getInstance().m1y_1, other);
|
|
746
746
|
};
|
|
747
747
|
protoOf(Companion_2).hashCode = function () {
|
|
748
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
748
|
+
return hashCode(RGBColorSpaces_getInstance().m1y_1);
|
|
749
749
|
};
|
|
750
750
|
var Companion_instance_2;
|
|
751
751
|
function Companion_getInstance_2() {
|
|
@@ -754,47 +754,47 @@
|
|
|
754
754
|
return Companion_instance_2;
|
|
755
755
|
}
|
|
756
756
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
757
|
-
return receiver.
|
|
757
|
+
return receiver.q1z(p0, p1, p2, p3);
|
|
758
758
|
}
|
|
759
759
|
function RGB(r, g, b, alpha, space) {
|
|
760
760
|
Companion_getInstance_2();
|
|
761
|
-
this.
|
|
762
|
-
this.
|
|
763
|
-
this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
761
|
+
this.w1w_1 = r;
|
|
762
|
+
this.x1w_1 = g;
|
|
763
|
+
this.y1w_1 = b;
|
|
764
|
+
this.z1w_1 = alpha;
|
|
765
|
+
this.a1x_1 = space;
|
|
766
766
|
}
|
|
767
|
-
protoOf(RGB).
|
|
768
|
-
return this.
|
|
767
|
+
protoOf(RGB).t1w = function () {
|
|
768
|
+
return this.a1x_1;
|
|
769
769
|
};
|
|
770
|
-
protoOf(RGB).
|
|
770
|
+
protoOf(RGB).r1z = function () {
|
|
771
771
|
// Inline function 'kotlin.math.roundToInt' call
|
|
772
|
-
var this_0 = this.
|
|
772
|
+
var this_0 = this.w1w_1 * 255;
|
|
773
773
|
return roundToInt(this_0);
|
|
774
774
|
};
|
|
775
|
-
protoOf(RGB).
|
|
775
|
+
protoOf(RGB).s1z = function () {
|
|
776
776
|
// Inline function 'kotlin.math.roundToInt' call
|
|
777
|
-
var this_0 = this.
|
|
777
|
+
var this_0 = this.x1w_1 * 255;
|
|
778
778
|
return roundToInt(this_0);
|
|
779
779
|
};
|
|
780
|
-
protoOf(RGB).
|
|
780
|
+
protoOf(RGB).t1z = function () {
|
|
781
781
|
// Inline function 'kotlin.math.roundToInt' call
|
|
782
|
-
var this_0 = this.
|
|
782
|
+
var this_0 = this.y1w_1 * 255;
|
|
783
783
|
return roundToInt(this_0);
|
|
784
784
|
};
|
|
785
|
-
protoOf(RGB).
|
|
786
|
-
var f = SRGB_getInstance().
|
|
787
|
-
return equals(this.
|
|
785
|
+
protoOf(RGB).u1z = function (space) {
|
|
786
|
+
var f = SRGB_getInstance().y1y();
|
|
787
|
+
return equals(this.a1x_1, space) ? this : equals(this.a1x_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().n1y_1) ? space.f1y(f.h1z(this.w1w_1), f.h1z(this.x1w_1), f.h1z(this.y1w_1), this.z1w_1) : equals(this.a1x_1, RGBColorSpaces_getInstance().n1y_1) && equals(space, SRGB_getInstance()) ? space.f1y(f.i1z(this.w1w_1), f.i1z(this.x1w_1), f.i1z(this.y1w_1), this.z1w_1) : this.v1w().a20(space);
|
|
788
788
|
};
|
|
789
|
-
protoOf(RGB).
|
|
789
|
+
protoOf(RGB).b20 = function () {
|
|
790
790
|
var tmp$ret$3;
|
|
791
791
|
$l$block: {
|
|
792
792
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
793
793
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
794
|
-
var $this$toSRGB = this.
|
|
795
|
-
var r = $this$toSRGB.
|
|
796
|
-
var g = $this$toSRGB.
|
|
797
|
-
var b = $this$toSRGB.
|
|
794
|
+
var $this$toSRGB = this.u1z(SRGB_getInstance());
|
|
795
|
+
var r = $this$toSRGB.w1w_1;
|
|
796
|
+
var g = $this$toSRGB.x1w_1;
|
|
797
|
+
var b = $this$toSRGB.y1w_1;
|
|
798
798
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
799
799
|
var min = Math.min(r, g, b);
|
|
800
800
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -804,81 +804,81 @@
|
|
|
804
804
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
805
805
|
var h_0 = normalizeDeg(h);
|
|
806
806
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
807
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
807
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.z1w_1);
|
|
808
808
|
break $l$block;
|
|
809
809
|
}
|
|
810
810
|
return tmp$ret$3;
|
|
811
811
|
};
|
|
812
|
-
protoOf(RGB).
|
|
813
|
-
var f = this.
|
|
812
|
+
protoOf(RGB).v1w = function () {
|
|
813
|
+
var f = this.a1x_1.y1y();
|
|
814
814
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
815
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
816
|
-
var v0 = f.
|
|
817
|
-
var v1 = f.
|
|
818
|
-
var v2 = f.
|
|
815
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.a1x_1.n1z());
|
|
816
|
+
var v0 = f.h1z(this.w1w_1);
|
|
817
|
+
var v1 = f.h1z(this.x1w_1);
|
|
818
|
+
var v2 = f.h1z(this.y1w_1);
|
|
819
819
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
820
820
|
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;
|
|
821
821
|
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;
|
|
822
822
|
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;
|
|
823
|
-
return XYZColorSpace_0(this.
|
|
823
|
+
return XYZColorSpace_0(this.a1x_1.p1z()).f1y(x, y, z, this.z1w_1);
|
|
824
824
|
};
|
|
825
|
-
protoOf(RGB).
|
|
825
|
+
protoOf(RGB).x1x = function () {
|
|
826
826
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
827
|
-
var $this$toSRGB = this.
|
|
827
|
+
var $this$toSRGB = this.u1z(SRGB_getInstance());
|
|
828
828
|
// Inline function 'kotlin.math.roundToInt' call
|
|
829
|
-
var this_0 = $this$toSRGB.
|
|
829
|
+
var this_0 = $this$toSRGB.b20().c1y_1 * 100;
|
|
830
830
|
var value = roundToInt(this_0);
|
|
831
831
|
if (value === 30)
|
|
832
832
|
return new Ansi16(30);
|
|
833
833
|
var v = value / 50 | 0;
|
|
834
834
|
// Inline function 'kotlin.math.roundToInt' call
|
|
835
|
-
var this_1 = $this$toSRGB.
|
|
835
|
+
var this_1 = $this$toSRGB.y1w_1;
|
|
836
836
|
var tmp$ret$1 = roundToInt(this_1);
|
|
837
837
|
var tmp = imul(tmp$ret$1, 4);
|
|
838
838
|
// Inline function 'kotlin.math.roundToInt' call
|
|
839
|
-
var this_2 = $this$toSRGB.
|
|
839
|
+
var this_2 = $this$toSRGB.x1w_1;
|
|
840
840
|
var tmp$ret$2 = roundToInt(this_2);
|
|
841
841
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
842
842
|
// Inline function 'kotlin.math.roundToInt' call
|
|
843
|
-
var this_3 = $this$toSRGB.
|
|
843
|
+
var this_3 = $this$toSRGB.w1w_1;
|
|
844
844
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
845
845
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
846
846
|
};
|
|
847
|
-
protoOf(RGB).
|
|
847
|
+
protoOf(RGB).c20 = function () {
|
|
848
848
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
849
|
-
var $this$toSRGB = this.
|
|
850
|
-
var ri = $this$toSRGB.
|
|
851
|
-
var gi = $this$toSRGB.
|
|
852
|
-
var bi = $this$toSRGB.
|
|
849
|
+
var $this$toSRGB = this.u1z(SRGB_getInstance());
|
|
850
|
+
var ri = $this$toSRGB.r1z();
|
|
851
|
+
var gi = $this$toSRGB.s1z();
|
|
852
|
+
var bi = $this$toSRGB.t1z();
|
|
853
853
|
var tmp;
|
|
854
854
|
if (ri === gi && gi === bi) {
|
|
855
855
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
856
856
|
} else {
|
|
857
857
|
// Inline function 'kotlin.math.roundToInt' call
|
|
858
|
-
var this_0 = $this$toSRGB.
|
|
858
|
+
var this_0 = $this$toSRGB.w1w_1 * 5;
|
|
859
859
|
var tmp$ret$0 = roundToInt(this_0);
|
|
860
860
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
861
861
|
// Inline function 'kotlin.math.roundToInt' call
|
|
862
|
-
var this_1 = $this$toSRGB.
|
|
862
|
+
var this_1 = $this$toSRGB.x1w_1 * 5;
|
|
863
863
|
var tmp$ret$1 = roundToInt(this_1);
|
|
864
864
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
865
865
|
// Inline function 'kotlin.math.roundToInt' call
|
|
866
|
-
var this_2 = $this$toSRGB.
|
|
866
|
+
var this_2 = $this$toSRGB.y1w_1 * 5;
|
|
867
867
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
868
868
|
}
|
|
869
869
|
var code = tmp;
|
|
870
870
|
return new Ansi256(code);
|
|
871
871
|
};
|
|
872
|
-
protoOf(RGB).
|
|
873
|
-
return this.
|
|
872
|
+
protoOf(RGB).u1w = function () {
|
|
873
|
+
return this.u1z(RGBColorSpaces_getInstance().m1y_1);
|
|
874
874
|
};
|
|
875
|
-
protoOf(RGB).
|
|
875
|
+
protoOf(RGB).d20 = function () {
|
|
876
876
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
877
|
-
var v1 = this.
|
|
878
|
-
var v2 = this.
|
|
879
|
-
var v3 = this.
|
|
880
|
-
var alpha = this.
|
|
881
|
-
var _destruct__k2r9zo = this.
|
|
877
|
+
var v1 = this.w1w_1;
|
|
878
|
+
var v2 = this.x1w_1;
|
|
879
|
+
var v3 = this.y1w_1;
|
|
880
|
+
var alpha = this.z1w_1;
|
|
881
|
+
var _destruct__k2r9zo = this.t1w().r1x();
|
|
882
882
|
// Inline function 'kotlin.collections.component1' call
|
|
883
883
|
var c1 = _destruct__k2r9zo.q(0);
|
|
884
884
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -889,16 +889,16 @@
|
|
|
889
889
|
var tmp_0;
|
|
890
890
|
var tmp_1;
|
|
891
891
|
var tmp_2;
|
|
892
|
-
var containsLower = c1.
|
|
893
|
-
if (v1 <= c1.
|
|
894
|
-
var containsLower_0 = c2.
|
|
895
|
-
tmp_2 = v2 <= c2.
|
|
892
|
+
var containsLower = c1.d1x_1;
|
|
893
|
+
if (v1 <= c1.e1x_1 ? containsLower <= v1 : false) {
|
|
894
|
+
var containsLower_0 = c2.d1x_1;
|
|
895
|
+
tmp_2 = v2 <= c2.e1x_1 ? containsLower_0 <= v2 : false;
|
|
896
896
|
} else {
|
|
897
897
|
tmp_2 = false;
|
|
898
898
|
}
|
|
899
899
|
if (tmp_2) {
|
|
900
|
-
var containsLower_1 = c3.
|
|
901
|
-
tmp_1 = v3 <= c3.
|
|
900
|
+
var containsLower_1 = c3.d1x_1;
|
|
901
|
+
tmp_1 = v3 <= c3.e1x_1 ? containsLower_1 <= v3 : false;
|
|
902
902
|
} else {
|
|
903
903
|
tmp_1 = false;
|
|
904
904
|
}
|
|
@@ -910,30 +910,30 @@
|
|
|
910
910
|
if (tmp_0) {
|
|
911
911
|
tmp = this;
|
|
912
912
|
} else {
|
|
913
|
-
tmp = clamp$copy(this, coerceIn(v1, c1.
|
|
913
|
+
tmp = clamp$copy(this, coerceIn(v1, c1.d1x_1, c1.e1x_1), coerceIn(v2, c2.d1x_1, c2.e1x_1), coerceIn(v3, c3.d1x_1, c3.e1x_1), coerceIn(alpha, 0.0, 1.0));
|
|
914
914
|
}
|
|
915
915
|
return tmp;
|
|
916
916
|
};
|
|
917
|
-
protoOf(RGB).
|
|
917
|
+
protoOf(RGB).e20 = function (r, g, b, alpha, space) {
|
|
918
918
|
return new RGB(r, g, b, alpha, space);
|
|
919
919
|
};
|
|
920
|
-
protoOf(RGB).
|
|
921
|
-
r = r === VOID ? this.
|
|
922
|
-
g = g === VOID ? this.
|
|
923
|
-
b = b === VOID ? this.
|
|
924
|
-
alpha = alpha === VOID ? this.
|
|
925
|
-
space = space === VOID ? this.
|
|
926
|
-
return $super === VOID ? this.
|
|
920
|
+
protoOf(RGB).q1z = function (r, g, b, alpha, space, $super) {
|
|
921
|
+
r = r === VOID ? this.w1w_1 : r;
|
|
922
|
+
g = g === VOID ? this.x1w_1 : g;
|
|
923
|
+
b = b === VOID ? this.y1w_1 : b;
|
|
924
|
+
alpha = alpha === VOID ? this.z1w_1 : alpha;
|
|
925
|
+
space = space === VOID ? this.a1x_1 : space;
|
|
926
|
+
return $super === VOID ? this.e20(r, g, b, alpha, space) : $super.e20.call(this, r, g, b, alpha, space);
|
|
927
927
|
};
|
|
928
928
|
protoOf(RGB).toString = function () {
|
|
929
|
-
return 'RGB(r=' + this.
|
|
929
|
+
return 'RGB(r=' + this.w1w_1 + ', g=' + this.x1w_1 + ', b=' + this.y1w_1 + ', alpha=' + this.z1w_1 + ', space=' + toString(this.a1x_1) + ')';
|
|
930
930
|
};
|
|
931
931
|
protoOf(RGB).hashCode = function () {
|
|
932
|
-
var result = getNumberHashCode(this.
|
|
933
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
934
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
935
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
936
|
-
result = imul(result, 31) + hashCode(this.
|
|
932
|
+
var result = getNumberHashCode(this.w1w_1);
|
|
933
|
+
result = imul(result, 31) + getNumberHashCode(this.x1w_1) | 0;
|
|
934
|
+
result = imul(result, 31) + getNumberHashCode(this.y1w_1) | 0;
|
|
935
|
+
result = imul(result, 31) + getNumberHashCode(this.z1w_1) | 0;
|
|
936
|
+
result = imul(result, 31) + hashCode(this.a1x_1) | 0;
|
|
937
937
|
return result;
|
|
938
938
|
};
|
|
939
939
|
protoOf(RGB).equals = function (other) {
|
|
@@ -942,15 +942,15 @@
|
|
|
942
942
|
if (!(other instanceof RGB))
|
|
943
943
|
return false;
|
|
944
944
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
945
|
-
if (!equals(this.
|
|
945
|
+
if (!equals(this.w1w_1, tmp0_other_with_cast.w1w_1))
|
|
946
946
|
return false;
|
|
947
|
-
if (!equals(this.
|
|
947
|
+
if (!equals(this.x1w_1, tmp0_other_with_cast.x1w_1))
|
|
948
948
|
return false;
|
|
949
|
-
if (!equals(this.
|
|
949
|
+
if (!equals(this.y1w_1, tmp0_other_with_cast.y1w_1))
|
|
950
950
|
return false;
|
|
951
|
-
if (!equals(this.
|
|
951
|
+
if (!equals(this.z1w_1, tmp0_other_with_cast.z1w_1))
|
|
952
952
|
return false;
|
|
953
|
-
if (!equals(this.
|
|
953
|
+
if (!equals(this.a1x_1, tmp0_other_with_cast.a1x_1))
|
|
954
954
|
return false;
|
|
955
955
|
return true;
|
|
956
956
|
};
|
|
@@ -1051,17 +1051,17 @@
|
|
|
1051
1051
|
}
|
|
1052
1052
|
var ACES_AP1_B;
|
|
1053
1053
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1054
|
-
return it.
|
|
1054
|
+
return it.u1w();
|
|
1055
1055
|
}
|
|
1056
1056
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1057
1057
|
var tmp;
|
|
1058
1058
|
if (color instanceof RGB) {
|
|
1059
|
-
tmp = color.
|
|
1059
|
+
tmp = color.u1z($this$RGBColorSpaceImpl);
|
|
1060
1060
|
} else {
|
|
1061
1061
|
if (color instanceof ICtCp) {
|
|
1062
|
-
tmp = color.
|
|
1062
|
+
tmp = color.l1y();
|
|
1063
1063
|
} else {
|
|
1064
|
-
tmp = color.
|
|
1064
|
+
tmp = color.v1w().a20($this$RGBColorSpaceImpl);
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
return tmp;
|
|
@@ -1069,29 +1069,29 @@
|
|
|
1069
1069
|
function RGBColorSpaces() {
|
|
1070
1070
|
RGBColorSpaces_instance = this;
|
|
1071
1071
|
var tmp = this;
|
|
1072
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1072
|
+
var tmp_0 = Illuminant_getInstance().m1x_1;
|
|
1073
1073
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1074
1074
|
var tmp_2 = get_SRGB_R();
|
|
1075
1075
|
var tmp_3 = get_SRGB_G();
|
|
1076
1076
|
var tmp_4 = get_SRGB_B();
|
|
1077
|
-
tmp.
|
|
1078
|
-
this.
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1077
|
+
tmp.m1y_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1078
|
+
this.n1y_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().m1x_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1079
|
+
this.o1y_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1080
|
+
this.p1y_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1081
|
+
this.q1y_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1082
|
+
this.r1y_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1083
|
+
this.s1y_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().m1x_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));
|
|
1084
1084
|
var tmp_5 = this;
|
|
1085
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1085
|
+
var tmp_6 = Illuminant_getInstance().m1x_1;
|
|
1086
1086
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1087
1087
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1088
1088
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1089
1089
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1090
|
-
tmp_5.
|
|
1091
|
-
this.
|
|
1092
|
-
this.
|
|
1093
|
-
this.
|
|
1094
|
-
this.
|
|
1090
|
+
tmp_5.t1y_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1091
|
+
this.u1y_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().m1x_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1092
|
+
this.v1y_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));
|
|
1093
|
+
this.w1y_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().m1x_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1094
|
+
this.x1y_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().k1x_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));
|
|
1095
1095
|
}
|
|
1096
1096
|
var RGBColorSpaces_instance;
|
|
1097
1097
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1101,43 +1101,43 @@
|
|
|
1101
1101
|
}
|
|
1102
1102
|
function SRGB() {
|
|
1103
1103
|
SRGB_instance = this;
|
|
1104
|
-
this.
|
|
1104
|
+
this.g1y_1 = RGBColorSpaces_getInstance().m1y_1;
|
|
1105
1105
|
}
|
|
1106
|
-
protoOf(SRGB).
|
|
1107
|
-
return this.
|
|
1106
|
+
protoOf(SRGB).f1y = function (r, g, b, alpha) {
|
|
1107
|
+
return this.g1y_1.f1y(r, g, b, alpha);
|
|
1108
1108
|
};
|
|
1109
|
-
protoOf(SRGB).
|
|
1110
|
-
return this.
|
|
1109
|
+
protoOf(SRGB).k1z = function (r, g, b, alpha) {
|
|
1110
|
+
return this.g1y_1.k1z(r, g, b, alpha);
|
|
1111
1111
|
};
|
|
1112
|
-
protoOf(SRGB).
|
|
1113
|
-
return this.
|
|
1112
|
+
protoOf(SRGB).m1z = function (hex) {
|
|
1113
|
+
return this.g1y_1.m1z(hex);
|
|
1114
1114
|
};
|
|
1115
|
-
protoOf(SRGB).
|
|
1116
|
-
return this.
|
|
1115
|
+
protoOf(SRGB).l1z = function (r, g, b, alpha) {
|
|
1116
|
+
return this.g1y_1.l1z(r, g, b, alpha);
|
|
1117
1117
|
};
|
|
1118
|
-
protoOf(SRGB).
|
|
1119
|
-
return this.
|
|
1118
|
+
protoOf(SRGB).y1y = function () {
|
|
1119
|
+
return this.g1y_1.y1y();
|
|
1120
1120
|
};
|
|
1121
|
-
protoOf(SRGB).
|
|
1122
|
-
return this.
|
|
1121
|
+
protoOf(SRGB).n1z = function () {
|
|
1122
|
+
return this.g1y_1.n1z();
|
|
1123
1123
|
};
|
|
1124
|
-
protoOf(SRGB).
|
|
1125
|
-
return this.
|
|
1124
|
+
protoOf(SRGB).o1z = function () {
|
|
1125
|
+
return this.g1y_1.o1z();
|
|
1126
1126
|
};
|
|
1127
|
-
protoOf(SRGB).
|
|
1128
|
-
return this.
|
|
1127
|
+
protoOf(SRGB).p1z = function () {
|
|
1128
|
+
return this.g1y_1.p1z();
|
|
1129
1129
|
};
|
|
1130
|
-
protoOf(SRGB).
|
|
1131
|
-
return this.
|
|
1130
|
+
protoOf(SRGB).y13 = function () {
|
|
1131
|
+
return this.g1y_1.y13();
|
|
1132
1132
|
};
|
|
1133
|
-
protoOf(SRGB).
|
|
1134
|
-
return this.
|
|
1133
|
+
protoOf(SRGB).r1x = function () {
|
|
1134
|
+
return this.g1y_1.r1x();
|
|
1135
1135
|
};
|
|
1136
1136
|
protoOf(SRGB).equals = function (other) {
|
|
1137
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1137
|
+
return equals(RGBColorSpaces_getInstance().m1y_1, other);
|
|
1138
1138
|
};
|
|
1139
1139
|
protoOf(SRGB).hashCode = function () {
|
|
1140
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1140
|
+
return hashCode(RGBColorSpaces_getInstance().m1y_1);
|
|
1141
1141
|
};
|
|
1142
1142
|
protoOf(SRGB).toString = function () {
|
|
1143
1143
|
return 'sRGB';
|
|
@@ -1149,39 +1149,39 @@
|
|
|
1149
1149
|
return SRGB_instance;
|
|
1150
1150
|
}
|
|
1151
1151
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1154
|
-
this.
|
|
1155
|
-
this.
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1162
|
-
}
|
|
1163
|
-
protoOf(RGBColorSpaceImpl).
|
|
1164
|
-
return this.
|
|
1165
|
-
};
|
|
1166
|
-
protoOf(RGBColorSpaceImpl).x1y = function () {
|
|
1167
|
-
return this.o1z_1;
|
|
1168
|
-
};
|
|
1169
|
-
protoOf(RGBColorSpaceImpl).g1y = function () {
|
|
1170
|
-
return this.p1z_1;
|
|
1171
|
-
};
|
|
1172
|
-
protoOf(RGBColorSpaceImpl).z1w = function () {
|
|
1173
|
-
return this.u1z_1;
|
|
1174
|
-
};
|
|
1175
|
-
protoOf(RGBColorSpaceImpl).v1y = function () {
|
|
1176
|
-
return this.v1z_1;
|
|
1152
|
+
this.f20_1 = name;
|
|
1153
|
+
this.g20_1 = whitePoint;
|
|
1154
|
+
this.h20_1 = transferFunctions;
|
|
1155
|
+
this.i20_1 = r;
|
|
1156
|
+
this.j20_1 = g;
|
|
1157
|
+
this.k20_1 = b;
|
|
1158
|
+
this.l20_1 = convertImpl;
|
|
1159
|
+
this.m20_1 = zeroOneComponentInfo('RGB');
|
|
1160
|
+
this.n20_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.g20_1, this.i20_1, this.j20_1, this.k20_1));
|
|
1161
|
+
this.o20_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.n20_1)));
|
|
1162
|
+
}
|
|
1163
|
+
protoOf(RGBColorSpaceImpl).y13 = function () {
|
|
1164
|
+
return this.f20_1;
|
|
1177
1165
|
};
|
|
1178
|
-
protoOf(RGBColorSpaceImpl).
|
|
1179
|
-
return this.
|
|
1166
|
+
protoOf(RGBColorSpaceImpl).p1z = function () {
|
|
1167
|
+
return this.g20_1;
|
|
1168
|
+
};
|
|
1169
|
+
protoOf(RGBColorSpaceImpl).y1y = function () {
|
|
1170
|
+
return this.h20_1;
|
|
1171
|
+
};
|
|
1172
|
+
protoOf(RGBColorSpaceImpl).r1x = function () {
|
|
1173
|
+
return this.m20_1;
|
|
1174
|
+
};
|
|
1175
|
+
protoOf(RGBColorSpaceImpl).n1z = function () {
|
|
1176
|
+
return this.n20_1;
|
|
1177
|
+
};
|
|
1178
|
+
protoOf(RGBColorSpaceImpl).o1z = function () {
|
|
1179
|
+
return this.o20_1;
|
|
1180
1180
|
};
|
|
1181
1181
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1182
|
-
return this.
|
|
1182
|
+
return this.f20_1;
|
|
1183
1183
|
};
|
|
1184
|
-
protoOf(RGBColorSpaceImpl).
|
|
1184
|
+
protoOf(RGBColorSpaceImpl).f1y = function (r, g, b, alpha) {
|
|
1185
1185
|
return new RGB(r, g, b, alpha, this);
|
|
1186
1186
|
};
|
|
1187
1187
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1189,42 +1189,42 @@
|
|
|
1189
1189
|
return true;
|
|
1190
1190
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1191
1191
|
return false;
|
|
1192
|
-
if (!(this.
|
|
1192
|
+
if (!(this.f20_1 === other.y13()))
|
|
1193
1193
|
return false;
|
|
1194
|
-
if (!this.
|
|
1194
|
+
if (!this.g20_1.equals(other.p1z()))
|
|
1195
1195
|
return false;
|
|
1196
|
-
if (!equals(this.
|
|
1196
|
+
if (!equals(this.h20_1, other.y1y()))
|
|
1197
1197
|
return false;
|
|
1198
1198
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1199
|
-
if (!this.
|
|
1199
|
+
if (!this.i20_1.equals(other.i20_1))
|
|
1200
1200
|
return false;
|
|
1201
|
-
if (!this.
|
|
1201
|
+
if (!this.j20_1.equals(other.j20_1))
|
|
1202
1202
|
return false;
|
|
1203
|
-
if (!this.
|
|
1203
|
+
if (!this.k20_1.equals(other.k20_1))
|
|
1204
1204
|
return false;
|
|
1205
1205
|
} else {
|
|
1206
|
-
if (!contentEquals(this.
|
|
1206
|
+
if (!contentEquals(this.n20_1, other.n1z()))
|
|
1207
1207
|
return false;
|
|
1208
|
-
if (!contentEquals(this.
|
|
1208
|
+
if (!contentEquals(this.o20_1, other.o1z()))
|
|
1209
1209
|
return false;
|
|
1210
1210
|
}
|
|
1211
1211
|
return true;
|
|
1212
1212
|
};
|
|
1213
1213
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1214
|
-
var result = getStringHashCode(this.
|
|
1215
|
-
result = imul(31, result) + this.
|
|
1216
|
-
result = imul(31, result) + hashCode(this.
|
|
1217
|
-
result = imul(31, result) + this.
|
|
1218
|
-
result = imul(31, result) + this.
|
|
1219
|
-
result = imul(31, result) + this.
|
|
1214
|
+
var result = getStringHashCode(this.f20_1);
|
|
1215
|
+
result = imul(31, result) + this.g20_1.hashCode() | 0;
|
|
1216
|
+
result = imul(31, result) + hashCode(this.h20_1) | 0;
|
|
1217
|
+
result = imul(31, result) + this.i20_1.hashCode() | 0;
|
|
1218
|
+
result = imul(31, result) + this.j20_1.hashCode() | 0;
|
|
1219
|
+
result = imul(31, result) + this.k20_1.hashCode() | 0;
|
|
1220
1220
|
return result;
|
|
1221
1221
|
};
|
|
1222
1222
|
function SRGBTransferFunctions() {
|
|
1223
1223
|
}
|
|
1224
|
-
protoOf(SRGBTransferFunctions).
|
|
1224
|
+
protoOf(SRGBTransferFunctions).i1z = function (x) {
|
|
1225
1225
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1226
1226
|
};
|
|
1227
|
-
protoOf(SRGBTransferFunctions).
|
|
1227
|
+
protoOf(SRGBTransferFunctions).h1z = function (x) {
|
|
1228
1228
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1229
1229
|
};
|
|
1230
1230
|
var SRGBTransferFunctions_instance;
|
|
@@ -1237,18 +1237,18 @@
|
|
|
1237
1237
|
}
|
|
1238
1238
|
function ACESccTransferFunctions() {
|
|
1239
1239
|
ACESccTransferFunctions_instance = this;
|
|
1240
|
-
this.
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1240
|
+
this.p20_1 = 3.0517578125E-5;
|
|
1241
|
+
this.q20_1 = 1.52587890625E-5;
|
|
1242
|
+
this.r20_1 = -0.3013698630136986;
|
|
1243
1243
|
var tmp = this;
|
|
1244
1244
|
// Inline function 'kotlin.math.log2' call
|
|
1245
|
-
tmp.
|
|
1245
|
+
tmp.s20_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1246
1246
|
}
|
|
1247
|
-
protoOf(ACESccTransferFunctions).
|
|
1247
|
+
protoOf(ACESccTransferFunctions).h1z = function (x) {
|
|
1248
1248
|
var tmp;
|
|
1249
1249
|
if (x <= -0.3013698630136986) {
|
|
1250
1250
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1251
|
-
} else if (x < this.
|
|
1251
|
+
} else if (x < this.s20_1) {
|
|
1252
1252
|
// Inline function 'kotlin.math.pow' call
|
|
1253
1253
|
var x_0 = x * 17.52 - 9.72;
|
|
1254
1254
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1257,7 +1257,7 @@
|
|
|
1257
1257
|
}
|
|
1258
1258
|
return tmp;
|
|
1259
1259
|
};
|
|
1260
|
-
protoOf(ACESccTransferFunctions).
|
|
1260
|
+
protoOf(ACESccTransferFunctions).i1z = function (x) {
|
|
1261
1261
|
var tmp;
|
|
1262
1262
|
if (x < 3.0517578125E-5) {
|
|
1263
1263
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1277,17 +1277,17 @@
|
|
|
1277
1277
|
}
|
|
1278
1278
|
function ACEScctTransferFunctions() {
|
|
1279
1279
|
ACEScctTransferFunctions_instance = this;
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1280
|
+
this.t20_1 = 10.5402377416545;
|
|
1281
|
+
this.u20_1 = 0.0729055341958355;
|
|
1282
1282
|
var tmp = this;
|
|
1283
1283
|
// Inline function 'kotlin.math.log2' call
|
|
1284
|
-
tmp.
|
|
1284
|
+
tmp.v20_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1285
1285
|
}
|
|
1286
|
-
protoOf(ACEScctTransferFunctions).
|
|
1286
|
+
protoOf(ACEScctTransferFunctions).h1z = function (x) {
|
|
1287
1287
|
var tmp;
|
|
1288
1288
|
if (x <= 0.155251141552511) {
|
|
1289
1289
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1290
|
-
} else if (x < this.
|
|
1290
|
+
} else if (x < this.v20_1) {
|
|
1291
1291
|
// Inline function 'kotlin.math.pow' call
|
|
1292
1292
|
var x_0 = x * 17.52 - 9.72;
|
|
1293
1293
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
return tmp;
|
|
1298
1298
|
};
|
|
1299
|
-
protoOf(ACEScctTransferFunctions).
|
|
1299
|
+
protoOf(ACEScctTransferFunctions).i1z = function (x) {
|
|
1300
1300
|
var tmp;
|
|
1301
1301
|
if (x < 0.0078125) {
|
|
1302
1302
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1314,16 +1314,16 @@
|
|
|
1314
1314
|
}
|
|
1315
1315
|
function BT2020TransferFunctions() {
|
|
1316
1316
|
BT2020TransferFunctions_instance = this;
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1317
|
+
this.w20_1 = 1.0993;
|
|
1318
|
+
this.x20_1 = 0.0181;
|
|
1319
1319
|
var tmp = this;
|
|
1320
1320
|
// Inline function 'kotlin.math.pow' call
|
|
1321
|
-
tmp.
|
|
1321
|
+
tmp.y20_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1322
1322
|
}
|
|
1323
|
-
protoOf(BT2020TransferFunctions).
|
|
1324
|
-
return numberToDouble(x < this.
|
|
1323
|
+
protoOf(BT2020TransferFunctions).h1z = function (x) {
|
|
1324
|
+
return numberToDouble(x < this.y20_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1325
1325
|
};
|
|
1326
|
-
protoOf(BT2020TransferFunctions).
|
|
1326
|
+
protoOf(BT2020TransferFunctions).i1z = function (x) {
|
|
1327
1327
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1328
1328
|
};
|
|
1329
1329
|
var BT2020TransferFunctions_instance;
|
|
@@ -1334,12 +1334,12 @@
|
|
|
1334
1334
|
}
|
|
1335
1335
|
function BT709TransferFunctions() {
|
|
1336
1336
|
BT709TransferFunctions_instance = this;
|
|
1337
|
-
this.
|
|
1337
|
+
this.z20_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1338
1338
|
}
|
|
1339
|
-
protoOf(BT709TransferFunctions).
|
|
1340
|
-
return numberToDouble(x < this.
|
|
1339
|
+
protoOf(BT709TransferFunctions).h1z = function (x) {
|
|
1340
|
+
return numberToDouble(x < this.z20_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1341
1341
|
};
|
|
1342
|
-
protoOf(BT709TransferFunctions).
|
|
1342
|
+
protoOf(BT709TransferFunctions).i1z = function (x) {
|
|
1343
1343
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1344
1344
|
};
|
|
1345
1345
|
var BT709TransferFunctions_instance;
|
|
@@ -1349,12 +1349,12 @@
|
|
|
1349
1349
|
return BT709TransferFunctions_instance;
|
|
1350
1350
|
}
|
|
1351
1351
|
function ROMMTransferFunctions() {
|
|
1352
|
-
this.
|
|
1352
|
+
this.a21_1 = 0.001953;
|
|
1353
1353
|
}
|
|
1354
|
-
protoOf(ROMMTransferFunctions).
|
|
1354
|
+
protoOf(ROMMTransferFunctions).h1z = function (x) {
|
|
1355
1355
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1356
1356
|
};
|
|
1357
|
-
protoOf(ROMMTransferFunctions).
|
|
1357
|
+
protoOf(ROMMTransferFunctions).i1z = function (x) {
|
|
1358
1358
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1359
1359
|
};
|
|
1360
1360
|
var ROMMTransferFunctions_instance;
|
|
@@ -1363,13 +1363,13 @@
|
|
|
1363
1363
|
}
|
|
1364
1364
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1365
1365
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1366
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1367
|
-
var wp = whitePoint.
|
|
1366
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.b21_1, g.b21_1, b.b21_1, r.c21_1, g.c21_1, b.c21_1, r.e21(), g.e21(), b.e21());
|
|
1367
|
+
var wp = whitePoint.g1x_1;
|
|
1368
1368
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1369
1369
|
var this_0 = inverse(primaries);
|
|
1370
|
-
var v0 = wp.
|
|
1371
|
-
var v1 = wp.
|
|
1372
|
-
var v2 = wp.
|
|
1370
|
+
var v0 = wp.f21();
|
|
1371
|
+
var v1 = wp.d21_1;
|
|
1372
|
+
var v2 = wp.g21();
|
|
1373
1373
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1374
1374
|
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;
|
|
1375
1375
|
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;
|
|
@@ -1380,9 +1380,9 @@
|
|
|
1380
1380
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1381
1381
|
var tmp;
|
|
1382
1382
|
if (color instanceof RGB) {
|
|
1383
|
-
tmp = color.
|
|
1383
|
+
tmp = color.u1z($this$RGBColorSpaceImpl);
|
|
1384
1384
|
} else {
|
|
1385
|
-
tmp = color.
|
|
1385
|
+
tmp = color.v1w().a20($this$RGBColorSpaceImpl);
|
|
1386
1386
|
}
|
|
1387
1387
|
return tmp;
|
|
1388
1388
|
}
|
|
@@ -1404,22 +1404,22 @@
|
|
|
1404
1404
|
}
|
|
1405
1405
|
function Companion_3() {
|
|
1406
1406
|
Companion_instance_3 = this;
|
|
1407
|
-
this.
|
|
1407
|
+
this.h21_1 = XYZColorSpaces_getInstance().i21_1;
|
|
1408
1408
|
}
|
|
1409
|
-
protoOf(Companion_3).
|
|
1410
|
-
return this.
|
|
1409
|
+
protoOf(Companion_3).f1y = function (x, y, z, alpha) {
|
|
1410
|
+
return this.h21_1.f1y(x, y, z, alpha);
|
|
1411
1411
|
};
|
|
1412
|
-
protoOf(Companion_3).
|
|
1413
|
-
return this.
|
|
1412
|
+
protoOf(Companion_3).p1z = function () {
|
|
1413
|
+
return this.h21_1.p1z();
|
|
1414
1414
|
};
|
|
1415
|
-
protoOf(Companion_3).
|
|
1416
|
-
return this.
|
|
1415
|
+
protoOf(Companion_3).r1x = function () {
|
|
1416
|
+
return this.h21_1.r1x();
|
|
1417
1417
|
};
|
|
1418
1418
|
protoOf(Companion_3).hashCode = function () {
|
|
1419
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1419
|
+
return hashCode(XYZColorSpaces_getInstance().i21_1);
|
|
1420
1420
|
};
|
|
1421
1421
|
protoOf(Companion_3).equals = function (other) {
|
|
1422
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1422
|
+
return equals(XYZColorSpaces_getInstance().i21_1, other);
|
|
1423
1423
|
};
|
|
1424
1424
|
var Companion_instance_3;
|
|
1425
1425
|
function Companion_getInstance_3() {
|
|
@@ -1428,71 +1428,71 @@
|
|
|
1428
1428
|
return Companion_instance_3;
|
|
1429
1429
|
}
|
|
1430
1430
|
function adaptToM($this, space, m, mi) {
|
|
1431
|
-
if (space.
|
|
1431
|
+
if (space.p1z().equals($this.z1z_1.p1z()))
|
|
1432
1432
|
return $this;
|
|
1433
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1433
|
+
var transform = chromaticAdaptationMatrix(space, $this.z1z_1.p1z().g1x_1, m, mi);
|
|
1434
1434
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1435
|
-
var v0 = $this.
|
|
1436
|
-
var v1 = $this.
|
|
1437
|
-
var v2 = $this.
|
|
1435
|
+
var v0 = $this.v1z_1;
|
|
1436
|
+
var v1 = $this.w1z_1;
|
|
1437
|
+
var v2 = $this.x1z_1;
|
|
1438
1438
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1439
1439
|
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;
|
|
1440
1440
|
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;
|
|
1441
1441
|
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;
|
|
1442
|
-
return space.
|
|
1442
|
+
return space.f1y(xx, yy, zz, $this.y1z_1);
|
|
1443
1443
|
}
|
|
1444
1444
|
function XYZ(x, y, z, alpha, space) {
|
|
1445
1445
|
Companion_getInstance_3();
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1446
|
+
this.v1z_1 = x;
|
|
1447
|
+
this.w1z_1 = y;
|
|
1448
|
+
this.x1z_1 = z;
|
|
1449
|
+
this.y1z_1 = alpha;
|
|
1450
|
+
this.z1z_1 = space;
|
|
1451
1451
|
}
|
|
1452
|
-
protoOf(XYZ).
|
|
1453
|
-
return this.
|
|
1452
|
+
protoOf(XYZ).t1w = function () {
|
|
1453
|
+
return this.z1z_1;
|
|
1454
1454
|
};
|
|
1455
|
-
protoOf(XYZ).
|
|
1455
|
+
protoOf(XYZ).k21 = function (space) {
|
|
1456
1456
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1457
1457
|
};
|
|
1458
|
-
protoOf(XYZ).
|
|
1459
|
-
var _destruct__k2r9zo = this.
|
|
1460
|
-
var x = _destruct__k2r9zo.
|
|
1461
|
-
var y = _destruct__k2r9zo.
|
|
1462
|
-
var z = _destruct__k2r9zo.
|
|
1463
|
-
var f = space.
|
|
1458
|
+
protoOf(XYZ).a20 = function (space) {
|
|
1459
|
+
var _destruct__k2r9zo = this.k21(XYZColorSpace_0(space.p1z()));
|
|
1460
|
+
var x = _destruct__k2r9zo.aa();
|
|
1461
|
+
var y = _destruct__k2r9zo.ba();
|
|
1462
|
+
var z = _destruct__k2r9zo.jh();
|
|
1463
|
+
var f = space.y1y();
|
|
1464
1464
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1465
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1465
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.o1z());
|
|
1466
1466
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1467
1467
|
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;
|
|
1468
1468
|
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;
|
|
1469
1469
|
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;
|
|
1470
|
-
return space.
|
|
1470
|
+
return space.f1y(f.i1z(r), f.i1z(g), f.i1z(b), this.y1z_1);
|
|
1471
1471
|
};
|
|
1472
|
-
protoOf(XYZ).
|
|
1473
|
-
return this.
|
|
1472
|
+
protoOf(XYZ).u1w = function () {
|
|
1473
|
+
return this.a20(RGBColorSpaces_getInstance().m1y_1);
|
|
1474
1474
|
};
|
|
1475
|
-
protoOf(XYZ).
|
|
1475
|
+
protoOf(XYZ).v1w = function () {
|
|
1476
1476
|
return this;
|
|
1477
1477
|
};
|
|
1478
|
-
protoOf(XYZ).
|
|
1479
|
-
return this.
|
|
1478
|
+
protoOf(XYZ).aa = function () {
|
|
1479
|
+
return this.v1z_1;
|
|
1480
1480
|
};
|
|
1481
|
-
protoOf(XYZ).
|
|
1482
|
-
return this.
|
|
1481
|
+
protoOf(XYZ).ba = function () {
|
|
1482
|
+
return this.w1z_1;
|
|
1483
1483
|
};
|
|
1484
|
-
protoOf(XYZ).
|
|
1485
|
-
return this.
|
|
1484
|
+
protoOf(XYZ).jh = function () {
|
|
1485
|
+
return this.x1z_1;
|
|
1486
1486
|
};
|
|
1487
1487
|
protoOf(XYZ).toString = function () {
|
|
1488
|
-
return 'XYZ(x=' + this.
|
|
1488
|
+
return 'XYZ(x=' + this.v1z_1 + ', y=' + this.w1z_1 + ', z=' + this.x1z_1 + ', alpha=' + this.y1z_1 + ', space=' + toString(this.z1z_1) + ')';
|
|
1489
1489
|
};
|
|
1490
1490
|
protoOf(XYZ).hashCode = function () {
|
|
1491
|
-
var result = getNumberHashCode(this.
|
|
1492
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1493
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1494
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1495
|
-
result = imul(result, 31) + hashCode(this.
|
|
1491
|
+
var result = getNumberHashCode(this.v1z_1);
|
|
1492
|
+
result = imul(result, 31) + getNumberHashCode(this.w1z_1) | 0;
|
|
1493
|
+
result = imul(result, 31) + getNumberHashCode(this.x1z_1) | 0;
|
|
1494
|
+
result = imul(result, 31) + getNumberHashCode(this.y1z_1) | 0;
|
|
1495
|
+
result = imul(result, 31) + hashCode(this.z1z_1) | 0;
|
|
1496
1496
|
return result;
|
|
1497
1497
|
};
|
|
1498
1498
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1501,27 +1501,27 @@
|
|
|
1501
1501
|
if (!(other instanceof XYZ))
|
|
1502
1502
|
return false;
|
|
1503
1503
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1504
|
-
if (!equals(this.
|
|
1504
|
+
if (!equals(this.v1z_1, tmp0_other_with_cast.v1z_1))
|
|
1505
1505
|
return false;
|
|
1506
|
-
if (!equals(this.
|
|
1506
|
+
if (!equals(this.w1z_1, tmp0_other_with_cast.w1z_1))
|
|
1507
1507
|
return false;
|
|
1508
|
-
if (!equals(this.
|
|
1508
|
+
if (!equals(this.x1z_1, tmp0_other_with_cast.x1z_1))
|
|
1509
1509
|
return false;
|
|
1510
|
-
if (!equals(this.
|
|
1510
|
+
if (!equals(this.y1z_1, tmp0_other_with_cast.y1z_1))
|
|
1511
1511
|
return false;
|
|
1512
|
-
if (!equals(this.
|
|
1512
|
+
if (!equals(this.z1z_1, tmp0_other_with_cast.z1z_1))
|
|
1513
1513
|
return false;
|
|
1514
1514
|
return true;
|
|
1515
1515
|
};
|
|
1516
1516
|
function XYZColorSpace() {
|
|
1517
1517
|
}
|
|
1518
1518
|
function XYZColorSpace_0(whitePoint) {
|
|
1519
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1519
|
+
return whitePoint.equals(Illuminant_getInstance().m1x_1) ? XYZColorSpaces_getInstance().i21_1 : whitePoint.equals(Illuminant_getInstance().k1x_1) ? XYZColorSpaces_getInstance().j21_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1520
1520
|
}
|
|
1521
1521
|
function XYZColorSpaces() {
|
|
1522
1522
|
XYZColorSpaces_instance = this;
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1523
|
+
this.i21_1 = new XYZColorSpaceImpl(Illuminant_getInstance().m1x_1);
|
|
1524
|
+
this.j21_1 = new XYZColorSpaceImpl(Illuminant_getInstance().k1x_1);
|
|
1525
1525
|
}
|
|
1526
1526
|
var XYZColorSpaces_instance;
|
|
1527
1527
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1532,34 +1532,34 @@
|
|
|
1532
1532
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1533
1533
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1534
1534
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1535
|
-
var dstWp = _this__u8e3s4.
|
|
1536
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1537
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1535
|
+
var dstWp = _this__u8e3s4.p1z().g1x_1;
|
|
1536
|
+
var src = dot_0(xyzToLms, srcWp.f21(), srcWp.d21_1, srcWp.g21());
|
|
1537
|
+
var dst = dot_0(xyzToLms, dstWp.f21(), dstWp.d21_1, dstWp.g21());
|
|
1538
1538
|
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);
|
|
1539
1539
|
}
|
|
1540
1540
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1541
|
-
this.
|
|
1542
|
-
this.
|
|
1541
|
+
this.l21_1 = whitePoint;
|
|
1542
|
+
this.m21_1 = zeroOneComponentInfo('XYZ');
|
|
1543
1543
|
}
|
|
1544
|
-
protoOf(XYZColorSpaceImpl).
|
|
1545
|
-
return this.
|
|
1544
|
+
protoOf(XYZColorSpaceImpl).p1z = function () {
|
|
1545
|
+
return this.l21_1;
|
|
1546
1546
|
};
|
|
1547
|
-
protoOf(XYZColorSpaceImpl).
|
|
1548
|
-
return this.
|
|
1547
|
+
protoOf(XYZColorSpaceImpl).r1x = function () {
|
|
1548
|
+
return this.m21_1;
|
|
1549
1549
|
};
|
|
1550
1550
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1551
|
-
return 'XYZColorSpace(' + this.
|
|
1551
|
+
return 'XYZColorSpace(' + this.l21_1.toString() + ')';
|
|
1552
1552
|
};
|
|
1553
|
-
protoOf(XYZColorSpaceImpl).
|
|
1553
|
+
protoOf(XYZColorSpaceImpl).f1y = function (x, y, z, alpha) {
|
|
1554
1554
|
return new XYZ(x, y, z, alpha, this);
|
|
1555
1555
|
};
|
|
1556
1556
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1557
|
-
return this.
|
|
1557
|
+
return this.l21_1.hashCode();
|
|
1558
1558
|
};
|
|
1559
1559
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1560
1560
|
var tmp;
|
|
1561
1561
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1562
|
-
tmp = this.
|
|
1562
|
+
tmp = this.l21_1.equals(other.p1z());
|
|
1563
1563
|
} else {
|
|
1564
1564
|
tmp = false;
|
|
1565
1565
|
}
|
|
@@ -1575,26 +1575,26 @@
|
|
|
1575
1575
|
}
|
|
1576
1576
|
function xyY(x, y, Y) {
|
|
1577
1577
|
Y = Y === VOID ? 1.0 : Y;
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1578
|
+
this.b21_1 = x;
|
|
1579
|
+
this.c21_1 = y;
|
|
1580
|
+
this.d21_1 = Y;
|
|
1581
1581
|
}
|
|
1582
|
-
protoOf(xyY).
|
|
1583
|
-
return 1 - this.
|
|
1582
|
+
protoOf(xyY).e21 = function () {
|
|
1583
|
+
return 1 - this.b21_1 - this.c21_1;
|
|
1584
1584
|
};
|
|
1585
|
-
protoOf(xyY).
|
|
1586
|
-
return this.
|
|
1585
|
+
protoOf(xyY).f21 = function () {
|
|
1586
|
+
return this.b21_1 * this.d21_1 / this.c21_1;
|
|
1587
1587
|
};
|
|
1588
|
-
protoOf(xyY).
|
|
1589
|
-
return (1 - this.
|
|
1588
|
+
protoOf(xyY).g21 = function () {
|
|
1589
|
+
return (1 - this.b21_1 - this.c21_1) * this.d21_1 / this.c21_1;
|
|
1590
1590
|
};
|
|
1591
1591
|
protoOf(xyY).toString = function () {
|
|
1592
|
-
return 'xyY(x=' + this.
|
|
1592
|
+
return 'xyY(x=' + this.b21_1 + ', y=' + this.c21_1 + ', Y=' + this.d21_1 + ')';
|
|
1593
1593
|
};
|
|
1594
1594
|
protoOf(xyY).hashCode = function () {
|
|
1595
|
-
var result = getNumberHashCode(this.
|
|
1596
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1597
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1595
|
+
var result = getNumberHashCode(this.b21_1);
|
|
1596
|
+
result = imul(result, 31) + getNumberHashCode(this.c21_1) | 0;
|
|
1597
|
+
result = imul(result, 31) + getNumberHashCode(this.d21_1) | 0;
|
|
1598
1598
|
return result;
|
|
1599
1599
|
};
|
|
1600
1600
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1603,30 +1603,30 @@
|
|
|
1603
1603
|
if (!(other instanceof xyY))
|
|
1604
1604
|
return false;
|
|
1605
1605
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1606
|
-
if (!equals(this.
|
|
1606
|
+
if (!equals(this.b21_1, tmp0_other_with_cast.b21_1))
|
|
1607
1607
|
return false;
|
|
1608
|
-
if (!equals(this.
|
|
1608
|
+
if (!equals(this.c21_1, tmp0_other_with_cast.c21_1))
|
|
1609
1609
|
return false;
|
|
1610
|
-
if (!equals(this.
|
|
1610
|
+
if (!equals(this.d21_1, tmp0_other_with_cast.d21_1))
|
|
1611
1611
|
return false;
|
|
1612
1612
|
return true;
|
|
1613
1613
|
};
|
|
1614
1614
|
//region block: post-declaration
|
|
1615
|
-
protoOf(Ansi16).
|
|
1616
|
-
protoOf(Ansi256).
|
|
1617
|
-
protoOf(HSV).
|
|
1618
|
-
protoOf(Companion_2).
|
|
1619
|
-
protoOf(Companion_2).
|
|
1620
|
-
protoOf(Companion_2).
|
|
1621
|
-
protoOf(SRGB).
|
|
1622
|
-
protoOf(SRGB).
|
|
1623
|
-
protoOf(SRGB).
|
|
1624
|
-
protoOf(RGBColorSpaceImpl).
|
|
1625
|
-
protoOf(RGBColorSpaceImpl).
|
|
1626
|
-
protoOf(RGBColorSpaceImpl).
|
|
1627
|
-
protoOf(RGBColorSpaceImpl).
|
|
1628
|
-
protoOf(RGBColorSpaceImpl).
|
|
1629
|
-
protoOf(RGBColorSpaceImpl).
|
|
1615
|
+
protoOf(Ansi16).v1w = toXYZ;
|
|
1616
|
+
protoOf(Ansi256).v1w = toXYZ;
|
|
1617
|
+
protoOf(HSV).v1w = toXYZ;
|
|
1618
|
+
protoOf(Companion_2).t1x = invoke$default;
|
|
1619
|
+
protoOf(Companion_2).y1x = invoke$default_0;
|
|
1620
|
+
protoOf(Companion_2).u1x = from255$default;
|
|
1621
|
+
protoOf(SRGB).t1x = invoke$default;
|
|
1622
|
+
protoOf(SRGB).y1x = invoke$default_0;
|
|
1623
|
+
protoOf(SRGB).u1x = from255$default;
|
|
1624
|
+
protoOf(RGBColorSpaceImpl).t1x = invoke$default;
|
|
1625
|
+
protoOf(RGBColorSpaceImpl).k1z = invoke;
|
|
1626
|
+
protoOf(RGBColorSpaceImpl).y1x = invoke$default_0;
|
|
1627
|
+
protoOf(RGBColorSpaceImpl).m1z = invoke_0;
|
|
1628
|
+
protoOf(RGBColorSpaceImpl).l1z = from255;
|
|
1629
|
+
protoOf(RGBColorSpaceImpl).u1x = from255$default;
|
|
1630
1630
|
//endregion
|
|
1631
1631
|
//region block: init
|
|
1632
1632
|
PqNonlinearity_instance = new PqNonlinearity();
|