git-digger 1.2.21 → 1.2.23
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 +1195 -1195
- package/kotlin/clikt-clikt.js +1226 -1226
- package/kotlin/colormath-root-colormath.js +434 -434
- package/kotlin/kotlin-kotlin-stdlib.js +487 -573
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +871 -871
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +302 -302
- package/kotlin/markdown.js +1905 -1905
- package/kotlin/mordant-mordant.js +1636 -1636
- package/kotlin/tools-digger-cli.js +71 -71
- package/kotlin/tools-digger-core.js +226 -680
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +102 -102
- package/kotlin/tools-digger-model.js +54 -54
- 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 interfaceMeta = kotlin_kotlin.$_$.
|
|
8
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
9
|
-
var toString = kotlin_kotlin.$_$.
|
|
10
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
11
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
12
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.x8;
|
|
7
|
+
var interfaceMeta = kotlin_kotlin.$_$.c8;
|
|
8
|
+
var setMetadataFor = kotlin_kotlin.$_$.y8;
|
|
9
|
+
var toString = kotlin_kotlin.$_$.a9;
|
|
10
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
11
|
+
var classMeta = kotlin_kotlin.$_$.t7;
|
|
12
|
+
var getStringHashCode = kotlin_kotlin.$_$.a8;
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.ic;
|
|
14
|
+
var objectMeta = kotlin_kotlin.$_$.w8;
|
|
15
15
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
16
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
17
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
18
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
19
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
20
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
16
|
+
var charSequenceLength = kotlin_kotlin.$_$.r7;
|
|
17
|
+
var charSequenceGet = kotlin_kotlin.$_$.q7;
|
|
18
|
+
var toString_0 = kotlin_kotlin.$_$.v1;
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.k3;
|
|
20
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
21
21
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
22
|
-
var listOf = kotlin_kotlin.$_$.
|
|
23
|
-
var withSign = kotlin_kotlin.$_$.
|
|
22
|
+
var listOf = kotlin_kotlin.$_$.s5;
|
|
23
|
+
var withSign = kotlin_kotlin.$_$.c9;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.g;
|
|
25
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
26
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
27
|
-
var equals = kotlin_kotlin.$_$.
|
|
28
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
29
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
31
|
-
var DoubleCompanionObject_instance = 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.$_$.
|
|
25
|
+
var coerceAtLeast = kotlin_kotlin.$_$.e9;
|
|
26
|
+
var getNumberHashCode = kotlin_kotlin.$_$.y7;
|
|
27
|
+
var equals = kotlin_kotlin.$_$.v7;
|
|
28
|
+
var numberToDouble = kotlin_kotlin.$_$.s8;
|
|
29
|
+
var hashCode = kotlin_kotlin.$_$.b8;
|
|
30
|
+
var roundToInt = kotlin_kotlin.$_$.b9;
|
|
31
|
+
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.w2;
|
|
32
|
+
var coerceIn = kotlin_kotlin.$_$.i9;
|
|
33
|
+
var Char = kotlin_kotlin.$_$.wb;
|
|
34
|
+
var toInt = kotlin_kotlin.$_$.pb;
|
|
35
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.q8;
|
|
36
|
+
var slice = kotlin_kotlin.$_$.eb;
|
|
37
|
+
var startsWith = kotlin_kotlin.$_$.hb;
|
|
38
|
+
var isInterface = kotlin_kotlin.$_$.l8;
|
|
39
|
+
var contentEquals = kotlin_kotlin.$_$.k4;
|
|
40
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.g9;
|
|
41
|
+
var objectCreate = kotlin_kotlin.$_$.v8;
|
|
42
42
|
//endregion
|
|
43
43
|
//region block: pre-declaration
|
|
44
44
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
45
|
+
return this.j1c().k1c();
|
|
46
46
|
}
|
|
47
47
|
setMetadataFor(Color, 'Color', interfaceMeta);
|
|
48
48
|
setMetadataFor(ColorComponentInfo, 'ColorComponentInfo', classMeta);
|
|
@@ -60,21 +60,21 @@
|
|
|
60
60
|
setMetadataFor(LinearTransferFunctions, 'LinearTransferFunctions', objectMeta);
|
|
61
61
|
function invoke$default(r, g, b, alpha, $super) {
|
|
62
62
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
63
|
-
return $super === VOID ? this.
|
|
63
|
+
return $super === VOID ? this.t1d(r, g, b, alpha) : $super.t1d.call(this, r, g, b, alpha);
|
|
64
64
|
}
|
|
65
65
|
function invoke(r, g, b, alpha) {
|
|
66
|
-
return this.
|
|
66
|
+
return this.t1d(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
67
67
|
}
|
|
68
68
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
69
69
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
70
|
-
return $super === VOID ? this.
|
|
70
|
+
return $super === VOID ? this.y1e(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
71
71
|
}
|
|
72
72
|
function from255(r, g, b, alpha) {
|
|
73
|
-
return this.
|
|
73
|
+
return this.t1d(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
74
74
|
}
|
|
75
75
|
function from255$default(r, g, b, alpha, $super) {
|
|
76
76
|
alpha = alpha === VOID ? 255 : alpha;
|
|
77
|
-
return $super === VOID ? this.
|
|
77
|
+
return $super === VOID ? this.z1e(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
78
78
|
}
|
|
79
79
|
function invoke_0(hex) {
|
|
80
80
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
} else {
|
|
91
91
|
tmp_2 = 255;
|
|
92
92
|
}
|
|
93
|
-
return this.
|
|
93
|
+
return this.z1e(tmp, tmp_0, tmp_1, tmp_2);
|
|
94
94
|
}
|
|
95
95
|
setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta);
|
|
96
96
|
setMetadataFor(Companion_2, 'Companion', objectMeta, VOID, [RGBColorSpace]);
|
|
@@ -114,28 +114,28 @@
|
|
|
114
114
|
function Color() {
|
|
115
115
|
}
|
|
116
116
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
117
|
+
this.q1c_1 = name;
|
|
118
|
+
this.r1c_1 = isPolar;
|
|
119
|
+
this.s1c_1 = min;
|
|
120
|
+
this.t1c_1 = max;
|
|
121
121
|
// Inline function 'kotlin.require' call
|
|
122
122
|
// Inline function 'kotlin.contracts.contract' call
|
|
123
|
-
if (!(this.
|
|
123
|
+
if (!(this.s1c_1 <= this.t1c_1)) {
|
|
124
124
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
125
125
|
var message = 'min must be less than or equal to max';
|
|
126
126
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function WhitePoint(name, chromaticity) {
|
|
130
|
-
this.
|
|
131
|
-
this.
|
|
130
|
+
this.u1c_1 = name;
|
|
131
|
+
this.v1c_1 = chromaticity;
|
|
132
132
|
}
|
|
133
133
|
protoOf(WhitePoint).toString = function () {
|
|
134
|
-
return this.
|
|
134
|
+
return this.u1c_1;
|
|
135
135
|
};
|
|
136
136
|
protoOf(WhitePoint).hashCode = function () {
|
|
137
|
-
var result = getStringHashCode(this.
|
|
138
|
-
result = imul(result, 31) + this.
|
|
137
|
+
var result = getStringHashCode(this.u1c_1);
|
|
138
|
+
result = imul(result, 31) + this.v1c_1.hashCode() | 0;
|
|
139
139
|
return result;
|
|
140
140
|
};
|
|
141
141
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -144,22 +144,22 @@
|
|
|
144
144
|
if (!(other instanceof WhitePoint))
|
|
145
145
|
return false;
|
|
146
146
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
147
|
-
if (!(this.
|
|
147
|
+
if (!(this.u1c_1 === tmp0_other_with_cast.u1c_1))
|
|
148
148
|
return false;
|
|
149
|
-
if (!this.
|
|
149
|
+
if (!this.v1c_1.equals(tmp0_other_with_cast.v1c_1))
|
|
150
150
|
return false;
|
|
151
151
|
return true;
|
|
152
152
|
};
|
|
153
153
|
function Illuminant() {
|
|
154
154
|
Illuminant_instance = this;
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
155
|
+
this.w1c_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
156
|
+
this.x1c_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
157
|
+
this.y1c_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
158
|
+
this.z1c_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
159
|
+
this.a1d_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
160
|
+
this.b1d_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
161
|
+
this.c1d_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
162
|
+
this.d1d_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333));
|
|
163
163
|
}
|
|
164
164
|
var Illuminant_instance;
|
|
165
165
|
function Illuminant_getInstance() {
|
|
@@ -361,10 +361,10 @@
|
|
|
361
361
|
}
|
|
362
362
|
function Companion() {
|
|
363
363
|
Companion_instance = this;
|
|
364
|
-
this.
|
|
364
|
+
this.e1d_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
365
365
|
}
|
|
366
|
-
protoOf(Companion).
|
|
367
|
-
return this.
|
|
366
|
+
protoOf(Companion).f1d = function () {
|
|
367
|
+
return this.e1d_1;
|
|
368
368
|
};
|
|
369
369
|
var Companion_instance;
|
|
370
370
|
function Companion_getInstance() {
|
|
@@ -374,38 +374,38 @@
|
|
|
374
374
|
}
|
|
375
375
|
function Ansi16(code) {
|
|
376
376
|
Companion_getInstance();
|
|
377
|
-
this.
|
|
377
|
+
this.g1d_1 = code;
|
|
378
378
|
}
|
|
379
|
-
protoOf(Ansi16).
|
|
379
|
+
protoOf(Ansi16).i1c = function () {
|
|
380
380
|
return Companion_getInstance();
|
|
381
381
|
};
|
|
382
|
-
protoOf(Ansi16).
|
|
383
|
-
switch (this.
|
|
382
|
+
protoOf(Ansi16).j1c = function () {
|
|
383
|
+
switch (this.g1d_1) {
|
|
384
384
|
case 30:
|
|
385
385
|
case 40:
|
|
386
|
-
return Companion_getInstance_2().
|
|
386
|
+
return Companion_getInstance_2().h1d(0.0, 0.0, 0.0);
|
|
387
387
|
case 90:
|
|
388
388
|
case 100:
|
|
389
|
-
return Companion_getInstance_2().
|
|
389
|
+
return Companion_getInstance_2().i1d(128, 128, 128);
|
|
390
390
|
case 37:
|
|
391
391
|
case 47:
|
|
392
|
-
return Companion_getInstance_2().
|
|
392
|
+
return Companion_getInstance_2().i1d(192, 192, 192);
|
|
393
393
|
case 97:
|
|
394
394
|
case 107:
|
|
395
|
-
return Companion_getInstance_2().
|
|
395
|
+
return Companion_getInstance_2().h1d(1.0, 1.0, 1.0);
|
|
396
396
|
}
|
|
397
|
-
var color = this.
|
|
398
|
-
var mul = this.
|
|
397
|
+
var color = this.g1d_1 % 10 | 0;
|
|
398
|
+
var mul = this.g1d_1 > 50 ? 1.0 : 0.5;
|
|
399
399
|
var r = (color % 2 | 0) * mul;
|
|
400
400
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
401
401
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
402
|
-
return Companion_getInstance_2().
|
|
402
|
+
return Companion_getInstance_2().h1d(r, g, b);
|
|
403
403
|
};
|
|
404
404
|
protoOf(Ansi16).toString = function () {
|
|
405
|
-
return 'Ansi16(code=' + this.
|
|
405
|
+
return 'Ansi16(code=' + this.g1d_1 + ')';
|
|
406
406
|
};
|
|
407
407
|
protoOf(Ansi16).hashCode = function () {
|
|
408
|
-
return this.
|
|
408
|
+
return this.g1d_1;
|
|
409
409
|
};
|
|
410
410
|
protoOf(Ansi16).equals = function (other) {
|
|
411
411
|
if (this === other)
|
|
@@ -413,16 +413,16 @@
|
|
|
413
413
|
if (!(other instanceof Ansi16))
|
|
414
414
|
return false;
|
|
415
415
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
416
|
-
if (!(this.
|
|
416
|
+
if (!(this.g1d_1 === tmp0_other_with_cast.g1d_1))
|
|
417
417
|
return false;
|
|
418
418
|
return true;
|
|
419
419
|
};
|
|
420
420
|
function Companion_0() {
|
|
421
421
|
Companion_instance_0 = this;
|
|
422
|
-
this.
|
|
422
|
+
this.j1d_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
423
423
|
}
|
|
424
|
-
protoOf(Companion_0).
|
|
425
|
-
return this.
|
|
424
|
+
protoOf(Companion_0).f1d = function () {
|
|
425
|
+
return this.j1d_1;
|
|
426
426
|
};
|
|
427
427
|
var Companion_instance_0;
|
|
428
428
|
function Companion_getInstance_0() {
|
|
@@ -432,19 +432,19 @@
|
|
|
432
432
|
}
|
|
433
433
|
function Ansi256(code) {
|
|
434
434
|
Companion_getInstance_0();
|
|
435
|
-
this.
|
|
435
|
+
this.k1d_1 = code;
|
|
436
436
|
}
|
|
437
|
-
protoOf(Ansi256).
|
|
437
|
+
protoOf(Ansi256).i1c = function () {
|
|
438
438
|
return Companion_getInstance_0();
|
|
439
439
|
};
|
|
440
|
-
protoOf(Ansi256).
|
|
441
|
-
if (this.
|
|
442
|
-
return this.
|
|
443
|
-
if (this.
|
|
444
|
-
var c = imul(this.
|
|
445
|
-
return Companion_getInstance_2().
|
|
440
|
+
protoOf(Ansi256).j1c = function () {
|
|
441
|
+
if (this.k1d_1 < 16)
|
|
442
|
+
return this.l1d().j1c();
|
|
443
|
+
if (this.k1d_1 >= 232) {
|
|
444
|
+
var c = imul(this.k1d_1 - 232 | 0, 10) + 8 | 0;
|
|
445
|
+
return Companion_getInstance_2().i1d(c, c, c);
|
|
446
446
|
}
|
|
447
|
-
var c_0 = this.
|
|
447
|
+
var c_0 = this.k1d_1 - 16 | 0;
|
|
448
448
|
var rem = c_0 % 36 | 0;
|
|
449
449
|
// Inline function 'kotlin.math.floor' call
|
|
450
450
|
var x = c_0 / 36.0;
|
|
@@ -453,16 +453,16 @@
|
|
|
453
453
|
var x_0 = rem / 6.0;
|
|
454
454
|
var g = Math.floor(x_0) / 5.0;
|
|
455
455
|
var b = (rem % 6 | 0) / 5.0;
|
|
456
|
-
return Companion_getInstance_2().
|
|
456
|
+
return Companion_getInstance_2().m1d(r, g, b);
|
|
457
457
|
};
|
|
458
|
-
protoOf(Ansi256).
|
|
459
|
-
return this.
|
|
458
|
+
protoOf(Ansi256).l1d = function () {
|
|
459
|
+
return this.k1d_1 < 8 ? new Ansi16(this.k1d_1 + 30 | 0) : this.k1d_1 < 16 ? new Ansi16((this.k1d_1 - 8 | 0) + 90 | 0) : this.j1c().l1d();
|
|
460
460
|
};
|
|
461
461
|
protoOf(Ansi256).toString = function () {
|
|
462
|
-
return 'Ansi256(code=' + this.
|
|
462
|
+
return 'Ansi256(code=' + this.k1d_1 + ')';
|
|
463
463
|
};
|
|
464
464
|
protoOf(Ansi256).hashCode = function () {
|
|
465
|
-
return this.
|
|
465
|
+
return this.k1d_1;
|
|
466
466
|
};
|
|
467
467
|
protoOf(Ansi256).equals = function (other) {
|
|
468
468
|
if (this === other)
|
|
@@ -470,16 +470,16 @@
|
|
|
470
470
|
if (!(other instanceof Ansi256))
|
|
471
471
|
return false;
|
|
472
472
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
473
|
-
if (!(this.
|
|
473
|
+
if (!(this.k1d_1 === tmp0_other_with_cast.k1d_1))
|
|
474
474
|
return false;
|
|
475
475
|
return true;
|
|
476
476
|
};
|
|
477
477
|
function Companion_1() {
|
|
478
478
|
Companion_instance_1 = this;
|
|
479
|
-
this.
|
|
479
|
+
this.n1d_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
480
480
|
}
|
|
481
|
-
protoOf(Companion_1).
|
|
482
|
-
return this.
|
|
481
|
+
protoOf(Companion_1).f1d = function () {
|
|
482
|
+
return this.n1d_1;
|
|
483
483
|
};
|
|
484
484
|
var Companion_instance_1;
|
|
485
485
|
function Companion_getInstance_1() {
|
|
@@ -498,30 +498,30 @@
|
|
|
498
498
|
function HSV(h, s, v, alpha) {
|
|
499
499
|
Companion_getInstance_1();
|
|
500
500
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
501
|
-
this.
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
501
|
+
this.o1d_1 = h;
|
|
502
|
+
this.p1d_1 = s;
|
|
503
|
+
this.q1d_1 = v;
|
|
504
|
+
this.r1d_1 = alpha;
|
|
505
505
|
}
|
|
506
|
-
protoOf(HSV).
|
|
506
|
+
protoOf(HSV).i1c = function () {
|
|
507
507
|
return Companion_getInstance_1();
|
|
508
508
|
};
|
|
509
|
-
protoOf(HSV).
|
|
510
|
-
if (this.
|
|
511
|
-
return Companion_getInstance_2().
|
|
512
|
-
var v = this.
|
|
513
|
-
var h = normalizeDeg_0(this.
|
|
514
|
-
var s = this.
|
|
515
|
-
return SRGB_getInstance().
|
|
509
|
+
protoOf(HSV).j1c = function () {
|
|
510
|
+
if (this.p1d_1 < 1.0E-7)
|
|
511
|
+
return Companion_getInstance_2().t1d(this.q1d_1, this.q1d_1, this.q1d_1, this.r1d_1);
|
|
512
|
+
var v = this.q1d_1;
|
|
513
|
+
var h = normalizeDeg_0(this.o1d_1) / 60.0;
|
|
514
|
+
var s = this.p1d_1;
|
|
515
|
+
return SRGB_getInstance().t1d(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.r1d_1);
|
|
516
516
|
};
|
|
517
517
|
protoOf(HSV).toString = function () {
|
|
518
|
-
return 'HSV(h=' + this.
|
|
518
|
+
return 'HSV(h=' + this.o1d_1 + ', s=' + this.p1d_1 + ', v=' + this.q1d_1 + ', alpha=' + this.r1d_1 + ')';
|
|
519
519
|
};
|
|
520
520
|
protoOf(HSV).hashCode = function () {
|
|
521
|
-
var result = getNumberHashCode(this.
|
|
521
|
+
var result = getNumberHashCode(this.o1d_1);
|
|
522
|
+
result = imul(result, 31) + getNumberHashCode(this.p1d_1) | 0;
|
|
522
523
|
result = imul(result, 31) + getNumberHashCode(this.q1d_1) | 0;
|
|
523
524
|
result = imul(result, 31) + getNumberHashCode(this.r1d_1) | 0;
|
|
524
|
-
result = imul(result, 31) + getNumberHashCode(this.s1d_1) | 0;
|
|
525
525
|
return result;
|
|
526
526
|
};
|
|
527
527
|
protoOf(HSV).equals = function (other) {
|
|
@@ -530,14 +530,14 @@
|
|
|
530
530
|
if (!(other instanceof HSV))
|
|
531
531
|
return false;
|
|
532
532
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
533
|
+
if (!equals(this.o1d_1, tmp0_other_with_cast.o1d_1))
|
|
534
|
+
return false;
|
|
533
535
|
if (!equals(this.p1d_1, tmp0_other_with_cast.p1d_1))
|
|
534
536
|
return false;
|
|
535
537
|
if (!equals(this.q1d_1, tmp0_other_with_cast.q1d_1))
|
|
536
538
|
return false;
|
|
537
539
|
if (!equals(this.r1d_1, tmp0_other_with_cast.r1d_1))
|
|
538
540
|
return false;
|
|
539
|
-
if (!equals(this.s1d_1, tmp0_other_with_cast.s1d_1))
|
|
540
|
-
return false;
|
|
541
541
|
return true;
|
|
542
542
|
};
|
|
543
543
|
function get_ICTCP_RGB_TO_LMS() {
|
|
@@ -578,45 +578,45 @@
|
|
|
578
578
|
var ICTCP_LMS_TO_XYZ;
|
|
579
579
|
function ICtCp() {
|
|
580
580
|
}
|
|
581
|
-
protoOf(ICtCp).
|
|
582
|
-
var fo = RGBColorSpaces_getInstance().
|
|
581
|
+
protoOf(ICtCp).z1d = function () {
|
|
582
|
+
var fo = RGBColorSpaces_getInstance().h1e_1.m1e();
|
|
583
583
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
584
584
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
585
|
-
var v0 = this.
|
|
586
|
-
var v1 = this.
|
|
587
|
-
var v2 = this.
|
|
585
|
+
var v0 = this.v1d_1;
|
|
586
|
+
var v1 = this.w1d_1;
|
|
587
|
+
var v2 = this.x1d_1;
|
|
588
588
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
589
589
|
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;
|
|
590
590
|
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;
|
|
591
591
|
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;
|
|
592
592
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
593
593
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
594
|
-
var v0_0 = PqNonlinearity_instance.
|
|
595
|
-
var v1_0 = PqNonlinearity_instance.
|
|
596
|
-
var v2_0 = PqNonlinearity_instance.
|
|
594
|
+
var v0_0 = PqNonlinearity_instance.v1e(l);
|
|
595
|
+
var v1_0 = PqNonlinearity_instance.v1e(m);
|
|
596
|
+
var v2_0 = PqNonlinearity_instance.v1e(s);
|
|
597
597
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
598
598
|
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;
|
|
599
599
|
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;
|
|
600
600
|
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;
|
|
601
|
-
return RGBColorSpaces_getInstance().
|
|
601
|
+
return RGBColorSpaces_getInstance().h1e_1.t1d(fo.w1e(r), fo.w1e(g), fo.w1e(b), this.y1d_1);
|
|
602
602
|
};
|
|
603
603
|
function PqNonlinearity() {
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
}
|
|
613
|
-
protoOf(PqNonlinearity).
|
|
604
|
+
this.n1e_1 = 0.1593017578125;
|
|
605
|
+
this.o1e_1 = 78.84375;
|
|
606
|
+
this.p1e_1 = 0.8359375;
|
|
607
|
+
this.q1e_1 = 18.8515625;
|
|
608
|
+
this.r1e_1 = 18.6875;
|
|
609
|
+
this.s1e_1 = 10000.0;
|
|
610
|
+
this.t1e_1 = 6.277394636015326;
|
|
611
|
+
this.u1e_1 = 0.012683313515655966;
|
|
612
|
+
}
|
|
613
|
+
protoOf(PqNonlinearity).v1e = function (x) {
|
|
614
614
|
var vp = spow(x, 0.012683313515655966);
|
|
615
615
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
616
616
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
617
617
|
return 10000.0 * l;
|
|
618
618
|
};
|
|
619
|
-
protoOf(PqNonlinearity).
|
|
619
|
+
protoOf(PqNonlinearity).w1e = function (x) {
|
|
620
620
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
621
621
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
622
622
|
};
|
|
@@ -639,19 +639,19 @@
|
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
function GammaTransferFunctions(gamma) {
|
|
642
|
-
this.
|
|
642
|
+
this.x1e_1 = gamma;
|
|
643
643
|
}
|
|
644
|
-
protoOf(GammaTransferFunctions).
|
|
645
|
-
return spow(x, this.
|
|
644
|
+
protoOf(GammaTransferFunctions).v1e = function (x) {
|
|
645
|
+
return spow(x, this.x1e_1);
|
|
646
646
|
};
|
|
647
|
-
protoOf(GammaTransferFunctions).
|
|
648
|
-
return spow(x, 1.0 / this.
|
|
647
|
+
protoOf(GammaTransferFunctions).w1e = function (x) {
|
|
648
|
+
return spow(x, 1.0 / this.x1e_1);
|
|
649
649
|
};
|
|
650
650
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
651
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
651
|
+
return 'GammaTransferFunctions(gamma=' + this.x1e_1 + ')';
|
|
652
652
|
};
|
|
653
653
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
654
|
-
return getNumberHashCode(this.
|
|
654
|
+
return getNumberHashCode(this.x1e_1);
|
|
655
655
|
};
|
|
656
656
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
657
657
|
if (this === other)
|
|
@@ -659,16 +659,16 @@
|
|
|
659
659
|
if (!(other instanceof GammaTransferFunctions))
|
|
660
660
|
return false;
|
|
661
661
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
662
|
-
if (!equals(this.
|
|
662
|
+
if (!equals(this.x1e_1, tmp0_other_with_cast.x1e_1))
|
|
663
663
|
return false;
|
|
664
664
|
return true;
|
|
665
665
|
};
|
|
666
666
|
function LinearTransferFunctions() {
|
|
667
667
|
}
|
|
668
|
-
protoOf(LinearTransferFunctions).
|
|
668
|
+
protoOf(LinearTransferFunctions).v1e = function (x) {
|
|
669
669
|
return x;
|
|
670
670
|
};
|
|
671
|
-
protoOf(LinearTransferFunctions).
|
|
671
|
+
protoOf(LinearTransferFunctions).w1e = function (x) {
|
|
672
672
|
return x;
|
|
673
673
|
};
|
|
674
674
|
var LinearTransferFunctions_instance;
|
|
@@ -679,43 +679,43 @@
|
|
|
679
679
|
}
|
|
680
680
|
function Companion_2() {
|
|
681
681
|
Companion_instance_2 = this;
|
|
682
|
-
this.
|
|
682
|
+
this.s1d_1 = RGBColorSpaces_getInstance().a1e_1;
|
|
683
683
|
}
|
|
684
|
-
protoOf(Companion_2).
|
|
685
|
-
return this.
|
|
686
|
-
};
|
|
687
|
-
protoOf(Companion_2).d1f = function () {
|
|
688
|
-
return this.t1d_1.d1f();
|
|
684
|
+
protoOf(Companion_2).f1d = function () {
|
|
685
|
+
return this.s1d_1.f1d();
|
|
689
686
|
};
|
|
690
687
|
protoOf(Companion_2).c1f = function () {
|
|
691
|
-
return this.
|
|
688
|
+
return this.s1d_1.c1f();
|
|
692
689
|
};
|
|
693
|
-
protoOf(Companion_2).
|
|
694
|
-
return this.
|
|
690
|
+
protoOf(Companion_2).b1f = function () {
|
|
691
|
+
return this.s1d_1.b1f();
|
|
695
692
|
};
|
|
696
|
-
protoOf(Companion_2).
|
|
697
|
-
return this.
|
|
693
|
+
protoOf(Companion_2).a12 = function () {
|
|
694
|
+
return this.s1d_1.a12();
|
|
698
695
|
};
|
|
699
|
-
protoOf(Companion_2).
|
|
700
|
-
return this.
|
|
696
|
+
protoOf(Companion_2).m1e = function () {
|
|
697
|
+
return this.s1d_1.m1e();
|
|
701
698
|
};
|
|
702
|
-
protoOf(Companion_2).
|
|
703
|
-
return this.
|
|
704
|
-
};
|
|
705
|
-
protoOf(Companion_2).u1d = function (r, g, b, alpha) {
|
|
706
|
-
return this.t1d_1.u1d(r, g, b, alpha);
|
|
699
|
+
protoOf(Companion_2).d1f = function () {
|
|
700
|
+
return this.s1d_1.d1f();
|
|
707
701
|
};
|
|
708
702
|
protoOf(Companion_2).z1e = function (r, g, b, alpha) {
|
|
709
|
-
return this.
|
|
703
|
+
return this.s1d_1.z1e(r, g, b, alpha);
|
|
710
704
|
};
|
|
711
|
-
protoOf(Companion_2).
|
|
712
|
-
return this.
|
|
705
|
+
protoOf(Companion_2).t1d = function (r, g, b, alpha) {
|
|
706
|
+
return this.s1d_1.t1d(r, g, b, alpha);
|
|
707
|
+
};
|
|
708
|
+
protoOf(Companion_2).y1e = function (r, g, b, alpha) {
|
|
709
|
+
return this.s1d_1.y1e(r, g, b, alpha);
|
|
710
|
+
};
|
|
711
|
+
protoOf(Companion_2).a1f = function (hex) {
|
|
712
|
+
return this.s1d_1.a1f(hex);
|
|
713
713
|
};
|
|
714
714
|
protoOf(Companion_2).equals = function (other) {
|
|
715
|
-
return equals(RGBColorSpaces_getInstance().
|
|
715
|
+
return equals(RGBColorSpaces_getInstance().a1e_1, other);
|
|
716
716
|
};
|
|
717
717
|
protoOf(Companion_2).hashCode = function () {
|
|
718
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
718
|
+
return hashCode(RGBColorSpaces_getInstance().a1e_1);
|
|
719
719
|
};
|
|
720
720
|
var Companion_instance_2;
|
|
721
721
|
function Companion_getInstance_2() {
|
|
@@ -724,18 +724,23 @@
|
|
|
724
724
|
return Companion_instance_2;
|
|
725
725
|
}
|
|
726
726
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
727
|
-
return receiver.
|
|
727
|
+
return receiver.e1f(p0, p1, p2, p3);
|
|
728
728
|
}
|
|
729
729
|
function RGB(r, g, b, alpha, space) {
|
|
730
730
|
Companion_getInstance_2();
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
731
|
+
this.l1c_1 = r;
|
|
732
|
+
this.m1c_1 = g;
|
|
733
|
+
this.n1c_1 = b;
|
|
734
|
+
this.o1c_1 = alpha;
|
|
735
|
+
this.p1c_1 = space;
|
|
736
736
|
}
|
|
737
|
-
protoOf(RGB).
|
|
738
|
-
return this.
|
|
737
|
+
protoOf(RGB).i1c = function () {
|
|
738
|
+
return this.p1c_1;
|
|
739
|
+
};
|
|
740
|
+
protoOf(RGB).f1f = function () {
|
|
741
|
+
// Inline function 'kotlin.math.roundToInt' call
|
|
742
|
+
var this_0 = this.l1c_1 * 255;
|
|
743
|
+
return roundToInt(this_0);
|
|
739
744
|
};
|
|
740
745
|
protoOf(RGB).g1f = function () {
|
|
741
746
|
// Inline function 'kotlin.math.roundToInt' call
|
|
@@ -747,24 +752,19 @@
|
|
|
747
752
|
var this_0 = this.n1c_1 * 255;
|
|
748
753
|
return roundToInt(this_0);
|
|
749
754
|
};
|
|
750
|
-
protoOf(RGB).i1f = function () {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
return roundToInt(this_0);
|
|
755
|
+
protoOf(RGB).i1f = function (space) {
|
|
756
|
+
var f = SRGB_getInstance().m1e();
|
|
757
|
+
return equals(this.p1c_1, space) ? this : (equals(this.p1c_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().b1e_1) : false) ? space.t1d(f.v1e(this.l1c_1), f.v1e(this.m1c_1), f.v1e(this.n1c_1), this.o1c_1) : (equals(this.p1c_1, RGBColorSpaces_getInstance().b1e_1) ? equals(space, SRGB_getInstance()) : false) ? space.t1d(f.w1e(this.l1c_1), f.w1e(this.m1c_1), f.w1e(this.n1c_1), this.o1c_1) : this.k1c().o1f(space);
|
|
754
758
|
};
|
|
755
|
-
protoOf(RGB).
|
|
756
|
-
var f = SRGB_getInstance().n1e();
|
|
757
|
-
return equals(this.q1c_1, space) ? this : (equals(this.q1c_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().c1e_1) : false) ? space.u1d(f.w1e(this.m1c_1), f.w1e(this.n1c_1), f.w1e(this.o1c_1), this.p1c_1) : (equals(this.q1c_1, RGBColorSpaces_getInstance().c1e_1) ? equals(space, SRGB_getInstance()) : false) ? space.u1d(f.x1e(this.m1c_1), f.x1e(this.n1c_1), f.x1e(this.o1c_1), this.p1c_1) : this.l1c().p1f(space);
|
|
758
|
-
};
|
|
759
|
-
protoOf(RGB).q1f = function () {
|
|
759
|
+
protoOf(RGB).p1f = function () {
|
|
760
760
|
var tmp$ret$3;
|
|
761
761
|
$l$block: {
|
|
762
762
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
763
763
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
764
|
-
var $this$toSRGB = this.
|
|
765
|
-
var r = $this$toSRGB.
|
|
766
|
-
var g = $this$toSRGB.
|
|
767
|
-
var b = $this$toSRGB.
|
|
764
|
+
var $this$toSRGB = this.i1f(SRGB_getInstance());
|
|
765
|
+
var r = $this$toSRGB.l1c_1;
|
|
766
|
+
var g = $this$toSRGB.m1c_1;
|
|
767
|
+
var b = $this$toSRGB.n1c_1;
|
|
768
768
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
769
769
|
var min = Math.min(r, g, b);
|
|
770
770
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -786,81 +786,81 @@
|
|
|
786
786
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
787
787
|
var h_0 = normalizeDeg(h);
|
|
788
788
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
789
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
789
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.o1c_1);
|
|
790
790
|
break $l$block;
|
|
791
791
|
}
|
|
792
792
|
return tmp$ret$3;
|
|
793
793
|
};
|
|
794
|
-
protoOf(RGB).
|
|
795
|
-
var f = this.
|
|
794
|
+
protoOf(RGB).k1c = function () {
|
|
795
|
+
var f = this.p1c_1.m1e();
|
|
796
796
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
797
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
798
|
-
var v0 = f.
|
|
799
|
-
var v1 = f.
|
|
800
|
-
var v2 = f.
|
|
797
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.p1c_1.b1f());
|
|
798
|
+
var v0 = f.v1e(this.l1c_1);
|
|
799
|
+
var v1 = f.v1e(this.m1c_1);
|
|
800
|
+
var v2 = f.v1e(this.n1c_1);
|
|
801
801
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
802
802
|
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;
|
|
803
803
|
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;
|
|
804
804
|
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;
|
|
805
|
-
return XYZColorSpace_0(this.
|
|
805
|
+
return XYZColorSpace_0(this.p1c_1.d1f()).t1d(x, y, z, this.o1c_1);
|
|
806
806
|
};
|
|
807
|
-
protoOf(RGB).
|
|
807
|
+
protoOf(RGB).l1d = function () {
|
|
808
808
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
809
|
-
var $this$toSRGB = this.
|
|
809
|
+
var $this$toSRGB = this.i1f(SRGB_getInstance());
|
|
810
810
|
// Inline function 'kotlin.math.roundToInt' call
|
|
811
|
-
var this_0 = $this$toSRGB.
|
|
811
|
+
var this_0 = $this$toSRGB.p1f().q1d_1 * 100;
|
|
812
812
|
var value = roundToInt(this_0);
|
|
813
813
|
if (value === 30)
|
|
814
814
|
return new Ansi16(30);
|
|
815
815
|
var v = value / 50 | 0;
|
|
816
816
|
// Inline function 'kotlin.math.roundToInt' call
|
|
817
|
-
var this_1 = $this$toSRGB.
|
|
817
|
+
var this_1 = $this$toSRGB.n1c_1;
|
|
818
818
|
var tmp$ret$1 = roundToInt(this_1);
|
|
819
819
|
var tmp = imul(tmp$ret$1, 4);
|
|
820
820
|
// Inline function 'kotlin.math.roundToInt' call
|
|
821
|
-
var this_2 = $this$toSRGB.
|
|
821
|
+
var this_2 = $this$toSRGB.m1c_1;
|
|
822
822
|
var tmp$ret$2 = roundToInt(this_2);
|
|
823
823
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
824
824
|
// Inline function 'kotlin.math.roundToInt' call
|
|
825
|
-
var this_3 = $this$toSRGB.
|
|
825
|
+
var this_3 = $this$toSRGB.l1c_1;
|
|
826
826
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
827
827
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
828
828
|
};
|
|
829
|
-
protoOf(RGB).
|
|
829
|
+
protoOf(RGB).q1f = function () {
|
|
830
830
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
831
|
-
var $this$toSRGB = this.
|
|
832
|
-
var ri = $this$toSRGB.
|
|
833
|
-
var gi = $this$toSRGB.
|
|
834
|
-
var bi = $this$toSRGB.
|
|
831
|
+
var $this$toSRGB = this.i1f(SRGB_getInstance());
|
|
832
|
+
var ri = $this$toSRGB.f1f();
|
|
833
|
+
var gi = $this$toSRGB.g1f();
|
|
834
|
+
var bi = $this$toSRGB.h1f();
|
|
835
835
|
var tmp;
|
|
836
836
|
if (ri === gi ? gi === bi : false) {
|
|
837
837
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
838
838
|
} else {
|
|
839
839
|
// Inline function 'kotlin.math.roundToInt' call
|
|
840
|
-
var this_0 = $this$toSRGB.
|
|
840
|
+
var this_0 = $this$toSRGB.l1c_1 * 5;
|
|
841
841
|
var tmp$ret$0 = roundToInt(this_0);
|
|
842
842
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
843
843
|
// Inline function 'kotlin.math.roundToInt' call
|
|
844
|
-
var this_1 = $this$toSRGB.
|
|
844
|
+
var this_1 = $this$toSRGB.m1c_1 * 5;
|
|
845
845
|
var tmp$ret$1 = roundToInt(this_1);
|
|
846
846
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
847
847
|
// Inline function 'kotlin.math.roundToInt' call
|
|
848
|
-
var this_2 = $this$toSRGB.
|
|
848
|
+
var this_2 = $this$toSRGB.n1c_1 * 5;
|
|
849
849
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
850
850
|
}
|
|
851
851
|
var code = tmp;
|
|
852
852
|
return new Ansi256(code);
|
|
853
853
|
};
|
|
854
|
-
protoOf(RGB).
|
|
855
|
-
return this.
|
|
854
|
+
protoOf(RGB).j1c = function () {
|
|
855
|
+
return this.i1f(RGBColorSpaces_getInstance().a1e_1);
|
|
856
856
|
};
|
|
857
|
-
protoOf(RGB).
|
|
857
|
+
protoOf(RGB).r1f = function () {
|
|
858
858
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
859
|
-
var v1 = this.
|
|
860
|
-
var v2 = this.
|
|
861
|
-
var v3 = this.
|
|
862
|
-
var alpha = this.
|
|
863
|
-
var tmp0_container = this.
|
|
859
|
+
var v1 = this.l1c_1;
|
|
860
|
+
var v2 = this.m1c_1;
|
|
861
|
+
var v3 = this.n1c_1;
|
|
862
|
+
var alpha = this.o1c_1;
|
|
863
|
+
var tmp0_container = this.i1c().f1d();
|
|
864
864
|
// Inline function 'kotlin.collections.component1' call
|
|
865
865
|
var c1 = tmp0_container.c1(0);
|
|
866
866
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -871,16 +871,16 @@
|
|
|
871
871
|
var tmp_0;
|
|
872
872
|
var tmp_1;
|
|
873
873
|
var tmp_2;
|
|
874
|
-
var containsLower = c1.
|
|
875
|
-
if (v1 <= c1.
|
|
876
|
-
var containsLower_0 = c2.
|
|
877
|
-
tmp_2 = v2 <= c2.
|
|
874
|
+
var containsLower = c1.s1c_1;
|
|
875
|
+
if (v1 <= c1.t1c_1 ? containsLower <= v1 : false) {
|
|
876
|
+
var containsLower_0 = c2.s1c_1;
|
|
877
|
+
tmp_2 = v2 <= c2.t1c_1 ? containsLower_0 <= v2 : false;
|
|
878
878
|
} else {
|
|
879
879
|
tmp_2 = false;
|
|
880
880
|
}
|
|
881
881
|
if (tmp_2) {
|
|
882
|
-
var containsLower_1 = c3.
|
|
883
|
-
tmp_1 = v3 <= c3.
|
|
882
|
+
var containsLower_1 = c3.s1c_1;
|
|
883
|
+
tmp_1 = v3 <= c3.t1c_1 ? containsLower_1 <= v3 : false;
|
|
884
884
|
} else {
|
|
885
885
|
tmp_1 = false;
|
|
886
886
|
}
|
|
@@ -892,30 +892,30 @@
|
|
|
892
892
|
if (tmp_0) {
|
|
893
893
|
tmp = this;
|
|
894
894
|
} else {
|
|
895
|
-
tmp = clamp$copy(this, coerceIn(v1, c1.
|
|
895
|
+
tmp = clamp$copy(this, coerceIn(v1, c1.s1c_1, c1.t1c_1), coerceIn(v2, c2.s1c_1, c2.t1c_1), coerceIn(v3, c3.s1c_1, c3.t1c_1), coerceIn(alpha, 0.0, 1.0));
|
|
896
896
|
}
|
|
897
897
|
return tmp;
|
|
898
898
|
};
|
|
899
|
-
protoOf(RGB).
|
|
899
|
+
protoOf(RGB).s1f = function (r, g, b, alpha, space) {
|
|
900
900
|
return new RGB(r, g, b, alpha, space);
|
|
901
901
|
};
|
|
902
|
-
protoOf(RGB).
|
|
903
|
-
r = r === VOID ? this.
|
|
904
|
-
g = g === VOID ? this.
|
|
905
|
-
b = b === VOID ? this.
|
|
906
|
-
alpha = alpha === VOID ? this.
|
|
907
|
-
space = space === VOID ? this.
|
|
908
|
-
return $super === VOID ? this.
|
|
902
|
+
protoOf(RGB).e1f = function (r, g, b, alpha, space, $super) {
|
|
903
|
+
r = r === VOID ? this.l1c_1 : r;
|
|
904
|
+
g = g === VOID ? this.m1c_1 : g;
|
|
905
|
+
b = b === VOID ? this.n1c_1 : b;
|
|
906
|
+
alpha = alpha === VOID ? this.o1c_1 : alpha;
|
|
907
|
+
space = space === VOID ? this.p1c_1 : space;
|
|
908
|
+
return $super === VOID ? this.s1f(r, g, b, alpha, space) : $super.s1f.call(this, r, g, b, alpha, space);
|
|
909
909
|
};
|
|
910
910
|
protoOf(RGB).toString = function () {
|
|
911
|
-
return 'RGB(r=' + this.
|
|
911
|
+
return 'RGB(r=' + this.l1c_1 + ', g=' + this.m1c_1 + ', b=' + this.n1c_1 + ', alpha=' + this.o1c_1 + ', space=' + this.p1c_1 + ')';
|
|
912
912
|
};
|
|
913
913
|
protoOf(RGB).hashCode = function () {
|
|
914
|
-
var result = getNumberHashCode(this.
|
|
914
|
+
var result = getNumberHashCode(this.l1c_1);
|
|
915
|
+
result = imul(result, 31) + getNumberHashCode(this.m1c_1) | 0;
|
|
915
916
|
result = imul(result, 31) + getNumberHashCode(this.n1c_1) | 0;
|
|
916
917
|
result = imul(result, 31) + getNumberHashCode(this.o1c_1) | 0;
|
|
917
|
-
result = imul(result, 31) +
|
|
918
|
-
result = imul(result, 31) + hashCode(this.q1c_1) | 0;
|
|
918
|
+
result = imul(result, 31) + hashCode(this.p1c_1) | 0;
|
|
919
919
|
return result;
|
|
920
920
|
};
|
|
921
921
|
protoOf(RGB).equals = function (other) {
|
|
@@ -924,6 +924,8 @@
|
|
|
924
924
|
if (!(other instanceof RGB))
|
|
925
925
|
return false;
|
|
926
926
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
927
|
+
if (!equals(this.l1c_1, tmp0_other_with_cast.l1c_1))
|
|
928
|
+
return false;
|
|
927
929
|
if (!equals(this.m1c_1, tmp0_other_with_cast.m1c_1))
|
|
928
930
|
return false;
|
|
929
931
|
if (!equals(this.n1c_1, tmp0_other_with_cast.n1c_1))
|
|
@@ -932,8 +934,6 @@
|
|
|
932
934
|
return false;
|
|
933
935
|
if (!equals(this.p1c_1, tmp0_other_with_cast.p1c_1))
|
|
934
936
|
return false;
|
|
935
|
-
if (!equals(this.q1c_1, tmp0_other_with_cast.q1c_1))
|
|
936
|
-
return false;
|
|
937
937
|
return true;
|
|
938
938
|
};
|
|
939
939
|
function parseHex(_this__u8e3s4, startIndex) {
|
|
@@ -1033,17 +1033,17 @@
|
|
|
1033
1033
|
}
|
|
1034
1034
|
var ACES_AP1_B;
|
|
1035
1035
|
function RGBColorSpaces$SRGB$lambda($this$$receiver, it) {
|
|
1036
|
-
return it.
|
|
1036
|
+
return it.j1c();
|
|
1037
1037
|
}
|
|
1038
1038
|
function RGBColorSpaces$BT2020$lambda($this$$receiver, color) {
|
|
1039
1039
|
var tmp;
|
|
1040
1040
|
if (color instanceof RGB) {
|
|
1041
|
-
tmp = color.
|
|
1041
|
+
tmp = color.i1f($this$$receiver);
|
|
1042
1042
|
} else {
|
|
1043
1043
|
if (color instanceof ICtCp) {
|
|
1044
|
-
tmp = color.
|
|
1044
|
+
tmp = color.z1d();
|
|
1045
1045
|
} else {
|
|
1046
|
-
tmp = color.
|
|
1046
|
+
tmp = color.k1c().o1f($this$$receiver);
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
return tmp;
|
|
@@ -1051,29 +1051,29 @@
|
|
|
1051
1051
|
function RGBColorSpaces() {
|
|
1052
1052
|
RGBColorSpaces_instance = this;
|
|
1053
1053
|
var tmp = this;
|
|
1054
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1054
|
+
var tmp_0 = Illuminant_getInstance().b1d_1;
|
|
1055
1055
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1056
1056
|
var tmp_2 = get_SRGB_R();
|
|
1057
1057
|
var tmp_3 = get_SRGB_G();
|
|
1058
1058
|
var tmp_4 = get_SRGB_B();
|
|
1059
|
-
tmp.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1059
|
+
tmp.a1e_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1060
|
+
this.b1e_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().b1d_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1061
|
+
this.c1e_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1062
|
+
this.d1e_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1063
|
+
this.e1e_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1064
|
+
this.f1e_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1065
|
+
this.g1e_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().b1d_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));
|
|
1066
1066
|
var tmp_5 = this;
|
|
1067
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1067
|
+
var tmp_6 = Illuminant_getInstance().b1d_1;
|
|
1068
1068
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1069
1069
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1070
1070
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1071
1071
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1072
|
-
tmp_5.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1072
|
+
tmp_5.h1e_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1073
|
+
this.i1e_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().b1d_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1074
|
+
this.j1e_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));
|
|
1075
|
+
this.k1e_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().b1d_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1076
|
+
this.l1e_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().z1c_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));
|
|
1077
1077
|
}
|
|
1078
1078
|
var RGBColorSpaces_instance;
|
|
1079
1079
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1083,43 +1083,43 @@
|
|
|
1083
1083
|
}
|
|
1084
1084
|
function SRGB() {
|
|
1085
1085
|
SRGB_instance = this;
|
|
1086
|
-
this.
|
|
1086
|
+
this.u1d_1 = RGBColorSpaces_getInstance().a1e_1;
|
|
1087
1087
|
}
|
|
1088
|
-
protoOf(SRGB).
|
|
1089
|
-
return this.
|
|
1090
|
-
};
|
|
1091
|
-
protoOf(SRGB).d1f = function () {
|
|
1092
|
-
return this.v1d_1.d1f();
|
|
1088
|
+
protoOf(SRGB).f1d = function () {
|
|
1089
|
+
return this.u1d_1.f1d();
|
|
1093
1090
|
};
|
|
1094
1091
|
protoOf(SRGB).c1f = function () {
|
|
1095
|
-
return this.
|
|
1092
|
+
return this.u1d_1.c1f();
|
|
1096
1093
|
};
|
|
1097
|
-
protoOf(SRGB).
|
|
1098
|
-
return this.
|
|
1094
|
+
protoOf(SRGB).b1f = function () {
|
|
1095
|
+
return this.u1d_1.b1f();
|
|
1099
1096
|
};
|
|
1100
|
-
protoOf(SRGB).
|
|
1101
|
-
return this.
|
|
1097
|
+
protoOf(SRGB).a12 = function () {
|
|
1098
|
+
return this.u1d_1.a12();
|
|
1102
1099
|
};
|
|
1103
|
-
protoOf(SRGB).
|
|
1104
|
-
return this.
|
|
1100
|
+
protoOf(SRGB).m1e = function () {
|
|
1101
|
+
return this.u1d_1.m1e();
|
|
1105
1102
|
};
|
|
1106
|
-
protoOf(SRGB).
|
|
1107
|
-
return this.
|
|
1108
|
-
};
|
|
1109
|
-
protoOf(SRGB).u1d = function (r, g, b, alpha) {
|
|
1110
|
-
return this.v1d_1.u1d(r, g, b, alpha);
|
|
1103
|
+
protoOf(SRGB).d1f = function () {
|
|
1104
|
+
return this.u1d_1.d1f();
|
|
1111
1105
|
};
|
|
1112
1106
|
protoOf(SRGB).z1e = function (r, g, b, alpha) {
|
|
1113
|
-
return this.
|
|
1107
|
+
return this.u1d_1.z1e(r, g, b, alpha);
|
|
1108
|
+
};
|
|
1109
|
+
protoOf(SRGB).t1d = function (r, g, b, alpha) {
|
|
1110
|
+
return this.u1d_1.t1d(r, g, b, alpha);
|
|
1114
1111
|
};
|
|
1115
|
-
protoOf(SRGB).
|
|
1116
|
-
return this.
|
|
1112
|
+
protoOf(SRGB).y1e = function (r, g, b, alpha) {
|
|
1113
|
+
return this.u1d_1.y1e(r, g, b, alpha);
|
|
1114
|
+
};
|
|
1115
|
+
protoOf(SRGB).a1f = function (hex) {
|
|
1116
|
+
return this.u1d_1.a1f(hex);
|
|
1117
1117
|
};
|
|
1118
1118
|
protoOf(SRGB).equals = function (other) {
|
|
1119
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1119
|
+
return equals(RGBColorSpaces_getInstance().a1e_1, other);
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(SRGB).hashCode = function () {
|
|
1122
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1122
|
+
return hashCode(RGBColorSpaces_getInstance().a1e_1);
|
|
1123
1123
|
};
|
|
1124
1124
|
protoOf(SRGB).toString = function () {
|
|
1125
1125
|
return 'sRGB';
|
|
@@ -1131,39 +1131,39 @@
|
|
|
1131
1131
|
return SRGB_instance;
|
|
1132
1132
|
}
|
|
1133
1133
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
}
|
|
1145
|
-
protoOf(RGBColorSpaceImpl).
|
|
1134
|
+
this.t1f_1 = name;
|
|
1135
|
+
this.u1f_1 = whitePoint;
|
|
1136
|
+
this.v1f_1 = transferFunctions;
|
|
1137
|
+
this.w1f_1 = r;
|
|
1138
|
+
this.x1f_1 = g;
|
|
1139
|
+
this.y1f_1 = b;
|
|
1140
|
+
this.z1f_1 = convertImpl;
|
|
1141
|
+
this.a1g_1 = zeroOneComponentInfo('RGB');
|
|
1142
|
+
this.b1g_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.u1f_1, this.w1f_1, this.x1f_1, this.y1f_1));
|
|
1143
|
+
this.c1g_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.b1g_1)));
|
|
1144
|
+
}
|
|
1145
|
+
protoOf(RGBColorSpaceImpl).a12 = function () {
|
|
1146
|
+
return this.t1f_1;
|
|
1147
|
+
};
|
|
1148
|
+
protoOf(RGBColorSpaceImpl).d1f = function () {
|
|
1146
1149
|
return this.u1f_1;
|
|
1147
1150
|
};
|
|
1148
|
-
protoOf(RGBColorSpaceImpl).
|
|
1151
|
+
protoOf(RGBColorSpaceImpl).m1e = function () {
|
|
1149
1152
|
return this.v1f_1;
|
|
1150
1153
|
};
|
|
1151
|
-
protoOf(RGBColorSpaceImpl).
|
|
1152
|
-
return this.
|
|
1154
|
+
protoOf(RGBColorSpaceImpl).f1d = function () {
|
|
1155
|
+
return this.a1g_1;
|
|
1153
1156
|
};
|
|
1154
|
-
protoOf(RGBColorSpaceImpl).
|
|
1157
|
+
protoOf(RGBColorSpaceImpl).b1f = function () {
|
|
1155
1158
|
return this.b1g_1;
|
|
1156
1159
|
};
|
|
1157
1160
|
protoOf(RGBColorSpaceImpl).c1f = function () {
|
|
1158
1161
|
return this.c1g_1;
|
|
1159
1162
|
};
|
|
1160
|
-
protoOf(RGBColorSpaceImpl).d1f = function () {
|
|
1161
|
-
return this.d1g_1;
|
|
1162
|
-
};
|
|
1163
1163
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1164
|
-
return this.
|
|
1164
|
+
return this.t1f_1;
|
|
1165
1165
|
};
|
|
1166
|
-
protoOf(RGBColorSpaceImpl).
|
|
1166
|
+
protoOf(RGBColorSpaceImpl).t1d = function (r, g, b, alpha) {
|
|
1167
1167
|
return new RGB(r, g, b, alpha, this);
|
|
1168
1168
|
};
|
|
1169
1169
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1171,42 +1171,42 @@
|
|
|
1171
1171
|
return true;
|
|
1172
1172
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1173
1173
|
return false;
|
|
1174
|
-
if (!(this.
|
|
1174
|
+
if (!(this.t1f_1 === other.a12()))
|
|
1175
1175
|
return false;
|
|
1176
|
-
if (!this.
|
|
1176
|
+
if (!this.u1f_1.equals(other.d1f()))
|
|
1177
1177
|
return false;
|
|
1178
|
-
if (!equals(this.
|
|
1178
|
+
if (!equals(this.v1f_1, other.m1e()))
|
|
1179
1179
|
return false;
|
|
1180
1180
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1181
|
+
if (!this.w1f_1.equals(other.w1f_1))
|
|
1182
|
+
return false;
|
|
1181
1183
|
if (!this.x1f_1.equals(other.x1f_1))
|
|
1182
1184
|
return false;
|
|
1183
1185
|
if (!this.y1f_1.equals(other.y1f_1))
|
|
1184
1186
|
return false;
|
|
1185
|
-
if (!this.z1f_1.equals(other.z1f_1))
|
|
1186
|
-
return false;
|
|
1187
1187
|
} else {
|
|
1188
|
-
if (!contentEquals(this.
|
|
1188
|
+
if (!contentEquals(this.b1g_1, other.b1f()))
|
|
1189
1189
|
return false;
|
|
1190
|
-
if (!contentEquals(this.
|
|
1190
|
+
if (!contentEquals(this.c1g_1, other.c1f()))
|
|
1191
1191
|
return false;
|
|
1192
1192
|
}
|
|
1193
1193
|
return true;
|
|
1194
1194
|
};
|
|
1195
1195
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1196
|
-
var result = getStringHashCode(this.
|
|
1197
|
-
result = imul(31, result) + this.
|
|
1198
|
-
result = imul(31, result) + hashCode(this.
|
|
1196
|
+
var result = getStringHashCode(this.t1f_1);
|
|
1197
|
+
result = imul(31, result) + this.u1f_1.hashCode() | 0;
|
|
1198
|
+
result = imul(31, result) + hashCode(this.v1f_1) | 0;
|
|
1199
|
+
result = imul(31, result) + this.w1f_1.hashCode() | 0;
|
|
1199
1200
|
result = imul(31, result) + this.x1f_1.hashCode() | 0;
|
|
1200
1201
|
result = imul(31, result) + this.y1f_1.hashCode() | 0;
|
|
1201
|
-
result = imul(31, result) + this.z1f_1.hashCode() | 0;
|
|
1202
1202
|
return result;
|
|
1203
1203
|
};
|
|
1204
1204
|
function SRGBTransferFunctions() {
|
|
1205
1205
|
}
|
|
1206
|
-
protoOf(SRGBTransferFunctions).
|
|
1206
|
+
protoOf(SRGBTransferFunctions).w1e = function (x) {
|
|
1207
1207
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055;
|
|
1208
1208
|
};
|
|
1209
|
-
protoOf(SRGBTransferFunctions).
|
|
1209
|
+
protoOf(SRGBTransferFunctions).v1e = function (x) {
|
|
1210
1210
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1211
1211
|
};
|
|
1212
1212
|
var SRGBTransferFunctions_instance;
|
|
@@ -1219,18 +1219,18 @@
|
|
|
1219
1219
|
}
|
|
1220
1220
|
function ACESccTransferFunctions() {
|
|
1221
1221
|
ACESccTransferFunctions_instance = this;
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1222
|
+
this.d1g_1 = 3.0517578125E-5;
|
|
1223
|
+
this.e1g_1 = 1.52587890625E-5;
|
|
1224
|
+
this.f1g_1 = -0.3013698630136986;
|
|
1225
1225
|
var tmp = this;
|
|
1226
1226
|
// Inline function 'kotlin.math.log2' call
|
|
1227
|
-
tmp.
|
|
1227
|
+
tmp.g1g_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1228
1228
|
}
|
|
1229
|
-
protoOf(ACESccTransferFunctions).
|
|
1229
|
+
protoOf(ACESccTransferFunctions).v1e = function (x) {
|
|
1230
1230
|
var tmp;
|
|
1231
1231
|
if (x <= -0.3013698630136986) {
|
|
1232
1232
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1233
|
-
} else if (x < this.
|
|
1233
|
+
} else if (x < this.g1g_1) {
|
|
1234
1234
|
// Inline function 'kotlin.math.pow' call
|
|
1235
1235
|
var x_0 = x * 17.52 - 9.72;
|
|
1236
1236
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
}
|
|
1240
1240
|
return tmp;
|
|
1241
1241
|
};
|
|
1242
|
-
protoOf(ACESccTransferFunctions).
|
|
1242
|
+
protoOf(ACESccTransferFunctions).w1e = function (x) {
|
|
1243
1243
|
var tmp;
|
|
1244
1244
|
if (x < 3.0517578125E-5) {
|
|
1245
1245
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1259,17 +1259,17 @@
|
|
|
1259
1259
|
}
|
|
1260
1260
|
function ACEScctTransferFunctions() {
|
|
1261
1261
|
ACEScctTransferFunctions_instance = this;
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1262
|
+
this.h1g_1 = 10.5402377416545;
|
|
1263
|
+
this.i1g_1 = 0.0729055341958355;
|
|
1264
1264
|
var tmp = this;
|
|
1265
1265
|
// Inline function 'kotlin.math.log2' call
|
|
1266
|
-
tmp.
|
|
1266
|
+
tmp.j1g_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1267
1267
|
}
|
|
1268
|
-
protoOf(ACEScctTransferFunctions).
|
|
1268
|
+
protoOf(ACEScctTransferFunctions).v1e = function (x) {
|
|
1269
1269
|
var tmp;
|
|
1270
1270
|
if (x <= 0.155251141552511) {
|
|
1271
1271
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1272
|
-
} else if (x < this.
|
|
1272
|
+
} else if (x < this.j1g_1) {
|
|
1273
1273
|
// Inline function 'kotlin.math.pow' call
|
|
1274
1274
|
var x_0 = x * 17.52 - 9.72;
|
|
1275
1275
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1278,7 +1278,7 @@
|
|
|
1278
1278
|
}
|
|
1279
1279
|
return tmp;
|
|
1280
1280
|
};
|
|
1281
|
-
protoOf(ACEScctTransferFunctions).
|
|
1281
|
+
protoOf(ACEScctTransferFunctions).w1e = function (x) {
|
|
1282
1282
|
var tmp;
|
|
1283
1283
|
if (x < 0.0078125) {
|
|
1284
1284
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1296,16 +1296,16 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function BT2020TransferFunctions() {
|
|
1298
1298
|
BT2020TransferFunctions_instance = this;
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1299
|
+
this.k1g_1 = 1.0993;
|
|
1300
|
+
this.l1g_1 = 0.0181;
|
|
1301
1301
|
var tmp = this;
|
|
1302
1302
|
// Inline function 'kotlin.math.pow' call
|
|
1303
|
-
tmp.
|
|
1303
|
+
tmp.m1g_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994;
|
|
1304
1304
|
}
|
|
1305
|
-
protoOf(BT2020TransferFunctions).
|
|
1306
|
-
return numberToDouble(x < this.
|
|
1305
|
+
protoOf(BT2020TransferFunctions).v1e = function (x) {
|
|
1306
|
+
return numberToDouble(x < this.m1g_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223));
|
|
1307
1307
|
};
|
|
1308
|
-
protoOf(BT2020TransferFunctions).
|
|
1308
|
+
protoOf(BT2020TransferFunctions).w1e = function (x) {
|
|
1309
1309
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994;
|
|
1310
1310
|
};
|
|
1311
1311
|
var BT2020TransferFunctions_instance;
|
|
@@ -1316,12 +1316,12 @@
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function BT709TransferFunctions() {
|
|
1318
1318
|
BT709TransferFunctions_instance = this;
|
|
1319
|
-
this.
|
|
1319
|
+
this.n1g_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1320
1320
|
}
|
|
1321
|
-
protoOf(BT709TransferFunctions).
|
|
1322
|
-
return numberToDouble(x < this.
|
|
1321
|
+
protoOf(BT709TransferFunctions).v1e = function (x) {
|
|
1322
|
+
return numberToDouble(x < this.n1g_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223));
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(BT709TransferFunctions).
|
|
1324
|
+
protoOf(BT709TransferFunctions).w1e = function (x) {
|
|
1325
1325
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1326
1326
|
};
|
|
1327
1327
|
var BT709TransferFunctions_instance;
|
|
@@ -1331,12 +1331,12 @@
|
|
|
1331
1331
|
return BT709TransferFunctions_instance;
|
|
1332
1332
|
}
|
|
1333
1333
|
function ROMMTransferFunctions() {
|
|
1334
|
-
this.
|
|
1334
|
+
this.o1g_1 = 0.001953;
|
|
1335
1335
|
}
|
|
1336
|
-
protoOf(ROMMTransferFunctions).
|
|
1336
|
+
protoOf(ROMMTransferFunctions).v1e = function (x) {
|
|
1337
1337
|
return x < 0.031248 ? x / 16.0 : spow(x, 1.8);
|
|
1338
1338
|
};
|
|
1339
|
-
protoOf(ROMMTransferFunctions).
|
|
1339
|
+
protoOf(ROMMTransferFunctions).w1e = function (x) {
|
|
1340
1340
|
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556);
|
|
1341
1341
|
};
|
|
1342
1342
|
var ROMMTransferFunctions_instance;
|
|
@@ -1345,13 +1345,13 @@
|
|
|
1345
1345
|
}
|
|
1346
1346
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1347
1347
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1348
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1349
|
-
var wp = whitePoint.
|
|
1348
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.p1g_1, g.p1g_1, b.p1g_1, r.q1g_1, g.q1g_1, b.q1g_1, r.s1g(), g.s1g(), b.s1g());
|
|
1349
|
+
var wp = whitePoint.v1c_1;
|
|
1350
1350
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1351
1351
|
var this_0 = inverse(primaries);
|
|
1352
|
-
var v0 = wp.
|
|
1353
|
-
var v1 = wp.
|
|
1354
|
-
var v2 = wp.
|
|
1352
|
+
var v0 = wp.t1g();
|
|
1353
|
+
var v1 = wp.r1g_1;
|
|
1354
|
+
var v2 = wp.u1g();
|
|
1355
1355
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1356
1356
|
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;
|
|
1357
1357
|
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;
|
|
@@ -1362,9 +1362,9 @@
|
|
|
1362
1362
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1363
1363
|
var tmp;
|
|
1364
1364
|
if (color instanceof RGB) {
|
|
1365
|
-
tmp = color.
|
|
1365
|
+
tmp = color.i1f($this$$receiver);
|
|
1366
1366
|
} else {
|
|
1367
|
-
tmp = color.
|
|
1367
|
+
tmp = color.k1c().o1f($this$$receiver);
|
|
1368
1368
|
}
|
|
1369
1369
|
return tmp;
|
|
1370
1370
|
}
|
|
@@ -1386,22 +1386,22 @@
|
|
|
1386
1386
|
}
|
|
1387
1387
|
function Companion_3() {
|
|
1388
1388
|
Companion_instance_3 = this;
|
|
1389
|
-
this.
|
|
1389
|
+
this.v1g_1 = XYZColorSpaces_getInstance().w1g_1;
|
|
1390
1390
|
}
|
|
1391
|
-
protoOf(Companion_3).
|
|
1392
|
-
return this.
|
|
1391
|
+
protoOf(Companion_3).f1d = function () {
|
|
1392
|
+
return this.v1g_1.f1d();
|
|
1393
1393
|
};
|
|
1394
|
-
protoOf(Companion_3).
|
|
1395
|
-
return this.
|
|
1394
|
+
protoOf(Companion_3).d1f = function () {
|
|
1395
|
+
return this.v1g_1.d1f();
|
|
1396
1396
|
};
|
|
1397
|
-
protoOf(Companion_3).
|
|
1398
|
-
return this.
|
|
1397
|
+
protoOf(Companion_3).t1d = function (x, y, z, alpha) {
|
|
1398
|
+
return this.v1g_1.t1d(x, y, z, alpha);
|
|
1399
1399
|
};
|
|
1400
1400
|
protoOf(Companion_3).hashCode = function () {
|
|
1401
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1401
|
+
return hashCode(XYZColorSpaces_getInstance().w1g_1);
|
|
1402
1402
|
};
|
|
1403
1403
|
protoOf(Companion_3).equals = function (other) {
|
|
1404
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1404
|
+
return equals(XYZColorSpaces_getInstance().w1g_1, other);
|
|
1405
1405
|
};
|
|
1406
1406
|
var Companion_instance_3;
|
|
1407
1407
|
function Companion_getInstance_3() {
|
|
@@ -1410,71 +1410,71 @@
|
|
|
1410
1410
|
return Companion_instance_3;
|
|
1411
1411
|
}
|
|
1412
1412
|
function adaptToM($this, space, m, mi) {
|
|
1413
|
-
if (space.
|
|
1413
|
+
if (space.d1f().equals($this.n1f_1.d1f()))
|
|
1414
1414
|
return $this;
|
|
1415
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1415
|
+
var transform = chromaticAdaptationMatrix(space, $this.n1f_1.d1f().v1c_1, m, mi);
|
|
1416
1416
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1417
|
-
var v0 = $this.
|
|
1418
|
-
var v1 = $this.
|
|
1419
|
-
var v2 = $this.
|
|
1417
|
+
var v0 = $this.j1f_1;
|
|
1418
|
+
var v1 = $this.k1f_1;
|
|
1419
|
+
var v2 = $this.l1f_1;
|
|
1420
1420
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1421
1421
|
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;
|
|
1422
1422
|
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;
|
|
1423
1423
|
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;
|
|
1424
|
-
return space.
|
|
1424
|
+
return space.t1d(xx, yy, zz, $this.m1f_1);
|
|
1425
1425
|
}
|
|
1426
1426
|
function XYZ(x, y, z, alpha, space) {
|
|
1427
1427
|
Companion_getInstance_3();
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1428
|
+
this.j1f_1 = x;
|
|
1429
|
+
this.k1f_1 = y;
|
|
1430
|
+
this.l1f_1 = z;
|
|
1431
|
+
this.m1f_1 = alpha;
|
|
1432
|
+
this.n1f_1 = space;
|
|
1433
1433
|
}
|
|
1434
|
-
protoOf(XYZ).
|
|
1435
|
-
return this.
|
|
1434
|
+
protoOf(XYZ).i1c = function () {
|
|
1435
|
+
return this.n1f_1;
|
|
1436
1436
|
};
|
|
1437
|
-
protoOf(XYZ).
|
|
1437
|
+
protoOf(XYZ).y1g = function (space) {
|
|
1438
1438
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1439
1439
|
};
|
|
1440
|
-
protoOf(XYZ).
|
|
1441
|
-
var tmp0_container = this.
|
|
1440
|
+
protoOf(XYZ).o1f = function (space) {
|
|
1441
|
+
var tmp0_container = this.y1g(XYZColorSpace_0(space.d1f()));
|
|
1442
1442
|
var x = tmp0_container.a6();
|
|
1443
1443
|
var y = tmp0_container.b6();
|
|
1444
|
-
var z = tmp0_container.
|
|
1445
|
-
var f = space.
|
|
1444
|
+
var z = tmp0_container.mf();
|
|
1445
|
+
var f = space.m1e();
|
|
1446
1446
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1447
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1447
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.c1f());
|
|
1448
1448
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1449
1449
|
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;
|
|
1450
1450
|
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;
|
|
1451
1451
|
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;
|
|
1452
|
-
return space.
|
|
1452
|
+
return space.t1d(f.w1e(r), f.w1e(g), f.w1e(b), this.m1f_1);
|
|
1453
1453
|
};
|
|
1454
|
-
protoOf(XYZ).
|
|
1455
|
-
return this.
|
|
1454
|
+
protoOf(XYZ).j1c = function () {
|
|
1455
|
+
return this.o1f(RGBColorSpaces_getInstance().a1e_1);
|
|
1456
1456
|
};
|
|
1457
|
-
protoOf(XYZ).
|
|
1457
|
+
protoOf(XYZ).k1c = function () {
|
|
1458
1458
|
return this;
|
|
1459
1459
|
};
|
|
1460
1460
|
protoOf(XYZ).a6 = function () {
|
|
1461
|
-
return this.
|
|
1461
|
+
return this.j1f_1;
|
|
1462
1462
|
};
|
|
1463
1463
|
protoOf(XYZ).b6 = function () {
|
|
1464
|
-
return this.
|
|
1464
|
+
return this.k1f_1;
|
|
1465
1465
|
};
|
|
1466
|
-
protoOf(XYZ).
|
|
1467
|
-
return this.
|
|
1466
|
+
protoOf(XYZ).mf = function () {
|
|
1467
|
+
return this.l1f_1;
|
|
1468
1468
|
};
|
|
1469
1469
|
protoOf(XYZ).toString = function () {
|
|
1470
|
-
return 'XYZ(x=' + this.
|
|
1470
|
+
return 'XYZ(x=' + this.j1f_1 + ', y=' + this.k1f_1 + ', z=' + this.l1f_1 + ', alpha=' + this.m1f_1 + ', space=' + this.n1f_1 + ')';
|
|
1471
1471
|
};
|
|
1472
1472
|
protoOf(XYZ).hashCode = function () {
|
|
1473
|
-
var result = getNumberHashCode(this.
|
|
1473
|
+
var result = getNumberHashCode(this.j1f_1);
|
|
1474
|
+
result = imul(result, 31) + getNumberHashCode(this.k1f_1) | 0;
|
|
1474
1475
|
result = imul(result, 31) + getNumberHashCode(this.l1f_1) | 0;
|
|
1475
1476
|
result = imul(result, 31) + getNumberHashCode(this.m1f_1) | 0;
|
|
1476
|
-
result = imul(result, 31) +
|
|
1477
|
-
result = imul(result, 31) + hashCode(this.o1f_1) | 0;
|
|
1477
|
+
result = imul(result, 31) + hashCode(this.n1f_1) | 0;
|
|
1478
1478
|
return result;
|
|
1479
1479
|
};
|
|
1480
1480
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1483,6 +1483,8 @@
|
|
|
1483
1483
|
if (!(other instanceof XYZ))
|
|
1484
1484
|
return false;
|
|
1485
1485
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1486
|
+
if (!equals(this.j1f_1, tmp0_other_with_cast.j1f_1))
|
|
1487
|
+
return false;
|
|
1486
1488
|
if (!equals(this.k1f_1, tmp0_other_with_cast.k1f_1))
|
|
1487
1489
|
return false;
|
|
1488
1490
|
if (!equals(this.l1f_1, tmp0_other_with_cast.l1f_1))
|
|
@@ -1491,19 +1493,17 @@
|
|
|
1491
1493
|
return false;
|
|
1492
1494
|
if (!equals(this.n1f_1, tmp0_other_with_cast.n1f_1))
|
|
1493
1495
|
return false;
|
|
1494
|
-
if (!equals(this.o1f_1, tmp0_other_with_cast.o1f_1))
|
|
1495
|
-
return false;
|
|
1496
1496
|
return true;
|
|
1497
1497
|
};
|
|
1498
1498
|
function XYZColorSpace() {
|
|
1499
1499
|
}
|
|
1500
1500
|
function XYZColorSpace_0(whitePoint) {
|
|
1501
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1501
|
+
return whitePoint.equals(Illuminant_getInstance().b1d_1) ? XYZColorSpaces_getInstance().w1g_1 : whitePoint.equals(Illuminant_getInstance().z1c_1) ? XYZColorSpaces_getInstance().x1g_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1502
1502
|
}
|
|
1503
1503
|
function XYZColorSpaces() {
|
|
1504
1504
|
XYZColorSpaces_instance = this;
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1505
|
+
this.w1g_1 = new XYZColorSpaceImpl(Illuminant_getInstance().b1d_1);
|
|
1506
|
+
this.x1g_1 = new XYZColorSpaceImpl(Illuminant_getInstance().z1c_1);
|
|
1507
1507
|
}
|
|
1508
1508
|
var XYZColorSpaces_instance;
|
|
1509
1509
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1514,34 +1514,34 @@
|
|
|
1514
1514
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1515
1515
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1516
1516
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1517
|
-
var dstWp = _this__u8e3s4.
|
|
1518
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1519
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1517
|
+
var dstWp = _this__u8e3s4.d1f().v1c_1;
|
|
1518
|
+
var src = dot_0(xyzToLms, srcWp.t1g(), srcWp.r1g_1, srcWp.u1g());
|
|
1519
|
+
var dst = dot_0(xyzToLms, dstWp.t1g(), dstWp.r1g_1, dstWp.u1g());
|
|
1520
1520
|
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);
|
|
1521
1521
|
}
|
|
1522
1522
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1523
|
+
this.z1g_1 = whitePoint;
|
|
1524
|
+
this.a1h_1 = zeroOneComponentInfo('XYZ');
|
|
1525
1525
|
}
|
|
1526
|
-
protoOf(XYZColorSpaceImpl).
|
|
1527
|
-
return this.
|
|
1526
|
+
protoOf(XYZColorSpaceImpl).d1f = function () {
|
|
1527
|
+
return this.z1g_1;
|
|
1528
1528
|
};
|
|
1529
|
-
protoOf(XYZColorSpaceImpl).
|
|
1530
|
-
return this.
|
|
1529
|
+
protoOf(XYZColorSpaceImpl).f1d = function () {
|
|
1530
|
+
return this.a1h_1;
|
|
1531
1531
|
};
|
|
1532
1532
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1533
|
-
return 'XYZColorSpace(' + this.
|
|
1533
|
+
return 'XYZColorSpace(' + this.z1g_1 + ')';
|
|
1534
1534
|
};
|
|
1535
|
-
protoOf(XYZColorSpaceImpl).
|
|
1535
|
+
protoOf(XYZColorSpaceImpl).t1d = function (x, y, z, alpha) {
|
|
1536
1536
|
return new XYZ(x, y, z, alpha, this);
|
|
1537
1537
|
};
|
|
1538
1538
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1539
|
-
return this.
|
|
1539
|
+
return this.z1g_1.hashCode();
|
|
1540
1540
|
};
|
|
1541
1541
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1542
1542
|
var tmp;
|
|
1543
1543
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1544
|
-
tmp = this.
|
|
1544
|
+
tmp = this.z1g_1.equals(other.d1f());
|
|
1545
1545
|
} else {
|
|
1546
1546
|
tmp = false;
|
|
1547
1547
|
}
|
|
@@ -1557,26 +1557,26 @@
|
|
|
1557
1557
|
}
|
|
1558
1558
|
function xyY(x, y, Y) {
|
|
1559
1559
|
Y = Y === VOID ? 1.0 : Y;
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1560
|
+
this.p1g_1 = x;
|
|
1561
|
+
this.q1g_1 = y;
|
|
1562
|
+
this.r1g_1 = Y;
|
|
1563
1563
|
}
|
|
1564
|
+
protoOf(xyY).s1g = function () {
|
|
1565
|
+
return 1 - this.p1g_1 - this.q1g_1;
|
|
1566
|
+
};
|
|
1564
1567
|
protoOf(xyY).t1g = function () {
|
|
1565
|
-
return
|
|
1568
|
+
return this.p1g_1 * this.r1g_1 / this.q1g_1;
|
|
1566
1569
|
};
|
|
1567
1570
|
protoOf(xyY).u1g = function () {
|
|
1568
|
-
return this.q1g_1 * this.
|
|
1569
|
-
};
|
|
1570
|
-
protoOf(xyY).v1g = function () {
|
|
1571
|
-
return (1 - this.q1g_1 - this.r1g_1) * this.s1g_1 / this.r1g_1;
|
|
1571
|
+
return (1 - this.p1g_1 - this.q1g_1) * this.r1g_1 / this.q1g_1;
|
|
1572
1572
|
};
|
|
1573
1573
|
protoOf(xyY).toString = function () {
|
|
1574
|
-
return 'xyY(x=' + this.
|
|
1574
|
+
return 'xyY(x=' + this.p1g_1 + ', y=' + this.q1g_1 + ', Y=' + this.r1g_1 + ')';
|
|
1575
1575
|
};
|
|
1576
1576
|
protoOf(xyY).hashCode = function () {
|
|
1577
|
-
var result = getNumberHashCode(this.
|
|
1577
|
+
var result = getNumberHashCode(this.p1g_1);
|
|
1578
|
+
result = imul(result, 31) + getNumberHashCode(this.q1g_1) | 0;
|
|
1578
1579
|
result = imul(result, 31) + getNumberHashCode(this.r1g_1) | 0;
|
|
1579
|
-
result = imul(result, 31) + getNumberHashCode(this.s1g_1) | 0;
|
|
1580
1580
|
return result;
|
|
1581
1581
|
};
|
|
1582
1582
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1585,30 +1585,30 @@
|
|
|
1585
1585
|
if (!(other instanceof xyY))
|
|
1586
1586
|
return false;
|
|
1587
1587
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1588
|
+
if (!equals(this.p1g_1, tmp0_other_with_cast.p1g_1))
|
|
1589
|
+
return false;
|
|
1588
1590
|
if (!equals(this.q1g_1, tmp0_other_with_cast.q1g_1))
|
|
1589
1591
|
return false;
|
|
1590
1592
|
if (!equals(this.r1g_1, tmp0_other_with_cast.r1g_1))
|
|
1591
1593
|
return false;
|
|
1592
|
-
if (!equals(this.s1g_1, tmp0_other_with_cast.s1g_1))
|
|
1593
|
-
return false;
|
|
1594
1594
|
return true;
|
|
1595
1595
|
};
|
|
1596
1596
|
//region block: post-declaration
|
|
1597
|
-
protoOf(Ansi16).
|
|
1598
|
-
protoOf(Ansi256).
|
|
1599
|
-
protoOf(HSV).
|
|
1600
|
-
protoOf(Companion_2).
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
protoOf(Companion_2).
|
|
1603
|
-
protoOf(SRGB).
|
|
1604
|
-
protoOf(SRGB).
|
|
1605
|
-
protoOf(SRGB).
|
|
1606
|
-
protoOf(RGBColorSpaceImpl).
|
|
1607
|
-
protoOf(RGBColorSpaceImpl).
|
|
1608
|
-
protoOf(RGBColorSpaceImpl).
|
|
1609
|
-
protoOf(RGBColorSpaceImpl).
|
|
1610
|
-
protoOf(RGBColorSpaceImpl).
|
|
1611
|
-
protoOf(RGBColorSpaceImpl).
|
|
1597
|
+
protoOf(Ansi16).k1c = toXYZ;
|
|
1598
|
+
protoOf(Ansi256).k1c = toXYZ;
|
|
1599
|
+
protoOf(HSV).k1c = toXYZ;
|
|
1600
|
+
protoOf(Companion_2).i1d = from255$default;
|
|
1601
|
+
protoOf(Companion_2).h1d = invoke$default;
|
|
1602
|
+
protoOf(Companion_2).m1d = invoke$default_0;
|
|
1603
|
+
protoOf(SRGB).i1d = from255$default;
|
|
1604
|
+
protoOf(SRGB).h1d = invoke$default;
|
|
1605
|
+
protoOf(SRGB).m1d = invoke$default_0;
|
|
1606
|
+
protoOf(RGBColorSpaceImpl).h1d = invoke$default;
|
|
1607
|
+
protoOf(RGBColorSpaceImpl).y1e = invoke;
|
|
1608
|
+
protoOf(RGBColorSpaceImpl).m1d = invoke$default_0;
|
|
1609
|
+
protoOf(RGBColorSpaceImpl).a1f = invoke_0;
|
|
1610
|
+
protoOf(RGBColorSpaceImpl).z1e = from255;
|
|
1611
|
+
protoOf(RGBColorSpaceImpl).i1d = from255$default;
|
|
1612
1612
|
//endregion
|
|
1613
1613
|
//region block: init
|
|
1614
1614
|
PqNonlinearity_instance = new PqNonlinearity();
|