mrs-toolbox-cli 0.0.128 → 0.0.129
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.js +1121 -1121
- package/colormath-root-colormath.js +375 -375
- package/com.mrs.platform.configuration.dto.js +660 -624
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +14 -14
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +34 -34
- package/ktor-ktor-client-content-negotiation.js +125 -125
- package/ktor-ktor-client-core.js +1408 -1408
- package/ktor-ktor-events.js +4 -4
- package/markdown.js +1795 -1795
- package/mordant-mordant.js +1634 -1634
- package/mrs-toolbox-cli.d.ts +9 -9
- package/mrs-toolbox-cli.js +63 -63
- package/package.json +1 -1
- package/toolbox.js +2371 -2371
|
@@ -59,21 +59,21 @@
|
|
|
59
59
|
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
60
60
|
function invoke$default(r, g, b, alpha, $super) {
|
|
61
61
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
62
|
-
return $super === VOID ? this.
|
|
62
|
+
return $super === VOID ? this.g76(r, g, b, alpha) : $super.g76.call(this, r, g, b, alpha);
|
|
63
63
|
}
|
|
64
64
|
function invoke(r, g, b, alpha) {
|
|
65
|
-
return this.
|
|
65
|
+
return this.g76(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
66
66
|
}
|
|
67
67
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
68
68
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
69
|
-
return $super === VOID ? this.
|
|
69
|
+
return $super === VOID ? this.q76(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
70
70
|
}
|
|
71
71
|
function from255(r, g, b, alpha) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.g76(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
73
73
|
}
|
|
74
74
|
function from255$default(r, g, b, alpha, $super) {
|
|
75
75
|
alpha = alpha === VOID ? 255 : alpha;
|
|
76
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.r76(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
77
77
|
}
|
|
78
78
|
function invoke_0(hex) {
|
|
79
79
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
} else {
|
|
90
90
|
tmp_2 = 255;
|
|
91
91
|
}
|
|
92
|
-
return this.
|
|
92
|
+
return this.r76(tmp, tmp_0, tmp_1, tmp_2);
|
|
93
93
|
}
|
|
94
94
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
95
95
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -111,19 +111,19 @@
|
|
|
111
111
|
initMetadataForClass(xyY, 'xyY');
|
|
112
112
|
//endregion
|
|
113
113
|
function ColorComponentInfo(name, isPolar) {
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
114
|
+
this.y74_1 = name;
|
|
115
|
+
this.z74_1 = isPolar;
|
|
116
116
|
}
|
|
117
117
|
function WhitePoint(name, chromaticity) {
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
118
|
+
this.a75_1 = name;
|
|
119
|
+
this.b75_1 = chromaticity;
|
|
120
120
|
}
|
|
121
121
|
protoOf(WhitePoint).toString = function () {
|
|
122
|
-
return this.
|
|
122
|
+
return this.a75_1;
|
|
123
123
|
};
|
|
124
124
|
protoOf(WhitePoint).hashCode = function () {
|
|
125
|
-
var result = getStringHashCode(this.
|
|
126
|
-
result = imul(result, 31) + this.
|
|
125
|
+
var result = getStringHashCode(this.a75_1);
|
|
126
|
+
result = imul(result, 31) + this.b75_1.hashCode() | 0;
|
|
127
127
|
return result;
|
|
128
128
|
};
|
|
129
129
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -132,22 +132,22 @@
|
|
|
132
132
|
if (!(other instanceof WhitePoint))
|
|
133
133
|
return false;
|
|
134
134
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
135
|
-
if (!(this.
|
|
135
|
+
if (!(this.a75_1 === tmp0_other_with_cast.a75_1))
|
|
136
136
|
return false;
|
|
137
|
-
if (!this.
|
|
137
|
+
if (!this.b75_1.equals(tmp0_other_with_cast.b75_1))
|
|
138
138
|
return false;
|
|
139
139
|
return true;
|
|
140
140
|
};
|
|
141
141
|
function Illuminant() {
|
|
142
142
|
Illuminant_instance = this;
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
148
|
-
this.
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
143
|
+
this.c75_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
144
|
+
this.d75_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
145
|
+
this.e75_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
146
|
+
this.f75_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
147
|
+
this.g75_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
148
|
+
this.h75_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
149
|
+
this.i75_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
150
|
+
this.j75_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
151
151
|
}
|
|
152
152
|
var Illuminant_instance;
|
|
153
153
|
function Illuminant_getInstance() {
|
|
@@ -271,22 +271,22 @@
|
|
|
271
271
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
272
272
|
if (!(other instanceof Matrix))
|
|
273
273
|
return false;
|
|
274
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
274
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.k75_1 : THROW_CCE();
|
|
275
275
|
if (!equals($this, tmp0_other_with_cast))
|
|
276
276
|
return false;
|
|
277
277
|
return true;
|
|
278
278
|
}
|
|
279
279
|
function Matrix(rowMajor) {
|
|
280
|
-
this.
|
|
280
|
+
this.k75_1 = rowMajor;
|
|
281
281
|
}
|
|
282
282
|
protoOf(Matrix).toString = function () {
|
|
283
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
283
|
+
return Matrix__toString_impl_l0abk0(this.k75_1);
|
|
284
284
|
};
|
|
285
285
|
protoOf(Matrix).hashCode = function () {
|
|
286
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
286
|
+
return Matrix__hashCode_impl_s9ntm9(this.k75_1);
|
|
287
287
|
};
|
|
288
288
|
protoOf(Matrix).equals = function (other) {
|
|
289
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
289
|
+
return Matrix__equals_impl_g5p8p9(this.k75_1, other);
|
|
290
290
|
};
|
|
291
291
|
function inverse(_this__u8e3s4, inPlace) {
|
|
292
292
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -350,22 +350,22 @@
|
|
|
350
350
|
function Vector__equals_impl_hy6igl($this, other) {
|
|
351
351
|
if (!(other instanceof Vector))
|
|
352
352
|
return false;
|
|
353
|
-
var tmp0_other_with_cast = other instanceof Vector ? other.
|
|
353
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.l75_1 : THROW_CCE();
|
|
354
354
|
if (!equals($this, tmp0_other_with_cast))
|
|
355
355
|
return false;
|
|
356
356
|
return true;
|
|
357
357
|
}
|
|
358
358
|
function Vector(values) {
|
|
359
|
-
this.
|
|
359
|
+
this.l75_1 = values;
|
|
360
360
|
}
|
|
361
361
|
protoOf(Vector).toString = function () {
|
|
362
|
-
return Vector__toString_impl_hn2ybi(this.
|
|
362
|
+
return Vector__toString_impl_hn2ybi(this.l75_1);
|
|
363
363
|
};
|
|
364
364
|
protoOf(Vector).hashCode = function () {
|
|
365
|
-
return Vector__hashCode_impl_442yhd(this.
|
|
365
|
+
return Vector__hashCode_impl_442yhd(this.l75_1);
|
|
366
366
|
};
|
|
367
367
|
protoOf(Vector).equals = function (other) {
|
|
368
|
-
return Vector__equals_impl_hy6igl(this.
|
|
368
|
+
return Vector__equals_impl_hy6igl(this.l75_1, other);
|
|
369
369
|
};
|
|
370
370
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
371
371
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
}
|
|
377
377
|
function Companion() {
|
|
378
378
|
Companion_instance = this;
|
|
379
|
-
this.
|
|
379
|
+
this.m75_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
380
380
|
}
|
|
381
381
|
var Companion_instance;
|
|
382
382
|
function Companion_getInstance() {
|
|
@@ -386,35 +386,35 @@
|
|
|
386
386
|
}
|
|
387
387
|
function Ansi16(code) {
|
|
388
388
|
Companion_getInstance();
|
|
389
|
-
this.
|
|
389
|
+
this.n75_1 = code;
|
|
390
390
|
}
|
|
391
|
-
protoOf(Ansi16).
|
|
392
|
-
switch (this.
|
|
391
|
+
protoOf(Ansi16).o75 = function () {
|
|
392
|
+
switch (this.n75_1) {
|
|
393
393
|
case 30:
|
|
394
394
|
case 40:
|
|
395
|
-
return Companion_getInstance_2().
|
|
395
|
+
return Companion_getInstance_2().p75(0.0, 0.0, 0.0);
|
|
396
396
|
case 90:
|
|
397
397
|
case 100:
|
|
398
|
-
return Companion_getInstance_2().
|
|
398
|
+
return Companion_getInstance_2().q75(128, 128, 128);
|
|
399
399
|
case 37:
|
|
400
400
|
case 47:
|
|
401
|
-
return Companion_getInstance_2().
|
|
401
|
+
return Companion_getInstance_2().q75(192, 192, 192);
|
|
402
402
|
case 97:
|
|
403
403
|
case 107:
|
|
404
|
-
return Companion_getInstance_2().
|
|
404
|
+
return Companion_getInstance_2().p75(1.0, 1.0, 1.0);
|
|
405
405
|
}
|
|
406
|
-
var color = this.
|
|
407
|
-
var mul = this.
|
|
406
|
+
var color = this.n75_1 % 10 | 0;
|
|
407
|
+
var mul = this.n75_1 > 50 ? 1.0 : 0.5;
|
|
408
408
|
var r = (color % 2 | 0) * mul;
|
|
409
409
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
410
410
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
411
|
-
return Companion_getInstance_2().
|
|
411
|
+
return Companion_getInstance_2().p75(r, g, b);
|
|
412
412
|
};
|
|
413
413
|
protoOf(Ansi16).toString = function () {
|
|
414
|
-
return 'Ansi16(code=' + this.
|
|
414
|
+
return 'Ansi16(code=' + this.n75_1 + ')';
|
|
415
415
|
};
|
|
416
416
|
protoOf(Ansi16).hashCode = function () {
|
|
417
|
-
return this.
|
|
417
|
+
return this.n75_1;
|
|
418
418
|
};
|
|
419
419
|
protoOf(Ansi16).equals = function (other) {
|
|
420
420
|
if (this === other)
|
|
@@ -422,13 +422,13 @@
|
|
|
422
422
|
if (!(other instanceof Ansi16))
|
|
423
423
|
return false;
|
|
424
424
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
425
|
-
if (!(this.
|
|
425
|
+
if (!(this.n75_1 === tmp0_other_with_cast.n75_1))
|
|
426
426
|
return false;
|
|
427
427
|
return true;
|
|
428
428
|
};
|
|
429
429
|
function Companion_0() {
|
|
430
430
|
Companion_instance_0 = this;
|
|
431
|
-
this.
|
|
431
|
+
this.r75_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
432
432
|
}
|
|
433
433
|
var Companion_instance_0;
|
|
434
434
|
function Companion_getInstance_0() {
|
|
@@ -438,16 +438,16 @@
|
|
|
438
438
|
}
|
|
439
439
|
function Ansi256(code) {
|
|
440
440
|
Companion_getInstance_0();
|
|
441
|
-
this.
|
|
442
|
-
}
|
|
443
|
-
protoOf(Ansi256).
|
|
444
|
-
if (this.
|
|
445
|
-
return this.
|
|
446
|
-
if (this.
|
|
447
|
-
var c = imul(this.
|
|
448
|
-
return Companion_getInstance_2().
|
|
441
|
+
this.s75_1 = code;
|
|
442
|
+
}
|
|
443
|
+
protoOf(Ansi256).o75 = function () {
|
|
444
|
+
if (this.s75_1 < 16)
|
|
445
|
+
return this.t75().o75();
|
|
446
|
+
if (this.s75_1 >= 232) {
|
|
447
|
+
var c = imul(this.s75_1 - 232 | 0, 10) + 8 | 0;
|
|
448
|
+
return Companion_getInstance_2().q75(c, c, c);
|
|
449
449
|
}
|
|
450
|
-
var c_0 = this.
|
|
450
|
+
var c_0 = this.s75_1 - 16 | 0;
|
|
451
451
|
var rem = c_0 % 36 | 0;
|
|
452
452
|
// Inline function 'kotlin.math.floor' call
|
|
453
453
|
var x = c_0 / 36.0;
|
|
@@ -456,16 +456,16 @@
|
|
|
456
456
|
var x_0 = rem / 6.0;
|
|
457
457
|
var g = Math.floor(x_0) / 5.0;
|
|
458
458
|
var b = (rem % 6 | 0) / 5.0;
|
|
459
|
-
return Companion_getInstance_2().
|
|
459
|
+
return Companion_getInstance_2().u75(r, g, b);
|
|
460
460
|
};
|
|
461
|
-
protoOf(Ansi256).
|
|
462
|
-
return this.
|
|
461
|
+
protoOf(Ansi256).t75 = function () {
|
|
462
|
+
return this.s75_1 < 8 ? new Ansi16(this.s75_1 + 30 | 0) : this.s75_1 < 16 ? new Ansi16((this.s75_1 - 8 | 0) + 90 | 0) : this.o75().t75();
|
|
463
463
|
};
|
|
464
464
|
protoOf(Ansi256).toString = function () {
|
|
465
|
-
return 'Ansi256(code=' + this.
|
|
465
|
+
return 'Ansi256(code=' + this.s75_1 + ')';
|
|
466
466
|
};
|
|
467
467
|
protoOf(Ansi256).hashCode = function () {
|
|
468
|
-
return this.
|
|
468
|
+
return this.s75_1;
|
|
469
469
|
};
|
|
470
470
|
protoOf(Ansi256).equals = function (other) {
|
|
471
471
|
if (this === other)
|
|
@@ -473,13 +473,13 @@
|
|
|
473
473
|
if (!(other instanceof Ansi256))
|
|
474
474
|
return false;
|
|
475
475
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
476
|
-
if (!(this.
|
|
476
|
+
if (!(this.s75_1 === tmp0_other_with_cast.s75_1))
|
|
477
477
|
return false;
|
|
478
478
|
return true;
|
|
479
479
|
};
|
|
480
480
|
function Companion_1() {
|
|
481
481
|
Companion_instance_1 = this;
|
|
482
|
-
this.
|
|
482
|
+
this.a76_1 = polarComponentInfo('HSV');
|
|
483
483
|
}
|
|
484
484
|
var Companion_instance_1;
|
|
485
485
|
function Companion_getInstance_1() {
|
|
@@ -498,27 +498,27 @@
|
|
|
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.
|
|
505
|
-
}
|
|
506
|
-
protoOf(HSV).
|
|
507
|
-
if (this.
|
|
508
|
-
return Companion_getInstance_2().
|
|
509
|
-
var v = this.
|
|
510
|
-
var h = normalizeDeg_0(this.
|
|
511
|
-
var s = this.
|
|
512
|
-
return SRGB_getInstance().
|
|
501
|
+
this.b76_1 = h;
|
|
502
|
+
this.c76_1 = s;
|
|
503
|
+
this.d76_1 = v;
|
|
504
|
+
this.e76_1 = alpha;
|
|
505
|
+
}
|
|
506
|
+
protoOf(HSV).o75 = function () {
|
|
507
|
+
if (this.c76_1 < 1.0E-7)
|
|
508
|
+
return Companion_getInstance_2().g76(this.d76_1, this.d76_1, this.d76_1, this.e76_1);
|
|
509
|
+
var v = this.d76_1;
|
|
510
|
+
var h = normalizeDeg_0(this.b76_1) / 60.0;
|
|
511
|
+
var s = this.c76_1;
|
|
512
|
+
return SRGB_getInstance().g76(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.e76_1);
|
|
513
513
|
};
|
|
514
514
|
protoOf(HSV).toString = function () {
|
|
515
|
-
return 'HSV(h=' + this.
|
|
515
|
+
return 'HSV(h=' + this.b76_1 + ', s=' + this.c76_1 + ', v=' + this.d76_1 + ', alpha=' + this.e76_1 + ')';
|
|
516
516
|
};
|
|
517
517
|
protoOf(HSV).hashCode = function () {
|
|
518
|
-
var result = getNumberHashCode(this.
|
|
519
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
520
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
521
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
518
|
+
var result = getNumberHashCode(this.b76_1);
|
|
519
|
+
result = imul(result, 31) + getNumberHashCode(this.c76_1) | 0;
|
|
520
|
+
result = imul(result, 31) + getNumberHashCode(this.d76_1) | 0;
|
|
521
|
+
result = imul(result, 31) + getNumberHashCode(this.e76_1) | 0;
|
|
522
522
|
return result;
|
|
523
523
|
};
|
|
524
524
|
protoOf(HSV).equals = function (other) {
|
|
@@ -527,30 +527,30 @@
|
|
|
527
527
|
if (!(other instanceof HSV))
|
|
528
528
|
return false;
|
|
529
529
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
530
|
-
if (!equals(this.
|
|
530
|
+
if (!equals(this.b76_1, tmp0_other_with_cast.b76_1))
|
|
531
531
|
return false;
|
|
532
|
-
if (!equals(this.
|
|
532
|
+
if (!equals(this.c76_1, tmp0_other_with_cast.c76_1))
|
|
533
533
|
return false;
|
|
534
|
-
if (!equals(this.
|
|
534
|
+
if (!equals(this.d76_1, tmp0_other_with_cast.d76_1))
|
|
535
535
|
return false;
|
|
536
|
-
if (!equals(this.
|
|
536
|
+
if (!equals(this.e76_1, tmp0_other_with_cast.e76_1))
|
|
537
537
|
return false;
|
|
538
538
|
return true;
|
|
539
539
|
};
|
|
540
540
|
function GammaTransferFunctions(gamma) {
|
|
541
|
-
this.
|
|
541
|
+
this.n76_1 = gamma;
|
|
542
542
|
}
|
|
543
|
-
protoOf(GammaTransferFunctions).
|
|
544
|
-
return spow(x, this.
|
|
543
|
+
protoOf(GammaTransferFunctions).o76 = function (x) {
|
|
544
|
+
return spow(x, this.n76_1);
|
|
545
545
|
};
|
|
546
|
-
protoOf(GammaTransferFunctions).
|
|
547
|
-
return spow(x, 1.0 / this.
|
|
546
|
+
protoOf(GammaTransferFunctions).p76 = function (x) {
|
|
547
|
+
return spow(x, 1.0 / this.n76_1);
|
|
548
548
|
};
|
|
549
549
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
550
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
550
|
+
return 'GammaTransferFunctions(gamma=' + this.n76_1 + ')';
|
|
551
551
|
};
|
|
552
552
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
553
|
-
return getNumberHashCode(this.
|
|
553
|
+
return getNumberHashCode(this.n76_1);
|
|
554
554
|
};
|
|
555
555
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
556
556
|
if (this === other)
|
|
@@ -558,16 +558,16 @@
|
|
|
558
558
|
if (!(other instanceof GammaTransferFunctions))
|
|
559
559
|
return false;
|
|
560
560
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
561
|
-
if (!equals(this.
|
|
561
|
+
if (!equals(this.n76_1, tmp0_other_with_cast.n76_1))
|
|
562
562
|
return false;
|
|
563
563
|
return true;
|
|
564
564
|
};
|
|
565
565
|
function LinearTransferFunctions() {
|
|
566
566
|
}
|
|
567
|
-
protoOf(LinearTransferFunctions).
|
|
567
|
+
protoOf(LinearTransferFunctions).o76 = function (x) {
|
|
568
568
|
return x;
|
|
569
569
|
};
|
|
570
|
-
protoOf(LinearTransferFunctions).
|
|
570
|
+
protoOf(LinearTransferFunctions).p76 = function (x) {
|
|
571
571
|
return x;
|
|
572
572
|
};
|
|
573
573
|
var LinearTransferFunctions_instance;
|
|
@@ -578,31 +578,31 @@
|
|
|
578
578
|
}
|
|
579
579
|
function Companion_2() {
|
|
580
580
|
Companion_instance_2 = this;
|
|
581
|
-
this.
|
|
581
|
+
this.f76_1 = RGBColorSpaces_getInstance().x76_1;
|
|
582
582
|
}
|
|
583
|
-
protoOf(Companion_2).
|
|
584
|
-
return this.
|
|
585
|
-
};
|
|
586
|
-
protoOf(Companion_2).r76 = function () {
|
|
587
|
-
return this.c76_1.r76();
|
|
583
|
+
protoOf(Companion_2).v76 = function () {
|
|
584
|
+
return this.f76_1.v76();
|
|
588
585
|
};
|
|
589
|
-
protoOf(Companion_2).
|
|
590
|
-
return this.
|
|
586
|
+
protoOf(Companion_2).u76 = function () {
|
|
587
|
+
return this.f76_1.u76();
|
|
591
588
|
};
|
|
592
589
|
protoOf(Companion_2).t76 = function () {
|
|
593
|
-
return this.
|
|
590
|
+
return this.f76_1.t76();
|
|
591
|
+
};
|
|
592
|
+
protoOf(Companion_2).w76 = function () {
|
|
593
|
+
return this.f76_1.w76();
|
|
594
594
|
};
|
|
595
|
-
protoOf(Companion_2).
|
|
596
|
-
return this.
|
|
595
|
+
protoOf(Companion_2).r76 = function (r, g, b, alpha) {
|
|
596
|
+
return this.f76_1.r76(r, g, b, alpha);
|
|
597
597
|
};
|
|
598
|
-
protoOf(Companion_2).
|
|
599
|
-
return this.
|
|
598
|
+
protoOf(Companion_2).g76 = function (r, g, b, alpha) {
|
|
599
|
+
return this.f76_1.g76(r, g, b, alpha);
|
|
600
600
|
};
|
|
601
|
-
protoOf(Companion_2).
|
|
602
|
-
return this.
|
|
601
|
+
protoOf(Companion_2).q76 = function (r, g, b, alpha) {
|
|
602
|
+
return this.f76_1.q76(r, g, b, alpha);
|
|
603
603
|
};
|
|
604
|
-
protoOf(Companion_2).
|
|
605
|
-
return this.
|
|
604
|
+
protoOf(Companion_2).s76 = function (hex) {
|
|
605
|
+
return this.f76_1.s76(hex);
|
|
606
606
|
};
|
|
607
607
|
var Companion_instance_2;
|
|
608
608
|
function Companion_getInstance_2() {
|
|
@@ -612,43 +612,43 @@
|
|
|
612
612
|
}
|
|
613
613
|
function RGB(r, g, b, alpha, space) {
|
|
614
614
|
Companion_getInstance_2();
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
615
|
+
this.v75_1 = r;
|
|
616
|
+
this.w75_1 = g;
|
|
617
|
+
this.x75_1 = b;
|
|
618
|
+
this.y75_1 = alpha;
|
|
619
|
+
this.z75_1 = space;
|
|
620
620
|
}
|
|
621
|
-
protoOf(RGB).
|
|
621
|
+
protoOf(RGB).j77 = function () {
|
|
622
622
|
// Inline function 'kotlin.math.roundToInt' call
|
|
623
|
-
var this_0 = this.
|
|
623
|
+
var this_0 = this.v75_1 * 255;
|
|
624
624
|
return roundToInt(this_0);
|
|
625
625
|
};
|
|
626
|
-
protoOf(RGB).
|
|
626
|
+
protoOf(RGB).k77 = function () {
|
|
627
627
|
// Inline function 'kotlin.math.roundToInt' call
|
|
628
|
-
var this_0 = this.
|
|
628
|
+
var this_0 = this.w75_1 * 255;
|
|
629
629
|
return roundToInt(this_0);
|
|
630
630
|
};
|
|
631
|
-
protoOf(RGB).
|
|
631
|
+
protoOf(RGB).l77 = function () {
|
|
632
632
|
// Inline function 'kotlin.math.roundToInt' call
|
|
633
|
-
var this_0 = this.
|
|
633
|
+
var this_0 = this.x75_1 * 255;
|
|
634
634
|
return roundToInt(this_0);
|
|
635
635
|
};
|
|
636
|
-
protoOf(RGB).
|
|
637
|
-
var f = SRGB_getInstance().
|
|
638
|
-
return equals(this.
|
|
636
|
+
protoOf(RGB).m77 = function (space) {
|
|
637
|
+
var f = SRGB_getInstance().k76_1;
|
|
638
|
+
return equals(this.z75_1, space) ? this : equals(this.z75_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().y76_1) ? space.g76(f.o76(this.v75_1), f.o76(this.w75_1), f.o76(this.x75_1), this.y75_1) : equals(this.z75_1, RGBColorSpaces_getInstance().y76_1) && equals(space, SRGB_getInstance()) ? space.g76(f.p76(this.v75_1), f.p76(this.w75_1), f.p76(this.x75_1), this.y75_1) : this.n77().t77(space);
|
|
639
639
|
};
|
|
640
|
-
protoOf(RGB).
|
|
641
|
-
return this.
|
|
640
|
+
protoOf(RGB).u77 = function () {
|
|
641
|
+
return this.v77(coerceIn(this.v75_1, 0.0, 1.0), coerceIn(this.w75_1, 0.0, 1.0), coerceIn(this.x75_1, 0.0, 1.0), coerceIn(this.y75_1, 0.0, 1.0));
|
|
642
642
|
};
|
|
643
|
-
protoOf(RGB).
|
|
643
|
+
protoOf(RGB).w77 = function () {
|
|
644
644
|
var tmp$ret$3;
|
|
645
645
|
$l$block: {
|
|
646
646
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
647
647
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
648
|
-
var $this$toSRGB = this.
|
|
649
|
-
var r = $this$toSRGB.
|
|
650
|
-
var g = $this$toSRGB.
|
|
651
|
-
var b = $this$toSRGB.
|
|
648
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
649
|
+
var r = $this$toSRGB.v75_1;
|
|
650
|
+
var g = $this$toSRGB.w75_1;
|
|
651
|
+
var b = $this$toSRGB.x75_1;
|
|
652
652
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
653
653
|
var min = Math.min(r, g, b);
|
|
654
654
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -670,94 +670,94 @@
|
|
|
670
670
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
671
671
|
var h_0 = normalizeDeg(h);
|
|
672
672
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
673
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
673
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.y75_1);
|
|
674
674
|
break $l$block;
|
|
675
675
|
}
|
|
676
676
|
return tmp$ret$3;
|
|
677
677
|
};
|
|
678
|
-
protoOf(RGB).
|
|
679
|
-
var f = this.
|
|
678
|
+
protoOf(RGB).n77 = function () {
|
|
679
|
+
var f = this.z75_1.t76();
|
|
680
680
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
681
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
682
|
-
var v0 = f.
|
|
683
|
-
var v1 = f.
|
|
684
|
-
var v2 = f.
|
|
681
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.z75_1.u76());
|
|
682
|
+
var v0 = f.o76(this.v75_1);
|
|
683
|
+
var v1 = f.o76(this.w75_1);
|
|
684
|
+
var v2 = f.o76(this.x75_1);
|
|
685
685
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
686
686
|
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;
|
|
687
687
|
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;
|
|
688
688
|
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;
|
|
689
|
-
return XYZColorSpace(this.
|
|
689
|
+
return XYZColorSpace(this.z75_1.w76()).g76(x, y, z, this.y75_1);
|
|
690
690
|
};
|
|
691
|
-
protoOf(RGB).
|
|
691
|
+
protoOf(RGB).t75 = function () {
|
|
692
692
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
693
|
-
var $this$toSRGB = this.
|
|
693
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
694
694
|
// Inline function 'kotlin.math.roundToInt' call
|
|
695
|
-
var this_0 = $this$toSRGB.
|
|
695
|
+
var this_0 = $this$toSRGB.w77().d76_1 * 100;
|
|
696
696
|
var value = roundToInt(this_0);
|
|
697
697
|
if (value === 30)
|
|
698
698
|
return new Ansi16(30);
|
|
699
699
|
var v = value / 50 | 0;
|
|
700
700
|
// Inline function 'kotlin.math.roundToInt' call
|
|
701
|
-
var this_1 = $this$toSRGB.
|
|
701
|
+
var this_1 = $this$toSRGB.x75_1;
|
|
702
702
|
var tmp$ret$1 = roundToInt(this_1);
|
|
703
703
|
var tmp = imul(tmp$ret$1, 4);
|
|
704
704
|
// Inline function 'kotlin.math.roundToInt' call
|
|
705
|
-
var this_2 = $this$toSRGB.
|
|
705
|
+
var this_2 = $this$toSRGB.w75_1;
|
|
706
706
|
var tmp$ret$2 = roundToInt(this_2);
|
|
707
707
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
708
708
|
// Inline function 'kotlin.math.roundToInt' call
|
|
709
|
-
var this_3 = $this$toSRGB.
|
|
709
|
+
var this_3 = $this$toSRGB.v75_1;
|
|
710
710
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
711
711
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
712
712
|
};
|
|
713
|
-
protoOf(RGB).
|
|
713
|
+
protoOf(RGB).x77 = function () {
|
|
714
714
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
715
|
-
var $this$toSRGB = this.
|
|
716
|
-
var ri = $this$toSRGB.
|
|
717
|
-
var gi = $this$toSRGB.
|
|
718
|
-
var bi = $this$toSRGB.
|
|
715
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
716
|
+
var ri = $this$toSRGB.j77();
|
|
717
|
+
var gi = $this$toSRGB.k77();
|
|
718
|
+
var bi = $this$toSRGB.l77();
|
|
719
719
|
var tmp;
|
|
720
720
|
if (ri === gi && gi === bi) {
|
|
721
721
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
722
722
|
} else {
|
|
723
723
|
// Inline function 'kotlin.math.roundToInt' call
|
|
724
|
-
var this_0 = $this$toSRGB.
|
|
724
|
+
var this_0 = $this$toSRGB.v75_1 * 5;
|
|
725
725
|
var tmp$ret$0 = roundToInt(this_0);
|
|
726
726
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
727
727
|
// Inline function 'kotlin.math.roundToInt' call
|
|
728
|
-
var this_1 = $this$toSRGB.
|
|
728
|
+
var this_1 = $this$toSRGB.w75_1 * 5;
|
|
729
729
|
var tmp$ret$1 = roundToInt(this_1);
|
|
730
730
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
731
731
|
// Inline function 'kotlin.math.roundToInt' call
|
|
732
|
-
var this_2 = $this$toSRGB.
|
|
732
|
+
var this_2 = $this$toSRGB.x75_1 * 5;
|
|
733
733
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
734
734
|
}
|
|
735
735
|
var code = tmp;
|
|
736
736
|
return new Ansi256(code);
|
|
737
737
|
};
|
|
738
|
-
protoOf(RGB).
|
|
739
|
-
return this.
|
|
738
|
+
protoOf(RGB).o75 = function () {
|
|
739
|
+
return this.m77(RGBColorSpaces_getInstance().x76_1);
|
|
740
740
|
};
|
|
741
|
-
protoOf(RGB).
|
|
741
|
+
protoOf(RGB).y77 = function (r, g, b, alpha, space) {
|
|
742
742
|
return new RGB(r, g, b, alpha, space);
|
|
743
743
|
};
|
|
744
|
-
protoOf(RGB).
|
|
745
|
-
r = r === VOID ? this.
|
|
746
|
-
g = g === VOID ? this.
|
|
747
|
-
b = b === VOID ? this.
|
|
748
|
-
alpha = alpha === VOID ? this.
|
|
749
|
-
space = space === VOID ? this.
|
|
750
|
-
return $super === VOID ? this.
|
|
744
|
+
protoOf(RGB).v77 = function (r, g, b, alpha, space, $super) {
|
|
745
|
+
r = r === VOID ? this.v75_1 : r;
|
|
746
|
+
g = g === VOID ? this.w75_1 : g;
|
|
747
|
+
b = b === VOID ? this.x75_1 : b;
|
|
748
|
+
alpha = alpha === VOID ? this.y75_1 : alpha;
|
|
749
|
+
space = space === VOID ? this.z75_1 : space;
|
|
750
|
+
return $super === VOID ? this.y77(r, g, b, alpha, space) : $super.y77.call(this, r, g, b, alpha, space);
|
|
751
751
|
};
|
|
752
752
|
protoOf(RGB).toString = function () {
|
|
753
|
-
return 'RGB(r=' + this.
|
|
753
|
+
return 'RGB(r=' + this.v75_1 + ', g=' + this.w75_1 + ', b=' + this.x75_1 + ', alpha=' + this.y75_1 + ', space=' + toString_0(this.z75_1) + ')';
|
|
754
754
|
};
|
|
755
755
|
protoOf(RGB).hashCode = function () {
|
|
756
|
-
var result = getNumberHashCode(this.
|
|
757
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
758
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
759
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
760
|
-
result = imul(result, 31) + hashCode(this.
|
|
756
|
+
var result = getNumberHashCode(this.v75_1);
|
|
757
|
+
result = imul(result, 31) + getNumberHashCode(this.w75_1) | 0;
|
|
758
|
+
result = imul(result, 31) + getNumberHashCode(this.x75_1) | 0;
|
|
759
|
+
result = imul(result, 31) + getNumberHashCode(this.y75_1) | 0;
|
|
760
|
+
result = imul(result, 31) + hashCode(this.z75_1) | 0;
|
|
761
761
|
return result;
|
|
762
762
|
};
|
|
763
763
|
protoOf(RGB).equals = function (other) {
|
|
@@ -766,15 +766,15 @@
|
|
|
766
766
|
if (!(other instanceof RGB))
|
|
767
767
|
return false;
|
|
768
768
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
769
|
-
if (!equals(this.
|
|
769
|
+
if (!equals(this.v75_1, tmp0_other_with_cast.v75_1))
|
|
770
770
|
return false;
|
|
771
|
-
if (!equals(this.
|
|
771
|
+
if (!equals(this.w75_1, tmp0_other_with_cast.w75_1))
|
|
772
772
|
return false;
|
|
773
|
-
if (!equals(this.
|
|
773
|
+
if (!equals(this.x75_1, tmp0_other_with_cast.x75_1))
|
|
774
774
|
return false;
|
|
775
|
-
if (!equals(this.
|
|
775
|
+
if (!equals(this.y75_1, tmp0_other_with_cast.y75_1))
|
|
776
776
|
return false;
|
|
777
|
-
if (!equals(this.
|
|
777
|
+
if (!equals(this.z75_1, tmp0_other_with_cast.z75_1))
|
|
778
778
|
return false;
|
|
779
779
|
return true;
|
|
780
780
|
};
|
|
@@ -876,18 +876,18 @@
|
|
|
876
876
|
var ACES_AP1_B;
|
|
877
877
|
function RGBColorSpaces() {
|
|
878
878
|
RGBColorSpaces_instance = this;
|
|
879
|
-
this.
|
|
880
|
-
this.
|
|
881
|
-
this.
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
885
|
-
this.
|
|
886
|
-
this.
|
|
887
|
-
this.
|
|
888
|
-
this.
|
|
889
|
-
this.
|
|
890
|
-
this.
|
|
879
|
+
this.x76_1 = SRGB_getInstance();
|
|
880
|
+
this.y76_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().h75_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
881
|
+
this.z76_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
882
|
+
this.a77_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
883
|
+
this.b77_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
884
|
+
this.c77_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
885
|
+
this.d77_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().h75_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));
|
|
886
|
+
this.e77_1 = BT2020Space_getInstance();
|
|
887
|
+
this.f77_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().h75_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
888
|
+
this.g77_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));
|
|
889
|
+
this.h77_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().h75_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
890
|
+
this.i77_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().f75_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));
|
|
891
891
|
}
|
|
892
892
|
var RGBColorSpaces_instance;
|
|
893
893
|
function RGBColorSpaces_getInstance() {
|
|
@@ -897,29 +897,29 @@
|
|
|
897
897
|
}
|
|
898
898
|
function SRGB() {
|
|
899
899
|
SRGB_instance = this;
|
|
900
|
-
this.
|
|
901
|
-
this.
|
|
902
|
-
this.
|
|
903
|
-
this.
|
|
904
|
-
this.
|
|
905
|
-
this.
|
|
906
|
-
}
|
|
900
|
+
this.h76_1 = 'sRGB';
|
|
901
|
+
this.i76_1 = rectangularComponentInfo('RGB');
|
|
902
|
+
this.j76_1 = Illuminant_getInstance().h75_1;
|
|
903
|
+
this.k76_1 = SRGBTransferFunctions_instance;
|
|
904
|
+
this.l76_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.j76_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B()));
|
|
905
|
+
this.m76_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.l76_1)));
|
|
906
|
+
}
|
|
907
|
+
protoOf(SRGB).w76 = function () {
|
|
908
|
+
return this.j76_1;
|
|
909
|
+
};
|
|
907
910
|
protoOf(SRGB).t76 = function () {
|
|
908
|
-
return this.
|
|
911
|
+
return this.k76_1;
|
|
909
912
|
};
|
|
910
|
-
protoOf(SRGB).
|
|
911
|
-
return this.
|
|
913
|
+
protoOf(SRGB).u76 = function () {
|
|
914
|
+
return this.l76_1;
|
|
912
915
|
};
|
|
913
|
-
protoOf(SRGB).
|
|
914
|
-
return this.
|
|
915
|
-
};
|
|
916
|
-
protoOf(SRGB).s76 = function () {
|
|
917
|
-
return this.j76_1;
|
|
916
|
+
protoOf(SRGB).v76 = function () {
|
|
917
|
+
return this.m76_1;
|
|
918
918
|
};
|
|
919
919
|
protoOf(SRGB).toString = function () {
|
|
920
|
-
return this.
|
|
920
|
+
return this.h76_1;
|
|
921
921
|
};
|
|
922
|
-
protoOf(SRGB).
|
|
922
|
+
protoOf(SRGB).g76 = function (r, g, b, alpha) {
|
|
923
923
|
return new RGB(r, g, b, alpha, this);
|
|
924
924
|
};
|
|
925
925
|
var SRGB_instance;
|
|
@@ -934,14 +934,14 @@
|
|
|
934
934
|
}
|
|
935
935
|
function ACESccTransferFunctions() {
|
|
936
936
|
ACESccTransferFunctions_instance = this;
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
937
|
+
this.z77_1 = 3.0517578125E-5;
|
|
938
|
+
this.a78_1 = 1.52587890625E-5;
|
|
939
|
+
this.b78_1 = -0.3013698630136986;
|
|
940
940
|
var tmp = this;
|
|
941
941
|
// Inline function 'kotlin.math.log2' call
|
|
942
|
-
tmp.
|
|
942
|
+
tmp.c78_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
943
943
|
}
|
|
944
|
-
protoOf(ACESccTransferFunctions).
|
|
944
|
+
protoOf(ACESccTransferFunctions).o76 = function (x) {
|
|
945
945
|
var tmp;
|
|
946
946
|
var tmp_0 = x;
|
|
947
947
|
ACESccTransferFunctions_getInstance();
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
ACESccTransferFunctions_getInstance();
|
|
951
951
|
tmp = (tmp_1 - 1.52587890625E-5) * 2.0;
|
|
952
952
|
} else {
|
|
953
|
-
if (x < this.
|
|
953
|
+
if (x < this.c78_1) {
|
|
954
954
|
// Inline function 'kotlin.math.pow' call
|
|
955
955
|
var x_0 = x * 17.52 - 9.72;
|
|
956
956
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
}
|
|
961
961
|
return tmp;
|
|
962
962
|
};
|
|
963
|
-
protoOf(ACESccTransferFunctions).
|
|
963
|
+
protoOf(ACESccTransferFunctions).p76 = function (x) {
|
|
964
964
|
var tmp;
|
|
965
965
|
var tmp_0 = x;
|
|
966
966
|
ACESccTransferFunctions_getInstance();
|
|
@@ -983,20 +983,20 @@
|
|
|
983
983
|
}
|
|
984
984
|
function ACEScctTransferFunctions() {
|
|
985
985
|
ACEScctTransferFunctions_instance = this;
|
|
986
|
-
this.
|
|
987
|
-
this.
|
|
986
|
+
this.d78_1 = 10.5402377416545;
|
|
987
|
+
this.e78_1 = 0.0729055341958355;
|
|
988
988
|
var tmp = this;
|
|
989
989
|
// Inline function 'kotlin.math.log2' call
|
|
990
|
-
tmp.
|
|
990
|
+
tmp.f78_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
991
991
|
}
|
|
992
|
-
protoOf(ACEScctTransferFunctions).
|
|
992
|
+
protoOf(ACEScctTransferFunctions).o76 = function (x) {
|
|
993
993
|
var tmp;
|
|
994
994
|
if (x <= 0.155251141552511) {
|
|
995
995
|
ACEScctTransferFunctions_getInstance();
|
|
996
996
|
var tmp_0 = x - 0.0729055341958355;
|
|
997
997
|
ACEScctTransferFunctions_getInstance();
|
|
998
998
|
tmp = tmp_0 / 10.5402377416545;
|
|
999
|
-
} else if (x < this.
|
|
999
|
+
} else if (x < this.f78_1) {
|
|
1000
1000
|
// Inline function 'kotlin.math.pow' call
|
|
1001
1001
|
var x_0 = x * 17.52 - 9.72;
|
|
1002
1002
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return tmp;
|
|
1007
1007
|
};
|
|
1008
|
-
protoOf(ACEScctTransferFunctions).
|
|
1008
|
+
protoOf(ACEScctTransferFunctions).p76 = function (x) {
|
|
1009
1009
|
var tmp;
|
|
1010
1010
|
if (x < 0.0078125) {
|
|
1011
1011
|
ACEScctTransferFunctions_getInstance();
|
|
@@ -1026,30 +1026,30 @@
|
|
|
1026
1026
|
}
|
|
1027
1027
|
function BT2020Space() {
|
|
1028
1028
|
BT2020Space_instance = this;
|
|
1029
|
-
this.
|
|
1030
|
-
this.
|
|
1031
|
-
this.
|
|
1032
|
-
this.
|
|
1033
|
-
this.
|
|
1034
|
-
this.
|
|
1035
|
-
}
|
|
1036
|
-
protoOf(BT2020Space).
|
|
1037
|
-
return this.
|
|
1029
|
+
this.g78_1 = 'BT.2020';
|
|
1030
|
+
this.h78_1 = rectangularComponentInfo('RGB');
|
|
1031
|
+
this.i78_1 = Illuminant_getInstance().h75_1;
|
|
1032
|
+
this.j78_1 = BT2020TransferFunctions_getInstance();
|
|
1033
|
+
this.k78_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i78_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046)));
|
|
1034
|
+
this.l78_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.k78_1)));
|
|
1035
|
+
}
|
|
1036
|
+
protoOf(BT2020Space).w76 = function () {
|
|
1037
|
+
return this.i78_1;
|
|
1038
1038
|
};
|
|
1039
|
-
protoOf(BT2020Space).
|
|
1040
|
-
return this.
|
|
1039
|
+
protoOf(BT2020Space).t76 = function () {
|
|
1040
|
+
return this.j78_1;
|
|
1041
1041
|
};
|
|
1042
|
-
protoOf(BT2020Space).
|
|
1042
|
+
protoOf(BT2020Space).g76 = function (r, g, b, alpha) {
|
|
1043
1043
|
return new RGB(r, g, b, alpha, this);
|
|
1044
1044
|
};
|
|
1045
|
-
protoOf(BT2020Space).
|
|
1046
|
-
return this.
|
|
1045
|
+
protoOf(BT2020Space).u76 = function () {
|
|
1046
|
+
return this.k78_1;
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(BT2020Space).
|
|
1049
|
-
return this.
|
|
1048
|
+
protoOf(BT2020Space).v76 = function () {
|
|
1049
|
+
return this.l78_1;
|
|
1050
1050
|
};
|
|
1051
1051
|
protoOf(BT2020Space).toString = function () {
|
|
1052
|
-
return this.
|
|
1052
|
+
return this.g78_1;
|
|
1053
1053
|
};
|
|
1054
1054
|
var BT2020Space_instance;
|
|
1055
1055
|
function BT2020Space_getInstance() {
|
|
@@ -1059,12 +1059,12 @@
|
|
|
1059
1059
|
}
|
|
1060
1060
|
function BT709TransferFunctions() {
|
|
1061
1061
|
BT709TransferFunctions_instance = this;
|
|
1062
|
-
this.
|
|
1062
|
+
this.m78_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1063
1063
|
}
|
|
1064
|
-
protoOf(BT709TransferFunctions).
|
|
1065
|
-
return numberToDouble(x < this.
|
|
1064
|
+
protoOf(BT709TransferFunctions).o76 = function (x) {
|
|
1065
|
+
return numberToDouble(x < this.m78_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1066
1066
|
};
|
|
1067
|
-
protoOf(BT709TransferFunctions).
|
|
1067
|
+
protoOf(BT709TransferFunctions).p76 = function (x) {
|
|
1068
1068
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1069
1069
|
};
|
|
1070
1070
|
var BT709TransferFunctions_instance;
|
|
@@ -1075,10 +1075,10 @@
|
|
|
1075
1075
|
}
|
|
1076
1076
|
function SRGBTransferFunctions() {
|
|
1077
1077
|
}
|
|
1078
|
-
protoOf(SRGBTransferFunctions).
|
|
1078
|
+
protoOf(SRGBTransferFunctions).p76 = function (x) {
|
|
1079
1079
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1080
1080
|
};
|
|
1081
|
-
protoOf(SRGBTransferFunctions).
|
|
1081
|
+
protoOf(SRGBTransferFunctions).o76 = function (x) {
|
|
1082
1082
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1083
1083
|
};
|
|
1084
1084
|
var SRGBTransferFunctions_instance;
|
|
@@ -1086,9 +1086,9 @@
|
|
|
1086
1086
|
return SRGBTransferFunctions_instance;
|
|
1087
1087
|
}
|
|
1088
1088
|
function ROMMTransferFunctions() {
|
|
1089
|
-
this.
|
|
1089
|
+
this.n78_1 = 0.001953;
|
|
1090
1090
|
}
|
|
1091
|
-
protoOf(ROMMTransferFunctions).
|
|
1091
|
+
protoOf(ROMMTransferFunctions).o76 = function (x) {
|
|
1092
1092
|
var tmp;
|
|
1093
1093
|
var tmp_0 = x;
|
|
1094
1094
|
if (tmp_0 < 16 * 0.001953) {
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return tmp;
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(ROMMTransferFunctions).
|
|
1101
|
+
protoOf(ROMMTransferFunctions).p76 = function (x) {
|
|
1102
1102
|
var tmp;
|
|
1103
1103
|
var tmp_0 = x;
|
|
1104
1104
|
if (tmp_0 < 0.001953) {
|
|
@@ -1114,13 +1114,13 @@
|
|
|
1114
1114
|
}
|
|
1115
1115
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1116
1116
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1117
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1118
|
-
var wp = whitePoint.
|
|
1117
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.o78_1, g.o78_1, b.o78_1, r.p78_1, g.p78_1, b.p78_1, r.r78(), g.r78(), b.r78());
|
|
1118
|
+
var wp = whitePoint.b75_1;
|
|
1119
1119
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1120
1120
|
var this_0 = inverse(primaries);
|
|
1121
|
-
var v0 = wp.
|
|
1122
|
-
var v1 = wp.
|
|
1123
|
-
var v2 = wp.
|
|
1121
|
+
var v0 = wp.s78();
|
|
1122
|
+
var v1 = wp.q78_1;
|
|
1123
|
+
var v2 = wp.t78();
|
|
1124
1124
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1125
1125
|
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;
|
|
1126
1126
|
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;
|
|
@@ -1128,41 +1128,41 @@
|
|
|
1128
1128
|
return dotDiagonal(primaries, x, y, z);
|
|
1129
1129
|
}
|
|
1130
1130
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b) {
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
}
|
|
1141
|
-
protoOf(RGBColorSpaceImpl).
|
|
1142
|
-
return this.
|
|
1131
|
+
this.u78_1 = name;
|
|
1132
|
+
this.v78_1 = whitePoint;
|
|
1133
|
+
this.w78_1 = transferFunctions;
|
|
1134
|
+
this.x78_1 = r;
|
|
1135
|
+
this.y78_1 = g;
|
|
1136
|
+
this.z78_1 = b;
|
|
1137
|
+
this.a79_1 = rectangularComponentInfo('RGB');
|
|
1138
|
+
this.b79_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.v78_1, this.x78_1, this.y78_1, this.z78_1));
|
|
1139
|
+
this.c79_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.b79_1)));
|
|
1140
|
+
}
|
|
1141
|
+
protoOf(RGBColorSpaceImpl).w76 = function () {
|
|
1142
|
+
return this.v78_1;
|
|
1143
1143
|
};
|
|
1144
|
-
protoOf(RGBColorSpaceImpl).
|
|
1145
|
-
return this.
|
|
1144
|
+
protoOf(RGBColorSpaceImpl).t76 = function () {
|
|
1145
|
+
return this.w78_1;
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(RGBColorSpaceImpl).
|
|
1148
|
-
return this.
|
|
1147
|
+
protoOf(RGBColorSpaceImpl).u76 = function () {
|
|
1148
|
+
return this.b79_1;
|
|
1149
1149
|
};
|
|
1150
|
-
protoOf(RGBColorSpaceImpl).
|
|
1151
|
-
return this.
|
|
1150
|
+
protoOf(RGBColorSpaceImpl).v76 = function () {
|
|
1151
|
+
return this.c79_1;
|
|
1152
1152
|
};
|
|
1153
1153
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1154
|
-
return this.
|
|
1154
|
+
return this.u78_1;
|
|
1155
1155
|
};
|
|
1156
|
-
protoOf(RGBColorSpaceImpl).
|
|
1156
|
+
protoOf(RGBColorSpaceImpl).g76 = function (r, g, b, alpha) {
|
|
1157
1157
|
return new RGB(r, g, b, alpha, this);
|
|
1158
1158
|
};
|
|
1159
1159
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1160
|
-
var result = getStringHashCode(this.
|
|
1161
|
-
result = imul(result, 31) + this.s78_1.hashCode() | 0;
|
|
1162
|
-
result = imul(result, 31) + hashCode(this.t78_1) | 0;
|
|
1163
|
-
result = imul(result, 31) + this.u78_1.hashCode() | 0;
|
|
1160
|
+
var result = getStringHashCode(this.u78_1);
|
|
1164
1161
|
result = imul(result, 31) + this.v78_1.hashCode() | 0;
|
|
1165
|
-
result = imul(result, 31) + this.w78_1
|
|
1162
|
+
result = imul(result, 31) + hashCode(this.w78_1) | 0;
|
|
1163
|
+
result = imul(result, 31) + this.x78_1.hashCode() | 0;
|
|
1164
|
+
result = imul(result, 31) + this.y78_1.hashCode() | 0;
|
|
1165
|
+
result = imul(result, 31) + this.z78_1.hashCode() | 0;
|
|
1166
1166
|
return result;
|
|
1167
1167
|
};
|
|
1168
1168
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1171,35 +1171,35 @@
|
|
|
1171
1171
|
if (!(other instanceof RGBColorSpaceImpl))
|
|
1172
1172
|
return false;
|
|
1173
1173
|
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE();
|
|
1174
|
-
if (!(this.
|
|
1174
|
+
if (!(this.u78_1 === tmp0_other_with_cast.u78_1))
|
|
1175
1175
|
return false;
|
|
1176
|
-
if (!this.
|
|
1176
|
+
if (!this.v78_1.equals(tmp0_other_with_cast.v78_1))
|
|
1177
1177
|
return false;
|
|
1178
|
-
if (!equals(this.
|
|
1178
|
+
if (!equals(this.w78_1, tmp0_other_with_cast.w78_1))
|
|
1179
1179
|
return false;
|
|
1180
|
-
if (!this.
|
|
1180
|
+
if (!this.x78_1.equals(tmp0_other_with_cast.x78_1))
|
|
1181
1181
|
return false;
|
|
1182
|
-
if (!this.
|
|
1182
|
+
if (!this.y78_1.equals(tmp0_other_with_cast.y78_1))
|
|
1183
1183
|
return false;
|
|
1184
|
-
if (!this.
|
|
1184
|
+
if (!this.z78_1.equals(tmp0_other_with_cast.z78_1))
|
|
1185
1185
|
return false;
|
|
1186
1186
|
return true;
|
|
1187
1187
|
};
|
|
1188
1188
|
function BT2020TransferFunctions() {
|
|
1189
1189
|
BT2020TransferFunctions_instance = this;
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1190
|
+
this.d79_1 = 1.0993;
|
|
1191
|
+
this.e79_1 = 0.0181;
|
|
1192
1192
|
var tmp = this;
|
|
1193
1193
|
BT2020TransferFunctions_getInstance();
|
|
1194
1194
|
// Inline function 'kotlin.math.pow' call
|
|
1195
1195
|
BT2020TransferFunctions_getInstance();
|
|
1196
1196
|
var tmp_0 = 1.0993 * Math.pow(0.0181, 0.45);
|
|
1197
1197
|
BT2020TransferFunctions_getInstance();
|
|
1198
|
-
tmp.
|
|
1198
|
+
tmp.f79_1 = tmp_0 - (1.0993 - 1);
|
|
1199
1199
|
}
|
|
1200
|
-
protoOf(BT2020TransferFunctions).
|
|
1200
|
+
protoOf(BT2020TransferFunctions).o76 = function (x) {
|
|
1201
1201
|
var tmp;
|
|
1202
|
-
if (x < this.
|
|
1202
|
+
if (x < this.f79_1) {
|
|
1203
1203
|
tmp = x / 4.5;
|
|
1204
1204
|
} else {
|
|
1205
1205
|
BT2020TransferFunctions_getInstance();
|
|
@@ -1209,7 +1209,7 @@
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return numberToDouble(tmp);
|
|
1211
1211
|
};
|
|
1212
|
-
protoOf(BT2020TransferFunctions).
|
|
1212
|
+
protoOf(BT2020TransferFunctions).p76 = function (x) {
|
|
1213
1213
|
var tmp;
|
|
1214
1214
|
var tmp_0 = x;
|
|
1215
1215
|
BT2020TransferFunctions_getInstance();
|
|
@@ -1247,13 +1247,13 @@
|
|
|
1247
1247
|
}
|
|
1248
1248
|
function Companion_3() {
|
|
1249
1249
|
Companion_instance_3 = this;
|
|
1250
|
-
this.
|
|
1250
|
+
this.g79_1 = XYZColorSpaces_getInstance().h79_1;
|
|
1251
1251
|
}
|
|
1252
|
-
protoOf(Companion_3).
|
|
1253
|
-
return this.
|
|
1252
|
+
protoOf(Companion_3).w76 = function () {
|
|
1253
|
+
return this.g79_1.w76();
|
|
1254
1254
|
};
|
|
1255
|
-
protoOf(Companion_3).
|
|
1256
|
-
return this.
|
|
1255
|
+
protoOf(Companion_3).g76 = function (x, y, z, alpha) {
|
|
1256
|
+
return this.g79_1.g76(x, y, z, alpha);
|
|
1257
1257
|
};
|
|
1258
1258
|
var Companion_instance_3;
|
|
1259
1259
|
function Companion_getInstance_3() {
|
|
@@ -1262,65 +1262,65 @@
|
|
|
1262
1262
|
return Companion_instance_3;
|
|
1263
1263
|
}
|
|
1264
1264
|
function adaptToM($this, space, m, mi) {
|
|
1265
|
-
if (space.
|
|
1265
|
+
if (space.w76().equals($this.s77_1.w76()))
|
|
1266
1266
|
return $this;
|
|
1267
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1267
|
+
var transform = chromaticAdaptationMatrix(space, $this.s77_1.w76().b75_1, m, mi);
|
|
1268
1268
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1269
|
-
var v0 = $this.
|
|
1270
|
-
var v1 = $this.
|
|
1271
|
-
var v2 = $this.
|
|
1269
|
+
var v0 = $this.o77_1;
|
|
1270
|
+
var v1 = $this.p77_1;
|
|
1271
|
+
var v2 = $this.q77_1;
|
|
1272
1272
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1273
1273
|
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;
|
|
1274
1274
|
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;
|
|
1275
1275
|
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;
|
|
1276
|
-
return space.
|
|
1276
|
+
return space.g76(xx, yy, zz, $this.r77_1);
|
|
1277
1277
|
}
|
|
1278
1278
|
function XYZ(x, y, z, alpha, space) {
|
|
1279
1279
|
Companion_getInstance_3();
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1280
|
+
this.o77_1 = x;
|
|
1281
|
+
this.p77_1 = y;
|
|
1282
|
+
this.q77_1 = z;
|
|
1283
|
+
this.r77_1 = alpha;
|
|
1284
|
+
this.s77_1 = space;
|
|
1285
1285
|
}
|
|
1286
|
-
protoOf(XYZ).
|
|
1286
|
+
protoOf(XYZ).j79 = function (space) {
|
|
1287
1287
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1288
1288
|
};
|
|
1289
|
-
protoOf(XYZ).
|
|
1290
|
-
var tmp0_container = this.
|
|
1289
|
+
protoOf(XYZ).t77 = function (space) {
|
|
1290
|
+
var tmp0_container = this.j79(XYZColorSpace(space.w76()));
|
|
1291
1291
|
var x = tmp0_container.xf();
|
|
1292
1292
|
var y = tmp0_container.yf();
|
|
1293
1293
|
var z = tmp0_container.ok();
|
|
1294
|
-
var f = space.
|
|
1294
|
+
var f = space.t76();
|
|
1295
1295
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1296
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1296
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.v76());
|
|
1297
1297
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1298
1298
|
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;
|
|
1299
1299
|
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;
|
|
1300
1300
|
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;
|
|
1301
|
-
return space.
|
|
1301
|
+
return space.g76(f.p76(r), f.p76(g), f.p76(b), this.r77_1);
|
|
1302
1302
|
};
|
|
1303
|
-
protoOf(XYZ).
|
|
1304
|
-
return this.
|
|
1303
|
+
protoOf(XYZ).o75 = function () {
|
|
1304
|
+
return this.t77(RGBColorSpaces_getInstance().x76_1);
|
|
1305
1305
|
};
|
|
1306
1306
|
protoOf(XYZ).xf = function () {
|
|
1307
|
-
return this.
|
|
1307
|
+
return this.o77_1;
|
|
1308
1308
|
};
|
|
1309
1309
|
protoOf(XYZ).yf = function () {
|
|
1310
|
-
return this.
|
|
1310
|
+
return this.p77_1;
|
|
1311
1311
|
};
|
|
1312
1312
|
protoOf(XYZ).ok = function () {
|
|
1313
|
-
return this.
|
|
1313
|
+
return this.q77_1;
|
|
1314
1314
|
};
|
|
1315
1315
|
protoOf(XYZ).toString = function () {
|
|
1316
|
-
return 'XYZ(x=' + this.
|
|
1316
|
+
return 'XYZ(x=' + this.o77_1 + ', y=' + this.p77_1 + ', z=' + this.q77_1 + ', alpha=' + this.r77_1 + ', space=' + toString_0(this.s77_1) + ')';
|
|
1317
1317
|
};
|
|
1318
1318
|
protoOf(XYZ).hashCode = function () {
|
|
1319
|
-
var result = getNumberHashCode(this.
|
|
1320
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1321
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1322
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1323
|
-
result = imul(result, 31) + hashCode(this.
|
|
1319
|
+
var result = getNumberHashCode(this.o77_1);
|
|
1320
|
+
result = imul(result, 31) + getNumberHashCode(this.p77_1) | 0;
|
|
1321
|
+
result = imul(result, 31) + getNumberHashCode(this.q77_1) | 0;
|
|
1322
|
+
result = imul(result, 31) + getNumberHashCode(this.r77_1) | 0;
|
|
1323
|
+
result = imul(result, 31) + hashCode(this.s77_1) | 0;
|
|
1324
1324
|
return result;
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1329,25 +1329,25 @@
|
|
|
1329
1329
|
if (!(other instanceof XYZ))
|
|
1330
1330
|
return false;
|
|
1331
1331
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1332
|
-
if (!equals(this.
|
|
1332
|
+
if (!equals(this.o77_1, tmp0_other_with_cast.o77_1))
|
|
1333
1333
|
return false;
|
|
1334
|
-
if (!equals(this.
|
|
1334
|
+
if (!equals(this.p77_1, tmp0_other_with_cast.p77_1))
|
|
1335
1335
|
return false;
|
|
1336
|
-
if (!equals(this.
|
|
1336
|
+
if (!equals(this.q77_1, tmp0_other_with_cast.q77_1))
|
|
1337
1337
|
return false;
|
|
1338
|
-
if (!equals(this.
|
|
1338
|
+
if (!equals(this.r77_1, tmp0_other_with_cast.r77_1))
|
|
1339
1339
|
return false;
|
|
1340
|
-
if (!equals(this.
|
|
1340
|
+
if (!equals(this.s77_1, tmp0_other_with_cast.s77_1))
|
|
1341
1341
|
return false;
|
|
1342
1342
|
return true;
|
|
1343
1343
|
};
|
|
1344
1344
|
function XYZColorSpace(whitePoint) {
|
|
1345
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1345
|
+
return whitePoint.equals(Illuminant_getInstance().h75_1) ? XYZColorSpaces_getInstance().h79_1 : whitePoint.equals(Illuminant_getInstance().f75_1) ? XYZColorSpaces_getInstance().i79_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1346
1346
|
}
|
|
1347
1347
|
function XYZColorSpaces() {
|
|
1348
1348
|
XYZColorSpaces_instance = this;
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1349
|
+
this.h79_1 = new XYZColorSpaceImpl(Illuminant_getInstance().h75_1);
|
|
1350
|
+
this.i79_1 = new XYZColorSpaceImpl(Illuminant_getInstance().f75_1);
|
|
1351
1351
|
}
|
|
1352
1352
|
var XYZColorSpaces_instance;
|
|
1353
1353
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1358,26 +1358,26 @@
|
|
|
1358
1358
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1359
1359
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1360
1360
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1361
|
-
var dstWp = _this__u8e3s4.
|
|
1362
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1363
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1361
|
+
var dstWp = _this__u8e3s4.w76().b75_1;
|
|
1362
|
+
var src = dot_0(xyzToLms, srcWp.s78(), srcWp.q78_1, srcWp.t78());
|
|
1363
|
+
var dst = dot_0(xyzToLms, dstWp.s78(), dstWp.q78_1, dstWp.t78());
|
|
1364
1364
|
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);
|
|
1365
1365
|
}
|
|
1366
1366
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1367
|
+
this.k79_1 = whitePoint;
|
|
1368
|
+
this.l79_1 = rectangularComponentInfo('XYZ');
|
|
1369
1369
|
}
|
|
1370
|
-
protoOf(XYZColorSpaceImpl).
|
|
1371
|
-
return this.
|
|
1370
|
+
protoOf(XYZColorSpaceImpl).w76 = function () {
|
|
1371
|
+
return this.k79_1;
|
|
1372
1372
|
};
|
|
1373
1373
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1374
|
-
return 'XYZColorSpace(' + this.
|
|
1374
|
+
return 'XYZColorSpace(' + this.k79_1.toString() + ')';
|
|
1375
1375
|
};
|
|
1376
|
-
protoOf(XYZColorSpaceImpl).
|
|
1376
|
+
protoOf(XYZColorSpaceImpl).g76 = function (x, y, z, alpha) {
|
|
1377
1377
|
return new XYZ(x, y, z, alpha, this);
|
|
1378
1378
|
};
|
|
1379
1379
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1380
|
-
return this.
|
|
1380
|
+
return this.k79_1.hashCode();
|
|
1381
1381
|
};
|
|
1382
1382
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1383
1383
|
if (this === other)
|
|
@@ -1385,7 +1385,7 @@
|
|
|
1385
1385
|
if (!(other instanceof XYZColorSpaceImpl))
|
|
1386
1386
|
return false;
|
|
1387
1387
|
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE();
|
|
1388
|
-
if (!this.
|
|
1388
|
+
if (!this.k79_1.equals(tmp0_other_with_cast.k79_1))
|
|
1389
1389
|
return false;
|
|
1390
1390
|
return true;
|
|
1391
1391
|
};
|
|
@@ -1399,26 +1399,26 @@
|
|
|
1399
1399
|
}
|
|
1400
1400
|
function xyY(x, y, Y) {
|
|
1401
1401
|
Y = Y === VOID ? 1.0 : Y;
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1402
|
+
this.o78_1 = x;
|
|
1403
|
+
this.p78_1 = y;
|
|
1404
|
+
this.q78_1 = Y;
|
|
1405
1405
|
}
|
|
1406
|
-
protoOf(xyY).
|
|
1407
|
-
return 1 - this.
|
|
1406
|
+
protoOf(xyY).r78 = function () {
|
|
1407
|
+
return 1 - this.o78_1 - this.p78_1;
|
|
1408
1408
|
};
|
|
1409
|
-
protoOf(xyY).
|
|
1410
|
-
return this.
|
|
1409
|
+
protoOf(xyY).s78 = function () {
|
|
1410
|
+
return this.o78_1 * this.q78_1 / this.p78_1;
|
|
1411
1411
|
};
|
|
1412
|
-
protoOf(xyY).
|
|
1413
|
-
return (1 - this.
|
|
1412
|
+
protoOf(xyY).t78 = function () {
|
|
1413
|
+
return (1 - this.o78_1 - this.p78_1) * this.q78_1 / this.p78_1;
|
|
1414
1414
|
};
|
|
1415
1415
|
protoOf(xyY).toString = function () {
|
|
1416
|
-
return 'xyY(x=' + this.
|
|
1416
|
+
return 'xyY(x=' + this.o78_1 + ', y=' + this.p78_1 + ', Y=' + this.q78_1 + ')';
|
|
1417
1417
|
};
|
|
1418
1418
|
protoOf(xyY).hashCode = function () {
|
|
1419
|
-
var result = getNumberHashCode(this.
|
|
1420
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1421
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1419
|
+
var result = getNumberHashCode(this.o78_1);
|
|
1420
|
+
result = imul(result, 31) + getNumberHashCode(this.p78_1) | 0;
|
|
1421
|
+
result = imul(result, 31) + getNumberHashCode(this.q78_1) | 0;
|
|
1422
1422
|
return result;
|
|
1423
1423
|
};
|
|
1424
1424
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1427,36 +1427,36 @@
|
|
|
1427
1427
|
if (!(other instanceof xyY))
|
|
1428
1428
|
return false;
|
|
1429
1429
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1430
|
-
if (!equals(this.
|
|
1430
|
+
if (!equals(this.o78_1, tmp0_other_with_cast.o78_1))
|
|
1431
1431
|
return false;
|
|
1432
|
-
if (!equals(this.
|
|
1432
|
+
if (!equals(this.p78_1, tmp0_other_with_cast.p78_1))
|
|
1433
1433
|
return false;
|
|
1434
|
-
if (!equals(this.
|
|
1434
|
+
if (!equals(this.q78_1, tmp0_other_with_cast.q78_1))
|
|
1435
1435
|
return false;
|
|
1436
1436
|
return true;
|
|
1437
1437
|
};
|
|
1438
1438
|
//region block: post-declaration
|
|
1439
|
-
protoOf(Companion_2).
|
|
1440
|
-
protoOf(Companion_2).
|
|
1441
|
-
protoOf(Companion_2).
|
|
1442
|
-
protoOf(SRGB).
|
|
1443
|
-
protoOf(SRGB).
|
|
1444
|
-
protoOf(SRGB).
|
|
1445
|
-
protoOf(SRGB).
|
|
1446
|
-
protoOf(SRGB).
|
|
1447
|
-
protoOf(SRGB).
|
|
1448
|
-
protoOf(BT2020Space).
|
|
1449
|
-
protoOf(BT2020Space).
|
|
1450
|
-
protoOf(BT2020Space).
|
|
1451
|
-
protoOf(BT2020Space).
|
|
1452
|
-
protoOf(BT2020Space).
|
|
1453
|
-
protoOf(BT2020Space).
|
|
1454
|
-
protoOf(RGBColorSpaceImpl).
|
|
1455
|
-
protoOf(RGBColorSpaceImpl).
|
|
1456
|
-
protoOf(RGBColorSpaceImpl).
|
|
1457
|
-
protoOf(RGBColorSpaceImpl).
|
|
1458
|
-
protoOf(RGBColorSpaceImpl).
|
|
1459
|
-
protoOf(RGBColorSpaceImpl).
|
|
1439
|
+
protoOf(Companion_2).q75 = from255$default;
|
|
1440
|
+
protoOf(Companion_2).p75 = invoke$default;
|
|
1441
|
+
protoOf(Companion_2).u75 = invoke$default_0;
|
|
1442
|
+
protoOf(SRGB).p75 = invoke$default;
|
|
1443
|
+
protoOf(SRGB).q76 = invoke;
|
|
1444
|
+
protoOf(SRGB).u75 = invoke$default_0;
|
|
1445
|
+
protoOf(SRGB).s76 = invoke_0;
|
|
1446
|
+
protoOf(SRGB).r76 = from255;
|
|
1447
|
+
protoOf(SRGB).q75 = from255$default;
|
|
1448
|
+
protoOf(BT2020Space).p75 = invoke$default;
|
|
1449
|
+
protoOf(BT2020Space).q76 = invoke;
|
|
1450
|
+
protoOf(BT2020Space).u75 = invoke$default_0;
|
|
1451
|
+
protoOf(BT2020Space).s76 = invoke_0;
|
|
1452
|
+
protoOf(BT2020Space).r76 = from255;
|
|
1453
|
+
protoOf(BT2020Space).q75 = from255$default;
|
|
1454
|
+
protoOf(RGBColorSpaceImpl).p75 = invoke$default;
|
|
1455
|
+
protoOf(RGBColorSpaceImpl).q76 = invoke;
|
|
1456
|
+
protoOf(RGBColorSpaceImpl).u75 = invoke$default_0;
|
|
1457
|
+
protoOf(RGBColorSpaceImpl).s76 = invoke_0;
|
|
1458
|
+
protoOf(RGBColorSpaceImpl).r76 = from255;
|
|
1459
|
+
protoOf(RGBColorSpaceImpl).q75 = from255$default;
|
|
1460
1460
|
//endregion
|
|
1461
1461
|
//region block: init
|
|
1462
1462
|
LinearTransferFunctions_instance = new LinearTransferFunctions();
|