mrs-toolbox-cli 0.0.136 → 0.0.137
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/clikt-clikt-mordant.js +17 -17
- package/clikt-clikt.js +1257 -1257
- package/colormath-root-colormath.js +430 -430
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1 -1
- package/mordant-mordant.js +561 -561
- package/mrs-toolbox-cli.d.ts +26 -0
- package/mrs-toolbox-cli.js +176 -176
- package/package.json +1 -1
- package/toolbox.js +1566 -1223
- package/toolbox.js.map +1 -1
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
//endregion
|
|
43
43
|
//region block: pre-declaration
|
|
44
44
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
45
|
+
return this.a7a().b7a();
|
|
46
46
|
}
|
|
47
47
|
initMetadataForInterface(Color, 'Color');
|
|
48
48
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -62,21 +62,21 @@
|
|
|
62
62
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
63
63
|
function invoke$default(r, g, b, alpha, $super) {
|
|
64
64
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
65
|
-
return $super === VOID ? this.
|
|
65
|
+
return $super === VOID ? this.m7b(r, g, b, alpha) : $super.m7b.call(this, r, g, b, alpha);
|
|
66
66
|
}
|
|
67
67
|
function invoke(r, g, b, alpha) {
|
|
68
|
-
return this.
|
|
68
|
+
return this.m7b(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
69
69
|
}
|
|
70
70
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
71
71
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
72
|
-
return $super === VOID ? this.
|
|
72
|
+
return $super === VOID ? this.r7c(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
73
73
|
}
|
|
74
74
|
function from255(r, g, b, alpha) {
|
|
75
|
-
return this.
|
|
75
|
+
return this.m7b(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
76
76
|
}
|
|
77
77
|
function from255$default(r, g, b, alpha, $super) {
|
|
78
78
|
alpha = alpha === VOID ? 255 : alpha;
|
|
79
|
-
return $super === VOID ? this.
|
|
79
|
+
return $super === VOID ? this.s7c(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
80
80
|
}
|
|
81
81
|
function invoke_0(hex) {
|
|
82
82
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
} else {
|
|
93
93
|
tmp_2 = 255;
|
|
94
94
|
}
|
|
95
|
-
return this.
|
|
95
|
+
return this.s7c(tmp, tmp_0, tmp_1, tmp_2);
|
|
96
96
|
}
|
|
97
97
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
98
98
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -116,28 +116,28 @@
|
|
|
116
116
|
function Color() {
|
|
117
117
|
}
|
|
118
118
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
122
|
-
this.
|
|
119
|
+
this.h7a_1 = name;
|
|
120
|
+
this.i7a_1 = isPolar;
|
|
121
|
+
this.j7a_1 = min;
|
|
122
|
+
this.k7a_1 = max;
|
|
123
123
|
// Inline function 'kotlin.require' call
|
|
124
124
|
// Inline function 'kotlin.contracts.contract' call
|
|
125
|
-
if (!(this.
|
|
125
|
+
if (!(this.j7a_1 <= this.k7a_1)) {
|
|
126
126
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
127
127
|
var message = 'min must be less than or equal to max';
|
|
128
128
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function WhitePoint(name, chromaticity) {
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
132
|
+
this.l7a_1 = name;
|
|
133
|
+
this.m7a_1 = chromaticity;
|
|
134
134
|
}
|
|
135
135
|
protoOf(WhitePoint).toString = function () {
|
|
136
|
-
return this.
|
|
136
|
+
return this.l7a_1;
|
|
137
137
|
};
|
|
138
138
|
protoOf(WhitePoint).hashCode = function () {
|
|
139
|
-
var result = getStringHashCode(this.
|
|
140
|
-
result = imul(result, 31) + this.
|
|
139
|
+
var result = getStringHashCode(this.l7a_1);
|
|
140
|
+
result = imul(result, 31) + this.m7a_1.hashCode() | 0;
|
|
141
141
|
return result;
|
|
142
142
|
};
|
|
143
143
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -146,22 +146,22 @@
|
|
|
146
146
|
if (!(other instanceof WhitePoint))
|
|
147
147
|
return false;
|
|
148
148
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
149
|
-
if (!(this.
|
|
149
|
+
if (!(this.l7a_1 === tmp0_other_with_cast.l7a_1))
|
|
150
150
|
return false;
|
|
151
|
-
if (!this.
|
|
151
|
+
if (!this.m7a_1.equals(tmp0_other_with_cast.m7a_1))
|
|
152
152
|
return false;
|
|
153
153
|
return true;
|
|
154
154
|
};
|
|
155
155
|
function Illuminant() {
|
|
156
156
|
Illuminant_instance = this;
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
163
|
-
this.
|
|
164
|
-
this.
|
|
157
|
+
this.n7a_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
158
|
+
this.o7a_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
159
|
+
this.p7a_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
160
|
+
this.q7a_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
161
|
+
this.r7a_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
162
|
+
this.s7a_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
163
|
+
this.t7a_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
164
|
+
this.u7a_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
165
165
|
}
|
|
166
166
|
var Illuminant_instance;
|
|
167
167
|
function Illuminant_getInstance() {
|
|
@@ -296,22 +296,22 @@
|
|
|
296
296
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
297
297
|
if (!(other instanceof Matrix))
|
|
298
298
|
return false;
|
|
299
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
299
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.v7a_1 : THROW_CCE();
|
|
300
300
|
if (!equals($this, tmp0_other_with_cast))
|
|
301
301
|
return false;
|
|
302
302
|
return true;
|
|
303
303
|
}
|
|
304
304
|
function Matrix(rowMajor) {
|
|
305
|
-
this.
|
|
305
|
+
this.v7a_1 = rowMajor;
|
|
306
306
|
}
|
|
307
307
|
protoOf(Matrix).toString = function () {
|
|
308
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
308
|
+
return Matrix__toString_impl_l0abk0(this.v7a_1);
|
|
309
309
|
};
|
|
310
310
|
protoOf(Matrix).hashCode = function () {
|
|
311
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
311
|
+
return Matrix__hashCode_impl_s9ntm9(this.v7a_1);
|
|
312
312
|
};
|
|
313
313
|
protoOf(Matrix).equals = function (other) {
|
|
314
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
314
|
+
return Matrix__equals_impl_g5p8p9(this.v7a_1, other);
|
|
315
315
|
};
|
|
316
316
|
function inverse(_this__u8e3s4, inPlace) {
|
|
317
317
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -389,22 +389,22 @@
|
|
|
389
389
|
function Vector__equals_impl_hy6igl($this, other) {
|
|
390
390
|
if (!(other instanceof Vector))
|
|
391
391
|
return false;
|
|
392
|
-
var tmp0_other_with_cast = other instanceof Vector ? other.
|
|
392
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.w7a_1 : THROW_CCE();
|
|
393
393
|
if (!equals($this, tmp0_other_with_cast))
|
|
394
394
|
return false;
|
|
395
395
|
return true;
|
|
396
396
|
}
|
|
397
397
|
function Vector(values) {
|
|
398
|
-
this.
|
|
398
|
+
this.w7a_1 = values;
|
|
399
399
|
}
|
|
400
400
|
protoOf(Vector).toString = function () {
|
|
401
|
-
return Vector__toString_impl_hn2ybi(this.
|
|
401
|
+
return Vector__toString_impl_hn2ybi(this.w7a_1);
|
|
402
402
|
};
|
|
403
403
|
protoOf(Vector).hashCode = function () {
|
|
404
|
-
return Vector__hashCode_impl_442yhd(this.
|
|
404
|
+
return Vector__hashCode_impl_442yhd(this.w7a_1);
|
|
405
405
|
};
|
|
406
406
|
protoOf(Vector).equals = function (other) {
|
|
407
|
-
return Vector__equals_impl_hy6igl(this.
|
|
407
|
+
return Vector__equals_impl_hy6igl(this.w7a_1, other);
|
|
408
408
|
};
|
|
409
409
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
410
410
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
@@ -415,10 +415,10 @@
|
|
|
415
415
|
}
|
|
416
416
|
function Companion() {
|
|
417
417
|
Companion_instance = this;
|
|
418
|
-
this.
|
|
418
|
+
this.x7a_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
419
419
|
}
|
|
420
|
-
protoOf(Companion).
|
|
421
|
-
return this.
|
|
420
|
+
protoOf(Companion).y7a = function () {
|
|
421
|
+
return this.x7a_1;
|
|
422
422
|
};
|
|
423
423
|
var Companion_instance;
|
|
424
424
|
function Companion_getInstance() {
|
|
@@ -428,38 +428,38 @@
|
|
|
428
428
|
}
|
|
429
429
|
function Ansi16(code) {
|
|
430
430
|
Companion_getInstance();
|
|
431
|
-
this.
|
|
431
|
+
this.z7a_1 = code;
|
|
432
432
|
}
|
|
433
|
-
protoOf(Ansi16).
|
|
433
|
+
protoOf(Ansi16).z79 = function () {
|
|
434
434
|
return Companion_getInstance();
|
|
435
435
|
};
|
|
436
|
-
protoOf(Ansi16).
|
|
437
|
-
switch (this.
|
|
436
|
+
protoOf(Ansi16).a7a = function () {
|
|
437
|
+
switch (this.z7a_1) {
|
|
438
438
|
case 30:
|
|
439
439
|
case 40:
|
|
440
|
-
return Companion_getInstance_2().
|
|
440
|
+
return Companion_getInstance_2().a7b(0.0, 0.0, 0.0);
|
|
441
441
|
case 90:
|
|
442
442
|
case 100:
|
|
443
|
-
return Companion_getInstance_2().
|
|
443
|
+
return Companion_getInstance_2().b7b(128, 128, 128);
|
|
444
444
|
case 37:
|
|
445
445
|
case 47:
|
|
446
|
-
return Companion_getInstance_2().
|
|
446
|
+
return Companion_getInstance_2().b7b(192, 192, 192);
|
|
447
447
|
case 97:
|
|
448
448
|
case 107:
|
|
449
|
-
return Companion_getInstance_2().
|
|
449
|
+
return Companion_getInstance_2().a7b(1.0, 1.0, 1.0);
|
|
450
450
|
}
|
|
451
|
-
var color = this.
|
|
452
|
-
var mul = this.
|
|
451
|
+
var color = this.z7a_1 % 10 | 0;
|
|
452
|
+
var mul = this.z7a_1 > 50 ? 1.0 : 0.5;
|
|
453
453
|
var r = (color % 2 | 0) * mul;
|
|
454
454
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
455
455
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
456
|
-
return Companion_getInstance_2().
|
|
456
|
+
return Companion_getInstance_2().a7b(r, g, b);
|
|
457
457
|
};
|
|
458
458
|
protoOf(Ansi16).toString = function () {
|
|
459
|
-
return 'Ansi16(code=' + this.
|
|
459
|
+
return 'Ansi16(code=' + this.z7a_1 + ')';
|
|
460
460
|
};
|
|
461
461
|
protoOf(Ansi16).hashCode = function () {
|
|
462
|
-
return this.
|
|
462
|
+
return this.z7a_1;
|
|
463
463
|
};
|
|
464
464
|
protoOf(Ansi16).equals = function (other) {
|
|
465
465
|
if (this === other)
|
|
@@ -467,16 +467,16 @@
|
|
|
467
467
|
if (!(other instanceof Ansi16))
|
|
468
468
|
return false;
|
|
469
469
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
470
|
-
if (!(this.
|
|
470
|
+
if (!(this.z7a_1 === tmp0_other_with_cast.z7a_1))
|
|
471
471
|
return false;
|
|
472
472
|
return true;
|
|
473
473
|
};
|
|
474
474
|
function Companion_0() {
|
|
475
475
|
Companion_instance_0 = this;
|
|
476
|
-
this.
|
|
476
|
+
this.c7b_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
477
477
|
}
|
|
478
|
-
protoOf(Companion_0).
|
|
479
|
-
return this.
|
|
478
|
+
protoOf(Companion_0).y7a = function () {
|
|
479
|
+
return this.c7b_1;
|
|
480
480
|
};
|
|
481
481
|
var Companion_instance_0;
|
|
482
482
|
function Companion_getInstance_0() {
|
|
@@ -486,19 +486,19 @@
|
|
|
486
486
|
}
|
|
487
487
|
function Ansi256(code) {
|
|
488
488
|
Companion_getInstance_0();
|
|
489
|
-
this.
|
|
489
|
+
this.d7b_1 = code;
|
|
490
490
|
}
|
|
491
|
-
protoOf(Ansi256).
|
|
491
|
+
protoOf(Ansi256).z79 = function () {
|
|
492
492
|
return Companion_getInstance_0();
|
|
493
493
|
};
|
|
494
|
-
protoOf(Ansi256).
|
|
495
|
-
if (this.
|
|
496
|
-
return this.
|
|
497
|
-
if (this.
|
|
498
|
-
var c = imul(this.
|
|
499
|
-
return Companion_getInstance_2().
|
|
494
|
+
protoOf(Ansi256).a7a = function () {
|
|
495
|
+
if (this.d7b_1 < 16)
|
|
496
|
+
return this.e7b().a7a();
|
|
497
|
+
if (this.d7b_1 >= 232) {
|
|
498
|
+
var c = imul(this.d7b_1 - 232 | 0, 10) + 8 | 0;
|
|
499
|
+
return Companion_getInstance_2().b7b(c, c, c);
|
|
500
500
|
}
|
|
501
|
-
var c_0 = this.
|
|
501
|
+
var c_0 = this.d7b_1 - 16 | 0;
|
|
502
502
|
var rem = c_0 % 36 | 0;
|
|
503
503
|
// Inline function 'kotlin.math.floor' call
|
|
504
504
|
var x = c_0 / 36.0;
|
|
@@ -507,16 +507,16 @@
|
|
|
507
507
|
var x_0 = rem / 6.0;
|
|
508
508
|
var g = Math.floor(x_0) / 5.0;
|
|
509
509
|
var b = (rem % 6 | 0) / 5.0;
|
|
510
|
-
return Companion_getInstance_2().
|
|
510
|
+
return Companion_getInstance_2().f7b(r, g, b);
|
|
511
511
|
};
|
|
512
|
-
protoOf(Ansi256).
|
|
513
|
-
return this.
|
|
512
|
+
protoOf(Ansi256).e7b = function () {
|
|
513
|
+
return this.d7b_1 < 8 ? new Ansi16(this.d7b_1 + 30 | 0) : this.d7b_1 < 16 ? new Ansi16((this.d7b_1 - 8 | 0) + 90 | 0) : this.a7a().e7b();
|
|
514
514
|
};
|
|
515
515
|
protoOf(Ansi256).toString = function () {
|
|
516
|
-
return 'Ansi256(code=' + this.
|
|
516
|
+
return 'Ansi256(code=' + this.d7b_1 + ')';
|
|
517
517
|
};
|
|
518
518
|
protoOf(Ansi256).hashCode = function () {
|
|
519
|
-
return this.
|
|
519
|
+
return this.d7b_1;
|
|
520
520
|
};
|
|
521
521
|
protoOf(Ansi256).equals = function (other) {
|
|
522
522
|
if (this === other)
|
|
@@ -524,16 +524,16 @@
|
|
|
524
524
|
if (!(other instanceof Ansi256))
|
|
525
525
|
return false;
|
|
526
526
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
527
|
-
if (!(this.
|
|
527
|
+
if (!(this.d7b_1 === tmp0_other_with_cast.d7b_1))
|
|
528
528
|
return false;
|
|
529
529
|
return true;
|
|
530
530
|
};
|
|
531
531
|
function Companion_1() {
|
|
532
532
|
Companion_instance_1 = this;
|
|
533
|
-
this.
|
|
533
|
+
this.g7b_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
534
534
|
}
|
|
535
|
-
protoOf(Companion_1).
|
|
536
|
-
return this.
|
|
535
|
+
protoOf(Companion_1).y7a = function () {
|
|
536
|
+
return this.g7b_1;
|
|
537
537
|
};
|
|
538
538
|
var Companion_instance_1;
|
|
539
539
|
function Companion_getInstance_1() {
|
|
@@ -552,30 +552,30 @@
|
|
|
552
552
|
function HSV(h, s, v, alpha) {
|
|
553
553
|
Companion_getInstance_1();
|
|
554
554
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
555
|
+
this.h7b_1 = h;
|
|
556
|
+
this.i7b_1 = s;
|
|
557
|
+
this.j7b_1 = v;
|
|
558
|
+
this.k7b_1 = alpha;
|
|
559
559
|
}
|
|
560
|
-
protoOf(HSV).
|
|
560
|
+
protoOf(HSV).z79 = function () {
|
|
561
561
|
return Companion_getInstance_1();
|
|
562
562
|
};
|
|
563
|
-
protoOf(HSV).
|
|
564
|
-
if (this.
|
|
565
|
-
return Companion_getInstance_2().
|
|
566
|
-
var v = this.
|
|
567
|
-
var h = normalizeDeg_0(this.
|
|
568
|
-
var s = this.
|
|
569
|
-
return SRGB_getInstance().
|
|
563
|
+
protoOf(HSV).a7a = function () {
|
|
564
|
+
if (this.i7b_1 < 1.0E-7)
|
|
565
|
+
return Companion_getInstance_2().m7b(this.j7b_1, this.j7b_1, this.j7b_1, this.k7b_1);
|
|
566
|
+
var v = this.j7b_1;
|
|
567
|
+
var h = normalizeDeg_0(this.h7b_1) / 60.0;
|
|
568
|
+
var s = this.i7b_1;
|
|
569
|
+
return SRGB_getInstance().m7b(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.k7b_1);
|
|
570
570
|
};
|
|
571
571
|
protoOf(HSV).toString = function () {
|
|
572
|
-
return 'HSV(h=' + this.
|
|
572
|
+
return 'HSV(h=' + this.h7b_1 + ', s=' + this.i7b_1 + ', v=' + this.j7b_1 + ', alpha=' + this.k7b_1 + ')';
|
|
573
573
|
};
|
|
574
574
|
protoOf(HSV).hashCode = function () {
|
|
575
|
-
var result = getNumberHashCode(this.
|
|
576
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
577
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
578
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
575
|
+
var result = getNumberHashCode(this.h7b_1);
|
|
576
|
+
result = imul(result, 31) + getNumberHashCode(this.i7b_1) | 0;
|
|
577
|
+
result = imul(result, 31) + getNumberHashCode(this.j7b_1) | 0;
|
|
578
|
+
result = imul(result, 31) + getNumberHashCode(this.k7b_1) | 0;
|
|
579
579
|
return result;
|
|
580
580
|
};
|
|
581
581
|
protoOf(HSV).equals = function (other) {
|
|
@@ -584,13 +584,13 @@
|
|
|
584
584
|
if (!(other instanceof HSV))
|
|
585
585
|
return false;
|
|
586
586
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
587
|
-
if (!equals(this.
|
|
587
|
+
if (!equals(this.h7b_1, tmp0_other_with_cast.h7b_1))
|
|
588
588
|
return false;
|
|
589
|
-
if (!equals(this.
|
|
589
|
+
if (!equals(this.i7b_1, tmp0_other_with_cast.i7b_1))
|
|
590
590
|
return false;
|
|
591
|
-
if (!equals(this.
|
|
591
|
+
if (!equals(this.j7b_1, tmp0_other_with_cast.j7b_1))
|
|
592
592
|
return false;
|
|
593
|
-
if (!equals(this.
|
|
593
|
+
if (!equals(this.k7b_1, tmp0_other_with_cast.k7b_1))
|
|
594
594
|
return false;
|
|
595
595
|
return true;
|
|
596
596
|
};
|
|
@@ -632,45 +632,45 @@
|
|
|
632
632
|
var ICTCP_LMS_TO_XYZ;
|
|
633
633
|
function ICtCp() {
|
|
634
634
|
}
|
|
635
|
-
protoOf(ICtCp).
|
|
636
|
-
var fo = RGBColorSpaces_getInstance().
|
|
635
|
+
protoOf(ICtCp).s7b = function () {
|
|
636
|
+
var fo = RGBColorSpaces_getInstance().a7c_1.f7c();
|
|
637
637
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
638
638
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
639
|
-
var v0 = this.
|
|
640
|
-
var v1 = this.
|
|
641
|
-
var v2 = this.
|
|
639
|
+
var v0 = this.o7b_1;
|
|
640
|
+
var v1 = this.p7b_1;
|
|
641
|
+
var v2 = this.q7b_1;
|
|
642
642
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
643
643
|
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;
|
|
644
644
|
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;
|
|
645
645
|
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;
|
|
646
646
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
647
647
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
648
|
-
var v0_0 = PqNonlinearity_instance.
|
|
649
|
-
var v1_0 = PqNonlinearity_instance.
|
|
650
|
-
var v2_0 = PqNonlinearity_instance.
|
|
648
|
+
var v0_0 = PqNonlinearity_instance.o7c(l);
|
|
649
|
+
var v1_0 = PqNonlinearity_instance.o7c(m);
|
|
650
|
+
var v2_0 = PqNonlinearity_instance.o7c(s);
|
|
651
651
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
652
652
|
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;
|
|
653
653
|
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;
|
|
654
654
|
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;
|
|
655
|
-
return RGBColorSpaces_getInstance().
|
|
655
|
+
return RGBColorSpaces_getInstance().a7c_1.m7b(fo.p7c(r), fo.p7c(g), fo.p7c(b), this.r7b_1);
|
|
656
656
|
};
|
|
657
657
|
function PqNonlinearity() {
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
}
|
|
667
|
-
protoOf(PqNonlinearity).
|
|
658
|
+
this.g7c_1 = 0.1593017578125;
|
|
659
|
+
this.h7c_1 = 78.84375;
|
|
660
|
+
this.i7c_1 = 0.8359375;
|
|
661
|
+
this.j7c_1 = 18.8515625;
|
|
662
|
+
this.k7c_1 = 18.6875;
|
|
663
|
+
this.l7c_1 = 10000.0;
|
|
664
|
+
this.m7c_1 = 6.277394636015326;
|
|
665
|
+
this.n7c_1 = 0.012683313515655966;
|
|
666
|
+
}
|
|
667
|
+
protoOf(PqNonlinearity).o7c = function (x) {
|
|
668
668
|
var vp = spow(x, 0.012683313515655966);
|
|
669
669
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
670
670
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
671
671
|
return 10000.0 * l;
|
|
672
672
|
};
|
|
673
|
-
protoOf(PqNonlinearity).
|
|
673
|
+
protoOf(PqNonlinearity).p7c = function (x) {
|
|
674
674
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
675
675
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
676
676
|
};
|
|
@@ -693,19 +693,19 @@
|
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
function GammaTransferFunctions(gamma) {
|
|
696
|
-
this.
|
|
696
|
+
this.q7c_1 = gamma;
|
|
697
697
|
}
|
|
698
|
-
protoOf(GammaTransferFunctions).
|
|
699
|
-
return spow(x, this.
|
|
698
|
+
protoOf(GammaTransferFunctions).o7c = function (x) {
|
|
699
|
+
return spow(x, this.q7c_1);
|
|
700
700
|
};
|
|
701
|
-
protoOf(GammaTransferFunctions).
|
|
702
|
-
return spow(x, 1.0 / this.
|
|
701
|
+
protoOf(GammaTransferFunctions).p7c = function (x) {
|
|
702
|
+
return spow(x, 1.0 / this.q7c_1);
|
|
703
703
|
};
|
|
704
704
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
705
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
705
|
+
return 'GammaTransferFunctions(gamma=' + this.q7c_1 + ')';
|
|
706
706
|
};
|
|
707
707
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
708
|
-
return getNumberHashCode(this.
|
|
708
|
+
return getNumberHashCode(this.q7c_1);
|
|
709
709
|
};
|
|
710
710
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
711
711
|
if (this === other)
|
|
@@ -713,16 +713,16 @@
|
|
|
713
713
|
if (!(other instanceof GammaTransferFunctions))
|
|
714
714
|
return false;
|
|
715
715
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
716
|
-
if (!equals(this.
|
|
716
|
+
if (!equals(this.q7c_1, tmp0_other_with_cast.q7c_1))
|
|
717
717
|
return false;
|
|
718
718
|
return true;
|
|
719
719
|
};
|
|
720
720
|
function LinearTransferFunctions() {
|
|
721
721
|
}
|
|
722
|
-
protoOf(LinearTransferFunctions).
|
|
722
|
+
protoOf(LinearTransferFunctions).o7c = function (x) {
|
|
723
723
|
return x;
|
|
724
724
|
};
|
|
725
|
-
protoOf(LinearTransferFunctions).
|
|
725
|
+
protoOf(LinearTransferFunctions).p7c = function (x) {
|
|
726
726
|
return x;
|
|
727
727
|
};
|
|
728
728
|
var LinearTransferFunctions_instance;
|
|
@@ -733,43 +733,43 @@
|
|
|
733
733
|
}
|
|
734
734
|
function Companion_2() {
|
|
735
735
|
Companion_instance_2 = this;
|
|
736
|
-
this.
|
|
736
|
+
this.l7b_1 = RGBColorSpaces_getInstance().t7b_1;
|
|
737
737
|
}
|
|
738
|
-
protoOf(Companion_2).
|
|
739
|
-
return this.
|
|
738
|
+
protoOf(Companion_2).m7b = function (r, g, b, alpha) {
|
|
739
|
+
return this.l7b_1.m7b(r, g, b, alpha);
|
|
740
740
|
};
|
|
741
|
-
protoOf(Companion_2).
|
|
742
|
-
return this.
|
|
741
|
+
protoOf(Companion_2).r7c = function (r, g, b, alpha) {
|
|
742
|
+
return this.l7b_1.r7c(r, g, b, alpha);
|
|
743
743
|
};
|
|
744
|
-
protoOf(Companion_2).
|
|
745
|
-
return this.
|
|
744
|
+
protoOf(Companion_2).t7c = function (hex) {
|
|
745
|
+
return this.l7b_1.t7c(hex);
|
|
746
746
|
};
|
|
747
|
-
protoOf(Companion_2).
|
|
748
|
-
return this.
|
|
747
|
+
protoOf(Companion_2).s7c = function (r, g, b, alpha) {
|
|
748
|
+
return this.l7b_1.s7c(r, g, b, alpha);
|
|
749
749
|
};
|
|
750
|
-
protoOf(Companion_2).
|
|
751
|
-
return this.
|
|
750
|
+
protoOf(Companion_2).f7c = function () {
|
|
751
|
+
return this.l7b_1.f7c();
|
|
752
752
|
};
|
|
753
|
-
protoOf(Companion_2).
|
|
754
|
-
return this.
|
|
753
|
+
protoOf(Companion_2).u7c = function () {
|
|
754
|
+
return this.l7b_1.u7c();
|
|
755
755
|
};
|
|
756
|
-
protoOf(Companion_2).
|
|
757
|
-
return this.
|
|
756
|
+
protoOf(Companion_2).v7c = function () {
|
|
757
|
+
return this.l7b_1.v7c();
|
|
758
758
|
};
|
|
759
|
-
protoOf(Companion_2).
|
|
760
|
-
return this.
|
|
759
|
+
protoOf(Companion_2).w7c = function () {
|
|
760
|
+
return this.l7b_1.w7c();
|
|
761
761
|
};
|
|
762
762
|
protoOf(Companion_2).t2 = function () {
|
|
763
|
-
return this.
|
|
763
|
+
return this.l7b_1.t2();
|
|
764
764
|
};
|
|
765
|
-
protoOf(Companion_2).
|
|
766
|
-
return this.
|
|
765
|
+
protoOf(Companion_2).y7a = function () {
|
|
766
|
+
return this.l7b_1.y7a();
|
|
767
767
|
};
|
|
768
768
|
protoOf(Companion_2).equals = function (other) {
|
|
769
|
-
return equals(RGBColorSpaces_getInstance().
|
|
769
|
+
return equals(RGBColorSpaces_getInstance().t7b_1, other);
|
|
770
770
|
};
|
|
771
771
|
protoOf(Companion_2).hashCode = function () {
|
|
772
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
772
|
+
return hashCode(RGBColorSpaces_getInstance().t7b_1);
|
|
773
773
|
};
|
|
774
774
|
var Companion_instance_2;
|
|
775
775
|
function Companion_getInstance_2() {
|
|
@@ -778,47 +778,47 @@
|
|
|
778
778
|
return Companion_instance_2;
|
|
779
779
|
}
|
|
780
780
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
781
|
-
return receiver.
|
|
781
|
+
return receiver.x7c(p0, p1, p2, p3);
|
|
782
782
|
}
|
|
783
783
|
function RGB(r, g, b, alpha, space) {
|
|
784
784
|
Companion_getInstance_2();
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
this.
|
|
785
|
+
this.c7a_1 = r;
|
|
786
|
+
this.d7a_1 = g;
|
|
787
|
+
this.e7a_1 = b;
|
|
788
|
+
this.f7a_1 = alpha;
|
|
789
|
+
this.g7a_1 = space;
|
|
790
790
|
}
|
|
791
|
-
protoOf(RGB).
|
|
792
|
-
return this.
|
|
791
|
+
protoOf(RGB).z79 = function () {
|
|
792
|
+
return this.g7a_1;
|
|
793
793
|
};
|
|
794
|
-
protoOf(RGB).
|
|
794
|
+
protoOf(RGB).y7c = function () {
|
|
795
795
|
// Inline function 'kotlin.math.roundToInt' call
|
|
796
|
-
var this_0 = this.
|
|
796
|
+
var this_0 = this.c7a_1 * 255;
|
|
797
797
|
return roundToInt(this_0);
|
|
798
798
|
};
|
|
799
|
-
protoOf(RGB).
|
|
799
|
+
protoOf(RGB).z7c = function () {
|
|
800
800
|
// Inline function 'kotlin.math.roundToInt' call
|
|
801
|
-
var this_0 = this.
|
|
801
|
+
var this_0 = this.d7a_1 * 255;
|
|
802
802
|
return roundToInt(this_0);
|
|
803
803
|
};
|
|
804
|
-
protoOf(RGB).
|
|
804
|
+
protoOf(RGB).a7d = function () {
|
|
805
805
|
// Inline function 'kotlin.math.roundToInt' call
|
|
806
|
-
var this_0 = this.
|
|
806
|
+
var this_0 = this.e7a_1 * 255;
|
|
807
807
|
return roundToInt(this_0);
|
|
808
808
|
};
|
|
809
|
-
protoOf(RGB).
|
|
810
|
-
var f = SRGB_getInstance().
|
|
811
|
-
return equals(this.
|
|
809
|
+
protoOf(RGB).b7d = function (space) {
|
|
810
|
+
var f = SRGB_getInstance().f7c();
|
|
811
|
+
return equals(this.g7a_1, space) ? this : equals(this.g7a_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().u7b_1) ? space.m7b(f.o7c(this.c7a_1), f.o7c(this.d7a_1), f.o7c(this.e7a_1), this.f7a_1) : equals(this.g7a_1, RGBColorSpaces_getInstance().u7b_1) && equals(space, SRGB_getInstance()) ? space.m7b(f.p7c(this.c7a_1), f.p7c(this.d7a_1), f.p7c(this.e7a_1), this.f7a_1) : this.b7a().h7d(space);
|
|
812
812
|
};
|
|
813
|
-
protoOf(RGB).
|
|
813
|
+
protoOf(RGB).i7d = function () {
|
|
814
814
|
var tmp$ret$3;
|
|
815
815
|
$l$block: {
|
|
816
816
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
817
817
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
818
|
-
var $this$toSRGB = this.
|
|
819
|
-
var r = $this$toSRGB.
|
|
820
|
-
var g = $this$toSRGB.
|
|
821
|
-
var b = $this$toSRGB.
|
|
818
|
+
var $this$toSRGB = this.b7d(SRGB_getInstance());
|
|
819
|
+
var r = $this$toSRGB.c7a_1;
|
|
820
|
+
var g = $this$toSRGB.d7a_1;
|
|
821
|
+
var b = $this$toSRGB.e7a_1;
|
|
822
822
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
823
823
|
var min = Math.min(r, g, b);
|
|
824
824
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -828,81 +828,81 @@
|
|
|
828
828
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
829
829
|
var h_0 = normalizeDeg(h);
|
|
830
830
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
831
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
831
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.f7a_1);
|
|
832
832
|
break $l$block;
|
|
833
833
|
}
|
|
834
834
|
return tmp$ret$3;
|
|
835
835
|
};
|
|
836
|
-
protoOf(RGB).
|
|
837
|
-
var f = this.
|
|
836
|
+
protoOf(RGB).b7a = function () {
|
|
837
|
+
var f = this.g7a_1.f7c();
|
|
838
838
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
839
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
840
|
-
var v0 = f.
|
|
841
|
-
var v1 = f.
|
|
842
|
-
var v2 = f.
|
|
839
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.g7a_1.u7c());
|
|
840
|
+
var v0 = f.o7c(this.c7a_1);
|
|
841
|
+
var v1 = f.o7c(this.d7a_1);
|
|
842
|
+
var v2 = f.o7c(this.e7a_1);
|
|
843
843
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
844
844
|
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;
|
|
845
845
|
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;
|
|
846
846
|
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;
|
|
847
|
-
return XYZColorSpace_0(this.
|
|
847
|
+
return XYZColorSpace_0(this.g7a_1.w7c()).m7b(x, y, z, this.f7a_1);
|
|
848
848
|
};
|
|
849
|
-
protoOf(RGB).
|
|
849
|
+
protoOf(RGB).e7b = function () {
|
|
850
850
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
851
|
-
var $this$toSRGB = this.
|
|
851
|
+
var $this$toSRGB = this.b7d(SRGB_getInstance());
|
|
852
852
|
// Inline function 'kotlin.math.roundToInt' call
|
|
853
|
-
var this_0 = $this$toSRGB.
|
|
853
|
+
var this_0 = $this$toSRGB.i7d().j7b_1 * 100;
|
|
854
854
|
var value = roundToInt(this_0);
|
|
855
855
|
if (value === 30)
|
|
856
856
|
return new Ansi16(30);
|
|
857
857
|
var v = value / 50 | 0;
|
|
858
858
|
// Inline function 'kotlin.math.roundToInt' call
|
|
859
|
-
var this_1 = $this$toSRGB.
|
|
859
|
+
var this_1 = $this$toSRGB.e7a_1;
|
|
860
860
|
var tmp$ret$1 = roundToInt(this_1);
|
|
861
861
|
var tmp = imul(tmp$ret$1, 4);
|
|
862
862
|
// Inline function 'kotlin.math.roundToInt' call
|
|
863
|
-
var this_2 = $this$toSRGB.
|
|
863
|
+
var this_2 = $this$toSRGB.d7a_1;
|
|
864
864
|
var tmp$ret$2 = roundToInt(this_2);
|
|
865
865
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
866
866
|
// Inline function 'kotlin.math.roundToInt' call
|
|
867
|
-
var this_3 = $this$toSRGB.
|
|
867
|
+
var this_3 = $this$toSRGB.c7a_1;
|
|
868
868
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
869
869
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
870
870
|
};
|
|
871
|
-
protoOf(RGB).
|
|
871
|
+
protoOf(RGB).j7d = function () {
|
|
872
872
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
873
|
-
var $this$toSRGB = this.
|
|
874
|
-
var ri = $this$toSRGB.
|
|
875
|
-
var gi = $this$toSRGB.
|
|
876
|
-
var bi = $this$toSRGB.
|
|
873
|
+
var $this$toSRGB = this.b7d(SRGB_getInstance());
|
|
874
|
+
var ri = $this$toSRGB.y7c();
|
|
875
|
+
var gi = $this$toSRGB.z7c();
|
|
876
|
+
var bi = $this$toSRGB.a7d();
|
|
877
877
|
var tmp;
|
|
878
878
|
if (ri === gi && gi === bi) {
|
|
879
879
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
880
880
|
} else {
|
|
881
881
|
// Inline function 'kotlin.math.roundToInt' call
|
|
882
|
-
var this_0 = $this$toSRGB.
|
|
882
|
+
var this_0 = $this$toSRGB.c7a_1 * 5;
|
|
883
883
|
var tmp$ret$0 = roundToInt(this_0);
|
|
884
884
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
885
885
|
// Inline function 'kotlin.math.roundToInt' call
|
|
886
|
-
var this_1 = $this$toSRGB.
|
|
886
|
+
var this_1 = $this$toSRGB.d7a_1 * 5;
|
|
887
887
|
var tmp$ret$1 = roundToInt(this_1);
|
|
888
888
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
889
889
|
// Inline function 'kotlin.math.roundToInt' call
|
|
890
|
-
var this_2 = $this$toSRGB.
|
|
890
|
+
var this_2 = $this$toSRGB.e7a_1 * 5;
|
|
891
891
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
892
892
|
}
|
|
893
893
|
var code = tmp;
|
|
894
894
|
return new Ansi256(code);
|
|
895
895
|
};
|
|
896
|
-
protoOf(RGB).
|
|
897
|
-
return this.
|
|
896
|
+
protoOf(RGB).a7a = function () {
|
|
897
|
+
return this.b7d(RGBColorSpaces_getInstance().t7b_1);
|
|
898
898
|
};
|
|
899
|
-
protoOf(RGB).
|
|
899
|
+
protoOf(RGB).k7d = function () {
|
|
900
900
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
901
|
-
var v1 = this.
|
|
902
|
-
var v2 = this.
|
|
903
|
-
var v3 = this.
|
|
904
|
-
var alpha = this.
|
|
905
|
-
var _destruct__k2r9zo = this.
|
|
901
|
+
var v1 = this.c7a_1;
|
|
902
|
+
var v2 = this.d7a_1;
|
|
903
|
+
var v3 = this.e7a_1;
|
|
904
|
+
var alpha = this.f7a_1;
|
|
905
|
+
var _destruct__k2r9zo = this.z79().y7a();
|
|
906
906
|
// Inline function 'kotlin.collections.component1' call
|
|
907
907
|
var c1 = _destruct__k2r9zo.p(0);
|
|
908
908
|
// Inline function 'kotlin.collections.component2' call
|
|
@@ -913,16 +913,16 @@
|
|
|
913
913
|
var tmp_0;
|
|
914
914
|
var tmp_1;
|
|
915
915
|
var tmp_2;
|
|
916
|
-
var containsLower = c1.
|
|
917
|
-
if (v1 <= c1.
|
|
918
|
-
var containsLower_0 = c2.
|
|
919
|
-
tmp_2 = v2 <= c2.
|
|
916
|
+
var containsLower = c1.j7a_1;
|
|
917
|
+
if (v1 <= c1.k7a_1 ? containsLower <= v1 : false) {
|
|
918
|
+
var containsLower_0 = c2.j7a_1;
|
|
919
|
+
tmp_2 = v2 <= c2.k7a_1 ? containsLower_0 <= v2 : false;
|
|
920
920
|
} else {
|
|
921
921
|
tmp_2 = false;
|
|
922
922
|
}
|
|
923
923
|
if (tmp_2) {
|
|
924
|
-
var containsLower_1 = c3.
|
|
925
|
-
tmp_1 = v3 <= c3.
|
|
924
|
+
var containsLower_1 = c3.j7a_1;
|
|
925
|
+
tmp_1 = v3 <= c3.k7a_1 ? containsLower_1 <= v3 : false;
|
|
926
926
|
} else {
|
|
927
927
|
tmp_1 = false;
|
|
928
928
|
}
|
|
@@ -934,30 +934,30 @@
|
|
|
934
934
|
if (tmp_0) {
|
|
935
935
|
tmp = this;
|
|
936
936
|
} else {
|
|
937
|
-
tmp = clamp$copy(this, coerceIn(v1, c1.
|
|
937
|
+
tmp = clamp$copy(this, coerceIn(v1, c1.j7a_1, c1.k7a_1), coerceIn(v2, c2.j7a_1, c2.k7a_1), coerceIn(v3, c3.j7a_1, c3.k7a_1), coerceIn(alpha, 0.0, 1.0));
|
|
938
938
|
}
|
|
939
939
|
return tmp;
|
|
940
940
|
};
|
|
941
|
-
protoOf(RGB).
|
|
941
|
+
protoOf(RGB).l7d = function (r, g, b, alpha, space) {
|
|
942
942
|
return new RGB(r, g, b, alpha, space);
|
|
943
943
|
};
|
|
944
|
-
protoOf(RGB).
|
|
945
|
-
r = r === VOID ? this.
|
|
946
|
-
g = g === VOID ? this.
|
|
947
|
-
b = b === VOID ? this.
|
|
948
|
-
alpha = alpha === VOID ? this.
|
|
949
|
-
space = space === VOID ? this.
|
|
950
|
-
return $super === VOID ? this.
|
|
944
|
+
protoOf(RGB).x7c = function (r, g, b, alpha, space, $super) {
|
|
945
|
+
r = r === VOID ? this.c7a_1 : r;
|
|
946
|
+
g = g === VOID ? this.d7a_1 : g;
|
|
947
|
+
b = b === VOID ? this.e7a_1 : b;
|
|
948
|
+
alpha = alpha === VOID ? this.f7a_1 : alpha;
|
|
949
|
+
space = space === VOID ? this.g7a_1 : space;
|
|
950
|
+
return $super === VOID ? this.l7d(r, g, b, alpha, space) : $super.l7d.call(this, r, g, b, alpha, space);
|
|
951
951
|
};
|
|
952
952
|
protoOf(RGB).toString = function () {
|
|
953
|
-
return 'RGB(r=' + this.
|
|
953
|
+
return 'RGB(r=' + this.c7a_1 + ', g=' + this.d7a_1 + ', b=' + this.e7a_1 + ', alpha=' + this.f7a_1 + ', space=' + toString(this.g7a_1) + ')';
|
|
954
954
|
};
|
|
955
955
|
protoOf(RGB).hashCode = function () {
|
|
956
|
-
var result = getNumberHashCode(this.
|
|
957
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
958
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
959
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
960
|
-
result = imul(result, 31) + hashCode(this.
|
|
956
|
+
var result = getNumberHashCode(this.c7a_1);
|
|
957
|
+
result = imul(result, 31) + getNumberHashCode(this.d7a_1) | 0;
|
|
958
|
+
result = imul(result, 31) + getNumberHashCode(this.e7a_1) | 0;
|
|
959
|
+
result = imul(result, 31) + getNumberHashCode(this.f7a_1) | 0;
|
|
960
|
+
result = imul(result, 31) + hashCode(this.g7a_1) | 0;
|
|
961
961
|
return result;
|
|
962
962
|
};
|
|
963
963
|
protoOf(RGB).equals = function (other) {
|
|
@@ -966,15 +966,15 @@
|
|
|
966
966
|
if (!(other instanceof RGB))
|
|
967
967
|
return false;
|
|
968
968
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
969
|
-
if (!equals(this.
|
|
969
|
+
if (!equals(this.c7a_1, tmp0_other_with_cast.c7a_1))
|
|
970
970
|
return false;
|
|
971
|
-
if (!equals(this.
|
|
971
|
+
if (!equals(this.d7a_1, tmp0_other_with_cast.d7a_1))
|
|
972
972
|
return false;
|
|
973
|
-
if (!equals(this.
|
|
973
|
+
if (!equals(this.e7a_1, tmp0_other_with_cast.e7a_1))
|
|
974
974
|
return false;
|
|
975
|
-
if (!equals(this.
|
|
975
|
+
if (!equals(this.f7a_1, tmp0_other_with_cast.f7a_1))
|
|
976
976
|
return false;
|
|
977
|
-
if (!equals(this.
|
|
977
|
+
if (!equals(this.g7a_1, tmp0_other_with_cast.g7a_1))
|
|
978
978
|
return false;
|
|
979
979
|
return true;
|
|
980
980
|
};
|
|
@@ -1075,17 +1075,17 @@
|
|
|
1075
1075
|
}
|
|
1076
1076
|
var ACES_AP1_B;
|
|
1077
1077
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1078
|
-
return it.
|
|
1078
|
+
return it.a7a();
|
|
1079
1079
|
}
|
|
1080
1080
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1081
1081
|
var tmp;
|
|
1082
1082
|
if (color instanceof RGB) {
|
|
1083
|
-
tmp = color.
|
|
1083
|
+
tmp = color.b7d($this$RGBColorSpaceImpl);
|
|
1084
1084
|
} else {
|
|
1085
1085
|
if (color instanceof ICtCp) {
|
|
1086
|
-
tmp = color.
|
|
1086
|
+
tmp = color.s7b();
|
|
1087
1087
|
} else {
|
|
1088
|
-
tmp = color.
|
|
1088
|
+
tmp = color.b7a().h7d($this$RGBColorSpaceImpl);
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
return tmp;
|
|
@@ -1093,29 +1093,29 @@
|
|
|
1093
1093
|
function RGBColorSpaces() {
|
|
1094
1094
|
RGBColorSpaces_instance = this;
|
|
1095
1095
|
var tmp = this;
|
|
1096
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1096
|
+
var tmp_0 = Illuminant_getInstance().s7a_1;
|
|
1097
1097
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1098
1098
|
var tmp_2 = get_SRGB_R();
|
|
1099
1099
|
var tmp_3 = get_SRGB_G();
|
|
1100
1100
|
var tmp_4 = get_SRGB_B();
|
|
1101
|
-
tmp.
|
|
1102
|
-
this.
|
|
1103
|
-
this.
|
|
1104
|
-
this.
|
|
1105
|
-
this.
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1101
|
+
tmp.t7b_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1102
|
+
this.u7b_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().s7a_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1103
|
+
this.v7b_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1104
|
+
this.w7b_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1105
|
+
this.x7b_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1106
|
+
this.y7b_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1107
|
+
this.z7b_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().s7a_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));
|
|
1108
1108
|
var tmp_5 = this;
|
|
1109
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1109
|
+
var tmp_6 = Illuminant_getInstance().s7a_1;
|
|
1110
1110
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1111
1111
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1112
1112
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1113
1113
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1114
|
-
tmp_5.
|
|
1115
|
-
this.
|
|
1116
|
-
this.
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1114
|
+
tmp_5.a7c_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1115
|
+
this.b7c_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().s7a_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1116
|
+
this.c7c_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));
|
|
1117
|
+
this.d7c_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().s7a_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1118
|
+
this.e7c_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().q7a_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));
|
|
1119
1119
|
}
|
|
1120
1120
|
var RGBColorSpaces_instance;
|
|
1121
1121
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1125,43 +1125,43 @@
|
|
|
1125
1125
|
}
|
|
1126
1126
|
function SRGB() {
|
|
1127
1127
|
SRGB_instance = this;
|
|
1128
|
-
this.
|
|
1128
|
+
this.n7b_1 = RGBColorSpaces_getInstance().t7b_1;
|
|
1129
1129
|
}
|
|
1130
|
-
protoOf(SRGB).
|
|
1131
|
-
return this.
|
|
1130
|
+
protoOf(SRGB).m7b = function (r, g, b, alpha) {
|
|
1131
|
+
return this.n7b_1.m7b(r, g, b, alpha);
|
|
1132
1132
|
};
|
|
1133
|
-
protoOf(SRGB).
|
|
1134
|
-
return this.
|
|
1133
|
+
protoOf(SRGB).r7c = function (r, g, b, alpha) {
|
|
1134
|
+
return this.n7b_1.r7c(r, g, b, alpha);
|
|
1135
1135
|
};
|
|
1136
|
-
protoOf(SRGB).
|
|
1137
|
-
return this.
|
|
1136
|
+
protoOf(SRGB).t7c = function (hex) {
|
|
1137
|
+
return this.n7b_1.t7c(hex);
|
|
1138
1138
|
};
|
|
1139
|
-
protoOf(SRGB).
|
|
1140
|
-
return this.
|
|
1139
|
+
protoOf(SRGB).s7c = function (r, g, b, alpha) {
|
|
1140
|
+
return this.n7b_1.s7c(r, g, b, alpha);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf(SRGB).
|
|
1143
|
-
return this.
|
|
1142
|
+
protoOf(SRGB).f7c = function () {
|
|
1143
|
+
return this.n7b_1.f7c();
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf(SRGB).
|
|
1146
|
-
return this.
|
|
1145
|
+
protoOf(SRGB).u7c = function () {
|
|
1146
|
+
return this.n7b_1.u7c();
|
|
1147
1147
|
};
|
|
1148
|
-
protoOf(SRGB).
|
|
1149
|
-
return this.
|
|
1148
|
+
protoOf(SRGB).v7c = function () {
|
|
1149
|
+
return this.n7b_1.v7c();
|
|
1150
1150
|
};
|
|
1151
|
-
protoOf(SRGB).
|
|
1152
|
-
return this.
|
|
1151
|
+
protoOf(SRGB).w7c = function () {
|
|
1152
|
+
return this.n7b_1.w7c();
|
|
1153
1153
|
};
|
|
1154
1154
|
protoOf(SRGB).t2 = function () {
|
|
1155
|
-
return this.
|
|
1155
|
+
return this.n7b_1.t2();
|
|
1156
1156
|
};
|
|
1157
|
-
protoOf(SRGB).
|
|
1158
|
-
return this.
|
|
1157
|
+
protoOf(SRGB).y7a = function () {
|
|
1158
|
+
return this.n7b_1.y7a();
|
|
1159
1159
|
};
|
|
1160
1160
|
protoOf(SRGB).equals = function (other) {
|
|
1161
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1161
|
+
return equals(RGBColorSpaces_getInstance().t7b_1, other);
|
|
1162
1162
|
};
|
|
1163
1163
|
protoOf(SRGB).hashCode = function () {
|
|
1164
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1164
|
+
return hashCode(RGBColorSpaces_getInstance().t7b_1);
|
|
1165
1165
|
};
|
|
1166
1166
|
protoOf(SRGB).toString = function () {
|
|
1167
1167
|
return 'sRGB';
|
|
@@ -1173,39 +1173,39 @@
|
|
|
1173
1173
|
return SRGB_instance;
|
|
1174
1174
|
}
|
|
1175
1175
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1176
|
-
this.
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1176
|
+
this.m7d_1 = name;
|
|
1177
|
+
this.n7d_1 = whitePoint;
|
|
1178
|
+
this.o7d_1 = transferFunctions;
|
|
1179
|
+
this.p7d_1 = r;
|
|
1180
|
+
this.q7d_1 = g;
|
|
1181
|
+
this.r7d_1 = b;
|
|
1182
|
+
this.s7d_1 = convertImpl;
|
|
1183
|
+
this.t7d_1 = zeroOneComponentInfo('RGB');
|
|
1184
|
+
this.u7d_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.n7d_1, this.p7d_1, this.q7d_1, this.r7d_1));
|
|
1185
|
+
this.v7d_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.u7d_1)));
|
|
1186
1186
|
}
|
|
1187
1187
|
protoOf(RGBColorSpaceImpl).t2 = function () {
|
|
1188
|
-
return this.
|
|
1188
|
+
return this.m7d_1;
|
|
1189
1189
|
};
|
|
1190
|
-
protoOf(RGBColorSpaceImpl).
|
|
1191
|
-
return this.
|
|
1190
|
+
protoOf(RGBColorSpaceImpl).w7c = function () {
|
|
1191
|
+
return this.n7d_1;
|
|
1192
1192
|
};
|
|
1193
|
-
protoOf(RGBColorSpaceImpl).
|
|
1194
|
-
return this.
|
|
1193
|
+
protoOf(RGBColorSpaceImpl).f7c = function () {
|
|
1194
|
+
return this.o7d_1;
|
|
1195
1195
|
};
|
|
1196
|
-
protoOf(RGBColorSpaceImpl).
|
|
1197
|
-
return this.
|
|
1196
|
+
protoOf(RGBColorSpaceImpl).y7a = function () {
|
|
1197
|
+
return this.t7d_1;
|
|
1198
1198
|
};
|
|
1199
|
-
protoOf(RGBColorSpaceImpl).
|
|
1200
|
-
return this.
|
|
1199
|
+
protoOf(RGBColorSpaceImpl).u7c = function () {
|
|
1200
|
+
return this.u7d_1;
|
|
1201
1201
|
};
|
|
1202
|
-
protoOf(RGBColorSpaceImpl).
|
|
1203
|
-
return this.
|
|
1202
|
+
protoOf(RGBColorSpaceImpl).v7c = function () {
|
|
1203
|
+
return this.v7d_1;
|
|
1204
1204
|
};
|
|
1205
1205
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1206
|
-
return this.
|
|
1206
|
+
return this.m7d_1;
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(RGBColorSpaceImpl).
|
|
1208
|
+
protoOf(RGBColorSpaceImpl).m7b = function (r, g, b, alpha) {
|
|
1209
1209
|
return new RGB(r, g, b, alpha, this);
|
|
1210
1210
|
};
|
|
1211
1211
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1213,42 +1213,42 @@
|
|
|
1213
1213
|
return true;
|
|
1214
1214
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1215
1215
|
return false;
|
|
1216
|
-
if (!(this.
|
|
1216
|
+
if (!(this.m7d_1 === other.t2()))
|
|
1217
1217
|
return false;
|
|
1218
|
-
if (!this.
|
|
1218
|
+
if (!this.n7d_1.equals(other.w7c()))
|
|
1219
1219
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1220
|
+
if (!equals(this.o7d_1, other.f7c()))
|
|
1221
1221
|
return false;
|
|
1222
1222
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1223
|
-
if (!this.
|
|
1223
|
+
if (!this.p7d_1.equals(other.p7d_1))
|
|
1224
1224
|
return false;
|
|
1225
|
-
if (!this.
|
|
1225
|
+
if (!this.q7d_1.equals(other.q7d_1))
|
|
1226
1226
|
return false;
|
|
1227
|
-
if (!this.
|
|
1227
|
+
if (!this.r7d_1.equals(other.r7d_1))
|
|
1228
1228
|
return false;
|
|
1229
1229
|
} else {
|
|
1230
|
-
if (!contentEquals(this.
|
|
1230
|
+
if (!contentEquals(this.u7d_1, other.u7c()))
|
|
1231
1231
|
return false;
|
|
1232
|
-
if (!contentEquals(this.
|
|
1232
|
+
if (!contentEquals(this.v7d_1, other.v7c()))
|
|
1233
1233
|
return false;
|
|
1234
1234
|
}
|
|
1235
1235
|
return true;
|
|
1236
1236
|
};
|
|
1237
1237
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1238
|
-
var result = getStringHashCode(this.
|
|
1239
|
-
result = imul(31, result) + this.
|
|
1240
|
-
result = imul(31, result) + hashCode(this.
|
|
1241
|
-
result = imul(31, result) + this.
|
|
1242
|
-
result = imul(31, result) + this.
|
|
1243
|
-
result = imul(31, result) + this.
|
|
1238
|
+
var result = getStringHashCode(this.m7d_1);
|
|
1239
|
+
result = imul(31, result) + this.n7d_1.hashCode() | 0;
|
|
1240
|
+
result = imul(31, result) + hashCode(this.o7d_1) | 0;
|
|
1241
|
+
result = imul(31, result) + this.p7d_1.hashCode() | 0;
|
|
1242
|
+
result = imul(31, result) + this.q7d_1.hashCode() | 0;
|
|
1243
|
+
result = imul(31, result) + this.r7d_1.hashCode() | 0;
|
|
1244
1244
|
return result;
|
|
1245
1245
|
};
|
|
1246
1246
|
function SRGBTransferFunctions() {
|
|
1247
1247
|
}
|
|
1248
|
-
protoOf(SRGBTransferFunctions).
|
|
1248
|
+
protoOf(SRGBTransferFunctions).p7c = function (x) {
|
|
1249
1249
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1250
1250
|
};
|
|
1251
|
-
protoOf(SRGBTransferFunctions).
|
|
1251
|
+
protoOf(SRGBTransferFunctions).o7c = function (x) {
|
|
1252
1252
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1253
1253
|
};
|
|
1254
1254
|
var SRGBTransferFunctions_instance;
|
|
@@ -1261,18 +1261,18 @@
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function ACESccTransferFunctions() {
|
|
1263
1263
|
ACESccTransferFunctions_instance = this;
|
|
1264
|
-
this.
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1264
|
+
this.w7d_1 = 3.0517578125E-5;
|
|
1265
|
+
this.x7d_1 = 1.52587890625E-5;
|
|
1266
|
+
this.y7d_1 = -0.3013698630136986;
|
|
1267
1267
|
var tmp = this;
|
|
1268
1268
|
// Inline function 'kotlin.math.log2' call
|
|
1269
|
-
tmp.
|
|
1269
|
+
tmp.z7d_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1270
1270
|
}
|
|
1271
|
-
protoOf(ACESccTransferFunctions).
|
|
1271
|
+
protoOf(ACESccTransferFunctions).o7c = function (x) {
|
|
1272
1272
|
var tmp;
|
|
1273
1273
|
if (x <= -0.3013698630136986) {
|
|
1274
1274
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1275
|
-
} else if (x < this.
|
|
1275
|
+
} else if (x < this.z7d_1) {
|
|
1276
1276
|
// Inline function 'kotlin.math.pow' call
|
|
1277
1277
|
var x_0 = x * 17.52 - 9.72;
|
|
1278
1278
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1281,7 +1281,7 @@
|
|
|
1281
1281
|
}
|
|
1282
1282
|
return tmp;
|
|
1283
1283
|
};
|
|
1284
|
-
protoOf(ACESccTransferFunctions).
|
|
1284
|
+
protoOf(ACESccTransferFunctions).p7c = function (x) {
|
|
1285
1285
|
var tmp;
|
|
1286
1286
|
if (x < 3.0517578125E-5) {
|
|
1287
1287
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1301,17 +1301,17 @@
|
|
|
1301
1301
|
}
|
|
1302
1302
|
function ACEScctTransferFunctions() {
|
|
1303
1303
|
ACEScctTransferFunctions_instance = this;
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1304
|
+
this.a7e_1 = 10.5402377416545;
|
|
1305
|
+
this.b7e_1 = 0.0729055341958355;
|
|
1306
1306
|
var tmp = this;
|
|
1307
1307
|
// Inline function 'kotlin.math.log2' call
|
|
1308
|
-
tmp.
|
|
1308
|
+
tmp.c7e_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1309
1309
|
}
|
|
1310
|
-
protoOf(ACEScctTransferFunctions).
|
|
1310
|
+
protoOf(ACEScctTransferFunctions).o7c = function (x) {
|
|
1311
1311
|
var tmp;
|
|
1312
1312
|
if (x <= 0.155251141552511) {
|
|
1313
1313
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1314
|
-
} else if (x < this.
|
|
1314
|
+
} else if (x < this.c7e_1) {
|
|
1315
1315
|
// Inline function 'kotlin.math.pow' call
|
|
1316
1316
|
var x_0 = x * 17.52 - 9.72;
|
|
1317
1317
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1320,7 +1320,7 @@
|
|
|
1320
1320
|
}
|
|
1321
1321
|
return tmp;
|
|
1322
1322
|
};
|
|
1323
|
-
protoOf(ACEScctTransferFunctions).
|
|
1323
|
+
protoOf(ACEScctTransferFunctions).p7c = function (x) {
|
|
1324
1324
|
var tmp;
|
|
1325
1325
|
if (x < 0.0078125) {
|
|
1326
1326
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1338,16 +1338,16 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function BT2020TransferFunctions() {
|
|
1340
1340
|
BT2020TransferFunctions_instance = this;
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1341
|
+
this.d7e_1 = 1.0993;
|
|
1342
|
+
this.e7e_1 = 0.0181;
|
|
1343
1343
|
var tmp = this;
|
|
1344
1344
|
// Inline function 'kotlin.math.pow' call
|
|
1345
|
-
tmp.
|
|
1345
|
+
tmp.f7e_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1346
1346
|
}
|
|
1347
|
-
protoOf(BT2020TransferFunctions).
|
|
1348
|
-
return numberToDouble(x < this.
|
|
1347
|
+
protoOf(BT2020TransferFunctions).o7c = function (x) {
|
|
1348
|
+
return numberToDouble(x < this.f7e_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1349
1349
|
};
|
|
1350
|
-
protoOf(BT2020TransferFunctions).
|
|
1350
|
+
protoOf(BT2020TransferFunctions).p7c = function (x) {
|
|
1351
1351
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1352
1352
|
};
|
|
1353
1353
|
var BT2020TransferFunctions_instance;
|
|
@@ -1358,12 +1358,12 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
function BT709TransferFunctions() {
|
|
1360
1360
|
BT709TransferFunctions_instance = this;
|
|
1361
|
-
this.
|
|
1361
|
+
this.g7e_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1362
1362
|
}
|
|
1363
|
-
protoOf(BT709TransferFunctions).
|
|
1364
|
-
return numberToDouble(x < this.
|
|
1363
|
+
protoOf(BT709TransferFunctions).o7c = function (x) {
|
|
1364
|
+
return numberToDouble(x < this.g7e_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1365
1365
|
};
|
|
1366
|
-
protoOf(BT709TransferFunctions).
|
|
1366
|
+
protoOf(BT709TransferFunctions).p7c = function (x) {
|
|
1367
1367
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1368
1368
|
};
|
|
1369
1369
|
var BT709TransferFunctions_instance;
|
|
@@ -1373,12 +1373,12 @@
|
|
|
1373
1373
|
return BT709TransferFunctions_instance;
|
|
1374
1374
|
}
|
|
1375
1375
|
function ROMMTransferFunctions() {
|
|
1376
|
-
this.
|
|
1376
|
+
this.h7e_1 = 0.001953;
|
|
1377
1377
|
}
|
|
1378
|
-
protoOf(ROMMTransferFunctions).
|
|
1378
|
+
protoOf(ROMMTransferFunctions).o7c = function (x) {
|
|
1379
1379
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1380
1380
|
};
|
|
1381
|
-
protoOf(ROMMTransferFunctions).
|
|
1381
|
+
protoOf(ROMMTransferFunctions).p7c = function (x) {
|
|
1382
1382
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1383
1383
|
};
|
|
1384
1384
|
var ROMMTransferFunctions_instance;
|
|
@@ -1387,13 +1387,13 @@
|
|
|
1387
1387
|
}
|
|
1388
1388
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1389
1389
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1390
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1391
|
-
var wp = whitePoint.
|
|
1390
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.i7e_1, g.i7e_1, b.i7e_1, r.j7e_1, g.j7e_1, b.j7e_1, r.l7e(), g.l7e(), b.l7e());
|
|
1391
|
+
var wp = whitePoint.m7a_1;
|
|
1392
1392
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1393
1393
|
var this_0 = inverse(primaries);
|
|
1394
|
-
var v0 = wp.
|
|
1395
|
-
var v1 = wp.
|
|
1396
|
-
var v2 = wp.
|
|
1394
|
+
var v0 = wp.m7e();
|
|
1395
|
+
var v1 = wp.k7e_1;
|
|
1396
|
+
var v2 = wp.n7e();
|
|
1397
1397
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1398
1398
|
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;
|
|
1399
1399
|
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;
|
|
@@ -1404,9 +1404,9 @@
|
|
|
1404
1404
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1405
1405
|
var tmp;
|
|
1406
1406
|
if (color instanceof RGB) {
|
|
1407
|
-
tmp = color.
|
|
1407
|
+
tmp = color.b7d($this$RGBColorSpaceImpl);
|
|
1408
1408
|
} else {
|
|
1409
|
-
tmp = color.
|
|
1409
|
+
tmp = color.b7a().h7d($this$RGBColorSpaceImpl);
|
|
1410
1410
|
}
|
|
1411
1411
|
return tmp;
|
|
1412
1412
|
}
|
|
@@ -1428,22 +1428,22 @@
|
|
|
1428
1428
|
}
|
|
1429
1429
|
function Companion_3() {
|
|
1430
1430
|
Companion_instance_3 = this;
|
|
1431
|
-
this.
|
|
1431
|
+
this.o7e_1 = XYZColorSpaces_getInstance().p7e_1;
|
|
1432
1432
|
}
|
|
1433
|
-
protoOf(Companion_3).
|
|
1434
|
-
return this.
|
|
1433
|
+
protoOf(Companion_3).m7b = function (x, y, z, alpha) {
|
|
1434
|
+
return this.o7e_1.m7b(x, y, z, alpha);
|
|
1435
1435
|
};
|
|
1436
|
-
protoOf(Companion_3).
|
|
1437
|
-
return this.
|
|
1436
|
+
protoOf(Companion_3).w7c = function () {
|
|
1437
|
+
return this.o7e_1.w7c();
|
|
1438
1438
|
};
|
|
1439
|
-
protoOf(Companion_3).
|
|
1440
|
-
return this.
|
|
1439
|
+
protoOf(Companion_3).y7a = function () {
|
|
1440
|
+
return this.o7e_1.y7a();
|
|
1441
1441
|
};
|
|
1442
1442
|
protoOf(Companion_3).hashCode = function () {
|
|
1443
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1443
|
+
return hashCode(XYZColorSpaces_getInstance().p7e_1);
|
|
1444
1444
|
};
|
|
1445
1445
|
protoOf(Companion_3).equals = function (other) {
|
|
1446
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1446
|
+
return equals(XYZColorSpaces_getInstance().p7e_1, other);
|
|
1447
1447
|
};
|
|
1448
1448
|
var Companion_instance_3;
|
|
1449
1449
|
function Companion_getInstance_3() {
|
|
@@ -1452,71 +1452,71 @@
|
|
|
1452
1452
|
return Companion_instance_3;
|
|
1453
1453
|
}
|
|
1454
1454
|
function adaptToM($this, space, m, mi) {
|
|
1455
|
-
if (space.
|
|
1455
|
+
if (space.w7c().equals($this.g7d_1.w7c()))
|
|
1456
1456
|
return $this;
|
|
1457
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1457
|
+
var transform = chromaticAdaptationMatrix(space, $this.g7d_1.w7c().m7a_1, m, mi);
|
|
1458
1458
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1459
|
-
var v0 = $this.
|
|
1460
|
-
var v1 = $this.
|
|
1461
|
-
var v2 = $this.
|
|
1459
|
+
var v0 = $this.c7d_1;
|
|
1460
|
+
var v1 = $this.d7d_1;
|
|
1461
|
+
var v2 = $this.e7d_1;
|
|
1462
1462
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1463
1463
|
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;
|
|
1464
1464
|
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;
|
|
1465
1465
|
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;
|
|
1466
|
-
return space.
|
|
1466
|
+
return space.m7b(xx, yy, zz, $this.f7d_1);
|
|
1467
1467
|
}
|
|
1468
1468
|
function XYZ(x, y, z, alpha, space) {
|
|
1469
1469
|
Companion_getInstance_3();
|
|
1470
|
-
this.
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1473
|
-
this.
|
|
1474
|
-
this.
|
|
1470
|
+
this.c7d_1 = x;
|
|
1471
|
+
this.d7d_1 = y;
|
|
1472
|
+
this.e7d_1 = z;
|
|
1473
|
+
this.f7d_1 = alpha;
|
|
1474
|
+
this.g7d_1 = space;
|
|
1475
1475
|
}
|
|
1476
|
-
protoOf(XYZ).
|
|
1477
|
-
return this.
|
|
1476
|
+
protoOf(XYZ).z79 = function () {
|
|
1477
|
+
return this.g7d_1;
|
|
1478
1478
|
};
|
|
1479
|
-
protoOf(XYZ).
|
|
1479
|
+
protoOf(XYZ).r7e = function (space) {
|
|
1480
1480
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1481
1481
|
};
|
|
1482
|
-
protoOf(XYZ).
|
|
1483
|
-
var _destruct__k2r9zo = this.
|
|
1482
|
+
protoOf(XYZ).h7d = function (space) {
|
|
1483
|
+
var _destruct__k2r9zo = this.r7e(XYZColorSpace_0(space.w7c()));
|
|
1484
1484
|
var x = _destruct__k2r9zo.qg();
|
|
1485
1485
|
var y = _destruct__k2r9zo.rg();
|
|
1486
1486
|
var z = _destruct__k2r9zo.dm();
|
|
1487
|
-
var f = space.
|
|
1487
|
+
var f = space.f7c();
|
|
1488
1488
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1489
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1489
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.v7c());
|
|
1490
1490
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1491
1491
|
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;
|
|
1492
1492
|
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;
|
|
1493
1493
|
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;
|
|
1494
|
-
return space.
|
|
1494
|
+
return space.m7b(f.p7c(r), f.p7c(g), f.p7c(b), this.f7d_1);
|
|
1495
1495
|
};
|
|
1496
|
-
protoOf(XYZ).
|
|
1497
|
-
return this.
|
|
1496
|
+
protoOf(XYZ).a7a = function () {
|
|
1497
|
+
return this.h7d(RGBColorSpaces_getInstance().t7b_1);
|
|
1498
1498
|
};
|
|
1499
|
-
protoOf(XYZ).
|
|
1499
|
+
protoOf(XYZ).b7a = function () {
|
|
1500
1500
|
return this;
|
|
1501
1501
|
};
|
|
1502
1502
|
protoOf(XYZ).qg = function () {
|
|
1503
|
-
return this.
|
|
1503
|
+
return this.c7d_1;
|
|
1504
1504
|
};
|
|
1505
1505
|
protoOf(XYZ).rg = function () {
|
|
1506
|
-
return this.
|
|
1506
|
+
return this.d7d_1;
|
|
1507
1507
|
};
|
|
1508
1508
|
protoOf(XYZ).dm = function () {
|
|
1509
|
-
return this.
|
|
1509
|
+
return this.e7d_1;
|
|
1510
1510
|
};
|
|
1511
1511
|
protoOf(XYZ).toString = function () {
|
|
1512
|
-
return 'XYZ(x=' + this.
|
|
1512
|
+
return 'XYZ(x=' + this.c7d_1 + ', y=' + this.d7d_1 + ', z=' + this.e7d_1 + ', alpha=' + this.f7d_1 + ', space=' + toString(this.g7d_1) + ')';
|
|
1513
1513
|
};
|
|
1514
1514
|
protoOf(XYZ).hashCode = function () {
|
|
1515
|
-
var result = getNumberHashCode(this.
|
|
1516
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1517
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1518
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1519
|
-
result = imul(result, 31) + hashCode(this.
|
|
1515
|
+
var result = getNumberHashCode(this.c7d_1);
|
|
1516
|
+
result = imul(result, 31) + getNumberHashCode(this.d7d_1) | 0;
|
|
1517
|
+
result = imul(result, 31) + getNumberHashCode(this.e7d_1) | 0;
|
|
1518
|
+
result = imul(result, 31) + getNumberHashCode(this.f7d_1) | 0;
|
|
1519
|
+
result = imul(result, 31) + hashCode(this.g7d_1) | 0;
|
|
1520
1520
|
return result;
|
|
1521
1521
|
};
|
|
1522
1522
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1525,27 +1525,27 @@
|
|
|
1525
1525
|
if (!(other instanceof XYZ))
|
|
1526
1526
|
return false;
|
|
1527
1527
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1528
|
-
if (!equals(this.
|
|
1528
|
+
if (!equals(this.c7d_1, tmp0_other_with_cast.c7d_1))
|
|
1529
1529
|
return false;
|
|
1530
|
-
if (!equals(this.
|
|
1530
|
+
if (!equals(this.d7d_1, tmp0_other_with_cast.d7d_1))
|
|
1531
1531
|
return false;
|
|
1532
|
-
if (!equals(this.
|
|
1532
|
+
if (!equals(this.e7d_1, tmp0_other_with_cast.e7d_1))
|
|
1533
1533
|
return false;
|
|
1534
|
-
if (!equals(this.
|
|
1534
|
+
if (!equals(this.f7d_1, tmp0_other_with_cast.f7d_1))
|
|
1535
1535
|
return false;
|
|
1536
|
-
if (!equals(this.
|
|
1536
|
+
if (!equals(this.g7d_1, tmp0_other_with_cast.g7d_1))
|
|
1537
1537
|
return false;
|
|
1538
1538
|
return true;
|
|
1539
1539
|
};
|
|
1540
1540
|
function XYZColorSpace() {
|
|
1541
1541
|
}
|
|
1542
1542
|
function XYZColorSpace_0(whitePoint) {
|
|
1543
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1543
|
+
return whitePoint.equals(Illuminant_getInstance().s7a_1) ? XYZColorSpaces_getInstance().p7e_1 : whitePoint.equals(Illuminant_getInstance().q7a_1) ? XYZColorSpaces_getInstance().q7e_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1544
1544
|
}
|
|
1545
1545
|
function XYZColorSpaces() {
|
|
1546
1546
|
XYZColorSpaces_instance = this;
|
|
1547
|
-
this.
|
|
1548
|
-
this.
|
|
1547
|
+
this.p7e_1 = new XYZColorSpaceImpl(Illuminant_getInstance().s7a_1);
|
|
1548
|
+
this.q7e_1 = new XYZColorSpaceImpl(Illuminant_getInstance().q7a_1);
|
|
1549
1549
|
}
|
|
1550
1550
|
var XYZColorSpaces_instance;
|
|
1551
1551
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1556,34 +1556,34 @@
|
|
|
1556
1556
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1557
1557
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1558
1558
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1559
|
-
var dstWp = _this__u8e3s4.
|
|
1560
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1561
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1559
|
+
var dstWp = _this__u8e3s4.w7c().m7a_1;
|
|
1560
|
+
var src = dot_0(xyzToLms, srcWp.m7e(), srcWp.k7e_1, srcWp.n7e());
|
|
1561
|
+
var dst = dot_0(xyzToLms, dstWp.m7e(), dstWp.k7e_1, dstWp.n7e());
|
|
1562
1562
|
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);
|
|
1563
1563
|
}
|
|
1564
1564
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1565
|
+
this.s7e_1 = whitePoint;
|
|
1566
|
+
this.t7e_1 = zeroOneComponentInfo('XYZ');
|
|
1567
1567
|
}
|
|
1568
|
-
protoOf(XYZColorSpaceImpl).
|
|
1569
|
-
return this.
|
|
1568
|
+
protoOf(XYZColorSpaceImpl).w7c = function () {
|
|
1569
|
+
return this.s7e_1;
|
|
1570
1570
|
};
|
|
1571
|
-
protoOf(XYZColorSpaceImpl).
|
|
1572
|
-
return this.
|
|
1571
|
+
protoOf(XYZColorSpaceImpl).y7a = function () {
|
|
1572
|
+
return this.t7e_1;
|
|
1573
1573
|
};
|
|
1574
1574
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1575
|
-
return 'XYZColorSpace(' + this.
|
|
1575
|
+
return 'XYZColorSpace(' + this.s7e_1.toString() + ')';
|
|
1576
1576
|
};
|
|
1577
|
-
protoOf(XYZColorSpaceImpl).
|
|
1577
|
+
protoOf(XYZColorSpaceImpl).m7b = function (x, y, z, alpha) {
|
|
1578
1578
|
return new XYZ(x, y, z, alpha, this);
|
|
1579
1579
|
};
|
|
1580
1580
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1581
|
-
return this.
|
|
1581
|
+
return this.s7e_1.hashCode();
|
|
1582
1582
|
};
|
|
1583
1583
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1584
1584
|
var tmp;
|
|
1585
1585
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1586
|
-
tmp = this.
|
|
1586
|
+
tmp = this.s7e_1.equals(other.w7c());
|
|
1587
1587
|
} else {
|
|
1588
1588
|
tmp = false;
|
|
1589
1589
|
}
|
|
@@ -1599,26 +1599,26 @@
|
|
|
1599
1599
|
}
|
|
1600
1600
|
function xyY(x, y, Y) {
|
|
1601
1601
|
Y = Y === VOID ? 1.0 : Y;
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1602
|
+
this.i7e_1 = x;
|
|
1603
|
+
this.j7e_1 = y;
|
|
1604
|
+
this.k7e_1 = Y;
|
|
1605
1605
|
}
|
|
1606
|
-
protoOf(xyY).
|
|
1607
|
-
return 1 - this.
|
|
1606
|
+
protoOf(xyY).l7e = function () {
|
|
1607
|
+
return 1 - this.i7e_1 - this.j7e_1;
|
|
1608
1608
|
};
|
|
1609
|
-
protoOf(xyY).
|
|
1610
|
-
return this.
|
|
1609
|
+
protoOf(xyY).m7e = function () {
|
|
1610
|
+
return this.i7e_1 * this.k7e_1 / this.j7e_1;
|
|
1611
1611
|
};
|
|
1612
|
-
protoOf(xyY).
|
|
1613
|
-
return (1 - this.
|
|
1612
|
+
protoOf(xyY).n7e = function () {
|
|
1613
|
+
return (1 - this.i7e_1 - this.j7e_1) * this.k7e_1 / this.j7e_1;
|
|
1614
1614
|
};
|
|
1615
1615
|
protoOf(xyY).toString = function () {
|
|
1616
|
-
return 'xyY(x=' + this.
|
|
1616
|
+
return 'xyY(x=' + this.i7e_1 + ', y=' + this.j7e_1 + ', Y=' + this.k7e_1 + ')';
|
|
1617
1617
|
};
|
|
1618
1618
|
protoOf(xyY).hashCode = function () {
|
|
1619
|
-
var result = getNumberHashCode(this.
|
|
1620
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1621
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1619
|
+
var result = getNumberHashCode(this.i7e_1);
|
|
1620
|
+
result = imul(result, 31) + getNumberHashCode(this.j7e_1) | 0;
|
|
1621
|
+
result = imul(result, 31) + getNumberHashCode(this.k7e_1) | 0;
|
|
1622
1622
|
return result;
|
|
1623
1623
|
};
|
|
1624
1624
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1627,30 +1627,30 @@
|
|
|
1627
1627
|
if (!(other instanceof xyY))
|
|
1628
1628
|
return false;
|
|
1629
1629
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1630
|
-
if (!equals(this.
|
|
1630
|
+
if (!equals(this.i7e_1, tmp0_other_with_cast.i7e_1))
|
|
1631
1631
|
return false;
|
|
1632
|
-
if (!equals(this.
|
|
1632
|
+
if (!equals(this.j7e_1, tmp0_other_with_cast.j7e_1))
|
|
1633
1633
|
return false;
|
|
1634
|
-
if (!equals(this.
|
|
1634
|
+
if (!equals(this.k7e_1, tmp0_other_with_cast.k7e_1))
|
|
1635
1635
|
return false;
|
|
1636
1636
|
return true;
|
|
1637
1637
|
};
|
|
1638
1638
|
//region block: post-declaration
|
|
1639
|
-
protoOf(Ansi16).
|
|
1640
|
-
protoOf(Ansi256).
|
|
1641
|
-
protoOf(HSV).
|
|
1642
|
-
protoOf(Companion_2).
|
|
1643
|
-
protoOf(Companion_2).
|
|
1644
|
-
protoOf(Companion_2).
|
|
1645
|
-
protoOf(SRGB).
|
|
1646
|
-
protoOf(SRGB).
|
|
1647
|
-
protoOf(SRGB).
|
|
1648
|
-
protoOf(RGBColorSpaceImpl).
|
|
1649
|
-
protoOf(RGBColorSpaceImpl).
|
|
1650
|
-
protoOf(RGBColorSpaceImpl).
|
|
1651
|
-
protoOf(RGBColorSpaceImpl).
|
|
1652
|
-
protoOf(RGBColorSpaceImpl).
|
|
1653
|
-
protoOf(RGBColorSpaceImpl).
|
|
1639
|
+
protoOf(Ansi16).b7a = toXYZ;
|
|
1640
|
+
protoOf(Ansi256).b7a = toXYZ;
|
|
1641
|
+
protoOf(HSV).b7a = toXYZ;
|
|
1642
|
+
protoOf(Companion_2).a7b = invoke$default;
|
|
1643
|
+
protoOf(Companion_2).f7b = invoke$default_0;
|
|
1644
|
+
protoOf(Companion_2).b7b = from255$default;
|
|
1645
|
+
protoOf(SRGB).a7b = invoke$default;
|
|
1646
|
+
protoOf(SRGB).f7b = invoke$default_0;
|
|
1647
|
+
protoOf(SRGB).b7b = from255$default;
|
|
1648
|
+
protoOf(RGBColorSpaceImpl).a7b = invoke$default;
|
|
1649
|
+
protoOf(RGBColorSpaceImpl).r7c = invoke;
|
|
1650
|
+
protoOf(RGBColorSpaceImpl).f7b = invoke$default_0;
|
|
1651
|
+
protoOf(RGBColorSpaceImpl).t7c = invoke_0;
|
|
1652
|
+
protoOf(RGBColorSpaceImpl).s7c = from255;
|
|
1653
|
+
protoOf(RGBColorSpaceImpl).b7b = from255$default;
|
|
1654
1654
|
//endregion
|
|
1655
1655
|
//region block: init
|
|
1656
1656
|
PqNonlinearity_instance = new PqNonlinearity();
|