mrs-toolbox-cli 0.0.95 → 0.0.96
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/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/clikt-clikt.js +1124 -1124
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +365 -365
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +12 -3
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +1792 -1792
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +1621 -1621
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +6 -2
- package/mrs-toolbox-cli.js +72 -72
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +1 -1
- package/toolbox.js +1269 -1295
- package/toolbox.js.map +1 -1
|
@@ -56,21 +56,21 @@
|
|
|
56
56
|
setMetadataFor(LinearTransferFunctions, 'LinearTransferFunctions', objectMeta);
|
|
57
57
|
function invoke$default(r, g, b, alpha, $super) {
|
|
58
58
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
59
|
-
return $super === VOID ? this.
|
|
59
|
+
return $super === VOID ? this.r6p(r, g, b, alpha) : $super.r6p.call(this, r, g, b, alpha);
|
|
60
60
|
}
|
|
61
61
|
function invoke(r, g, b, alpha) {
|
|
62
|
-
return this.
|
|
62
|
+
return this.r6p(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
63
63
|
}
|
|
64
64
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
65
65
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
66
|
-
return $super === VOID ? this.
|
|
66
|
+
return $super === VOID ? this.b6q(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
67
67
|
}
|
|
68
68
|
function from255(r, g, b, alpha) {
|
|
69
|
-
return this.
|
|
69
|
+
return this.r6p(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
70
70
|
}
|
|
71
71
|
function from255$default(r, g, b, alpha, $super) {
|
|
72
72
|
alpha = alpha === VOID ? 255 : alpha;
|
|
73
|
-
return $super === VOID ? this.
|
|
73
|
+
return $super === VOID ? this.c6q(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
74
74
|
}
|
|
75
75
|
function invoke_0(hex) {
|
|
76
76
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
} else {
|
|
87
87
|
tmp_2 = 255;
|
|
88
88
|
}
|
|
89
|
-
return this.
|
|
89
|
+
return this.c6q(tmp, tmp_0, tmp_1, tmp_2);
|
|
90
90
|
}
|
|
91
91
|
setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta);
|
|
92
92
|
setMetadataFor(Companion_2, 'Companion', objectMeta, VOID, [RGBColorSpace]);
|
|
@@ -108,19 +108,19 @@
|
|
|
108
108
|
setMetadataFor(xyY, 'xyY', classMeta);
|
|
109
109
|
//endregion
|
|
110
110
|
function ColorComponentInfo(name, isPolar) {
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
111
|
+
this.l6o_1 = name;
|
|
112
|
+
this.m6o_1 = isPolar;
|
|
113
113
|
}
|
|
114
114
|
function WhitePoint(name, chromaticity) {
|
|
115
|
-
this.
|
|
116
|
-
this.
|
|
115
|
+
this.n6o_1 = name;
|
|
116
|
+
this.o6o_1 = chromaticity;
|
|
117
117
|
}
|
|
118
118
|
protoOf(WhitePoint).toString = function () {
|
|
119
|
-
return this.
|
|
119
|
+
return this.n6o_1;
|
|
120
120
|
};
|
|
121
121
|
protoOf(WhitePoint).hashCode = function () {
|
|
122
|
-
var result = getStringHashCode(this.
|
|
123
|
-
result = imul(result, 31) + this.
|
|
122
|
+
var result = getStringHashCode(this.n6o_1);
|
|
123
|
+
result = imul(result, 31) + this.o6o_1.hashCode() | 0;
|
|
124
124
|
return result;
|
|
125
125
|
};
|
|
126
126
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -129,22 +129,22 @@
|
|
|
129
129
|
if (!(other instanceof WhitePoint))
|
|
130
130
|
return false;
|
|
131
131
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
132
|
-
if (!(this.
|
|
132
|
+
if (!(this.n6o_1 === tmp0_other_with_cast.n6o_1))
|
|
133
133
|
return false;
|
|
134
|
-
if (!this.
|
|
134
|
+
if (!this.o6o_1.equals(tmp0_other_with_cast.o6o_1))
|
|
135
135
|
return false;
|
|
136
136
|
return true;
|
|
137
137
|
};
|
|
138
138
|
function Illuminant() {
|
|
139
139
|
Illuminant_instance = this;
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
140
|
+
this.p6o_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
141
|
+
this.q6o_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
142
|
+
this.r6o_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
143
|
+
this.s6o_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
144
|
+
this.t6o_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
145
|
+
this.u6o_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
146
|
+
this.v6o_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
147
|
+
this.w6o_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333));
|
|
148
148
|
}
|
|
149
149
|
var Illuminant_instance;
|
|
150
150
|
function Illuminant_getInstance() {
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
}
|
|
322
322
|
function Companion() {
|
|
323
323
|
Companion_instance = this;
|
|
324
|
-
this.
|
|
324
|
+
this.x6o_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
325
325
|
}
|
|
326
326
|
var Companion_instance;
|
|
327
327
|
function Companion_getInstance() {
|
|
@@ -331,35 +331,35 @@
|
|
|
331
331
|
}
|
|
332
332
|
function Ansi16(code) {
|
|
333
333
|
Companion_getInstance();
|
|
334
|
-
this.
|
|
334
|
+
this.y6o_1 = code;
|
|
335
335
|
}
|
|
336
|
-
protoOf(Ansi16).
|
|
337
|
-
switch (this.
|
|
336
|
+
protoOf(Ansi16).z6o = function () {
|
|
337
|
+
switch (this.y6o_1) {
|
|
338
338
|
case 30:
|
|
339
339
|
case 40:
|
|
340
|
-
return Companion_getInstance_2().
|
|
340
|
+
return Companion_getInstance_2().a6p(0.0, 0.0, 0.0);
|
|
341
341
|
case 90:
|
|
342
342
|
case 100:
|
|
343
|
-
return Companion_getInstance_2().
|
|
343
|
+
return Companion_getInstance_2().b6p(128, 128, 128);
|
|
344
344
|
case 37:
|
|
345
345
|
case 47:
|
|
346
|
-
return Companion_getInstance_2().
|
|
346
|
+
return Companion_getInstance_2().b6p(192, 192, 192);
|
|
347
347
|
case 97:
|
|
348
348
|
case 107:
|
|
349
|
-
return Companion_getInstance_2().
|
|
349
|
+
return Companion_getInstance_2().a6p(1.0, 1.0, 1.0);
|
|
350
350
|
}
|
|
351
|
-
var color = this.
|
|
352
|
-
var mul = this.
|
|
351
|
+
var color = this.y6o_1 % 10 | 0;
|
|
352
|
+
var mul = this.y6o_1 > 50 ? 1.0 : 0.5;
|
|
353
353
|
var r = (color % 2 | 0) * mul;
|
|
354
354
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
355
355
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
356
|
-
return Companion_getInstance_2().
|
|
356
|
+
return Companion_getInstance_2().a6p(r, g, b);
|
|
357
357
|
};
|
|
358
358
|
protoOf(Ansi16).toString = function () {
|
|
359
|
-
return 'Ansi16(code=' + this.
|
|
359
|
+
return 'Ansi16(code=' + this.y6o_1 + ')';
|
|
360
360
|
};
|
|
361
361
|
protoOf(Ansi16).hashCode = function () {
|
|
362
|
-
return this.
|
|
362
|
+
return this.y6o_1;
|
|
363
363
|
};
|
|
364
364
|
protoOf(Ansi16).equals = function (other) {
|
|
365
365
|
if (this === other)
|
|
@@ -367,13 +367,13 @@
|
|
|
367
367
|
if (!(other instanceof Ansi16))
|
|
368
368
|
return false;
|
|
369
369
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
370
|
-
if (!(this.
|
|
370
|
+
if (!(this.y6o_1 === tmp0_other_with_cast.y6o_1))
|
|
371
371
|
return false;
|
|
372
372
|
return true;
|
|
373
373
|
};
|
|
374
374
|
function Companion_0() {
|
|
375
375
|
Companion_instance_0 = this;
|
|
376
|
-
this.
|
|
376
|
+
this.c6p_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
377
377
|
}
|
|
378
378
|
var Companion_instance_0;
|
|
379
379
|
function Companion_getInstance_0() {
|
|
@@ -383,16 +383,16 @@
|
|
|
383
383
|
}
|
|
384
384
|
function Ansi256(code) {
|
|
385
385
|
Companion_getInstance_0();
|
|
386
|
-
this.
|
|
387
|
-
}
|
|
388
|
-
protoOf(Ansi256).
|
|
389
|
-
if (this.
|
|
390
|
-
return this.
|
|
391
|
-
if (this.
|
|
392
|
-
var c = imul(this.
|
|
393
|
-
return Companion_getInstance_2().
|
|
386
|
+
this.d6p_1 = code;
|
|
387
|
+
}
|
|
388
|
+
protoOf(Ansi256).z6o = function () {
|
|
389
|
+
if (this.d6p_1 < 16)
|
|
390
|
+
return this.e6p().z6o();
|
|
391
|
+
if (this.d6p_1 >= 232) {
|
|
392
|
+
var c = imul(this.d6p_1 - 232 | 0, 10) + 8 | 0;
|
|
393
|
+
return Companion_getInstance_2().b6p(c, c, c);
|
|
394
394
|
}
|
|
395
|
-
var c_0 = this.
|
|
395
|
+
var c_0 = this.d6p_1 - 16 | 0;
|
|
396
396
|
var rem = c_0 % 36 | 0;
|
|
397
397
|
// Inline function 'kotlin.math.floor' call
|
|
398
398
|
var x = c_0 / 36.0;
|
|
@@ -401,16 +401,16 @@
|
|
|
401
401
|
var x_0 = rem / 6.0;
|
|
402
402
|
var g = Math.floor(x_0) / 5.0;
|
|
403
403
|
var b = (rem % 6 | 0) / 5.0;
|
|
404
|
-
return Companion_getInstance_2().
|
|
404
|
+
return Companion_getInstance_2().f6p(r, g, b);
|
|
405
405
|
};
|
|
406
|
-
protoOf(Ansi256).
|
|
407
|
-
return this.
|
|
406
|
+
protoOf(Ansi256).e6p = function () {
|
|
407
|
+
return this.d6p_1 < 8 ? new Ansi16(this.d6p_1 + 30 | 0) : this.d6p_1 < 16 ? new Ansi16((this.d6p_1 - 8 | 0) + 90 | 0) : this.z6o().e6p();
|
|
408
408
|
};
|
|
409
409
|
protoOf(Ansi256).toString = function () {
|
|
410
|
-
return 'Ansi256(code=' + this.
|
|
410
|
+
return 'Ansi256(code=' + this.d6p_1 + ')';
|
|
411
411
|
};
|
|
412
412
|
protoOf(Ansi256).hashCode = function () {
|
|
413
|
-
return this.
|
|
413
|
+
return this.d6p_1;
|
|
414
414
|
};
|
|
415
415
|
protoOf(Ansi256).equals = function (other) {
|
|
416
416
|
if (this === other)
|
|
@@ -418,13 +418,13 @@
|
|
|
418
418
|
if (!(other instanceof Ansi256))
|
|
419
419
|
return false;
|
|
420
420
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
421
|
-
if (!(this.
|
|
421
|
+
if (!(this.d6p_1 === tmp0_other_with_cast.d6p_1))
|
|
422
422
|
return false;
|
|
423
423
|
return true;
|
|
424
424
|
};
|
|
425
425
|
function Companion_1() {
|
|
426
426
|
Companion_instance_1 = this;
|
|
427
|
-
this.
|
|
427
|
+
this.l6p_1 = polarComponentInfo('HSV');
|
|
428
428
|
}
|
|
429
429
|
var Companion_instance_1;
|
|
430
430
|
function Companion_getInstance_1() {
|
|
@@ -443,27 +443,27 @@
|
|
|
443
443
|
function HSV(h, s, v, alpha) {
|
|
444
444
|
Companion_getInstance_1();
|
|
445
445
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
446
|
-
this.
|
|
447
|
-
this.
|
|
448
|
-
this.
|
|
449
|
-
this.
|
|
450
|
-
}
|
|
451
|
-
protoOf(HSV).
|
|
452
|
-
if (this.
|
|
453
|
-
return Companion_getInstance_2().
|
|
454
|
-
var v = this.
|
|
455
|
-
var h = normalizeDeg_0(this.
|
|
456
|
-
var s = this.
|
|
457
|
-
return SRGB_getInstance().
|
|
446
|
+
this.m6p_1 = h;
|
|
447
|
+
this.n6p_1 = s;
|
|
448
|
+
this.o6p_1 = v;
|
|
449
|
+
this.p6p_1 = alpha;
|
|
450
|
+
}
|
|
451
|
+
protoOf(HSV).z6o = function () {
|
|
452
|
+
if (this.n6p_1 < 1.0E-7)
|
|
453
|
+
return Companion_getInstance_2().r6p(this.o6p_1, this.o6p_1, this.o6p_1, this.p6p_1);
|
|
454
|
+
var v = this.o6p_1;
|
|
455
|
+
var h = normalizeDeg_0(this.m6p_1) / 60.0;
|
|
456
|
+
var s = this.n6p_1;
|
|
457
|
+
return SRGB_getInstance().r6p(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.p6p_1);
|
|
458
458
|
};
|
|
459
459
|
protoOf(HSV).toString = function () {
|
|
460
|
-
return 'HSV(h=' + this.
|
|
460
|
+
return 'HSV(h=' + this.m6p_1 + ', s=' + this.n6p_1 + ', v=' + this.o6p_1 + ', alpha=' + this.p6p_1 + ')';
|
|
461
461
|
};
|
|
462
462
|
protoOf(HSV).hashCode = function () {
|
|
463
|
-
var result = getNumberHashCode(this.
|
|
464
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
465
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
466
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
463
|
+
var result = getNumberHashCode(this.m6p_1);
|
|
464
|
+
result = imul(result, 31) + getNumberHashCode(this.n6p_1) | 0;
|
|
465
|
+
result = imul(result, 31) + getNumberHashCode(this.o6p_1) | 0;
|
|
466
|
+
result = imul(result, 31) + getNumberHashCode(this.p6p_1) | 0;
|
|
467
467
|
return result;
|
|
468
468
|
};
|
|
469
469
|
protoOf(HSV).equals = function (other) {
|
|
@@ -472,30 +472,30 @@
|
|
|
472
472
|
if (!(other instanceof HSV))
|
|
473
473
|
return false;
|
|
474
474
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
475
|
-
if (!equals(this.
|
|
475
|
+
if (!equals(this.m6p_1, tmp0_other_with_cast.m6p_1))
|
|
476
476
|
return false;
|
|
477
|
-
if (!equals(this.
|
|
477
|
+
if (!equals(this.n6p_1, tmp0_other_with_cast.n6p_1))
|
|
478
478
|
return false;
|
|
479
|
-
if (!equals(this.
|
|
479
|
+
if (!equals(this.o6p_1, tmp0_other_with_cast.o6p_1))
|
|
480
480
|
return false;
|
|
481
|
-
if (!equals(this.
|
|
481
|
+
if (!equals(this.p6p_1, tmp0_other_with_cast.p6p_1))
|
|
482
482
|
return false;
|
|
483
483
|
return true;
|
|
484
484
|
};
|
|
485
485
|
function GammaTransferFunctions(gamma) {
|
|
486
|
-
this.
|
|
486
|
+
this.y6p_1 = gamma;
|
|
487
487
|
}
|
|
488
|
-
protoOf(GammaTransferFunctions).
|
|
489
|
-
return spow(x, this.
|
|
488
|
+
protoOf(GammaTransferFunctions).z6p = function (x) {
|
|
489
|
+
return spow(x, this.y6p_1);
|
|
490
490
|
};
|
|
491
|
-
protoOf(GammaTransferFunctions).
|
|
492
|
-
return spow(x, 1.0 / this.
|
|
491
|
+
protoOf(GammaTransferFunctions).a6q = function (x) {
|
|
492
|
+
return spow(x, 1.0 / this.y6p_1);
|
|
493
493
|
};
|
|
494
494
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
495
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
495
|
+
return 'GammaTransferFunctions(gamma=' + this.y6p_1 + ')';
|
|
496
496
|
};
|
|
497
497
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
498
|
-
return getNumberHashCode(this.
|
|
498
|
+
return getNumberHashCode(this.y6p_1);
|
|
499
499
|
};
|
|
500
500
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
501
501
|
if (this === other)
|
|
@@ -503,16 +503,16 @@
|
|
|
503
503
|
if (!(other instanceof GammaTransferFunctions))
|
|
504
504
|
return false;
|
|
505
505
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
506
|
-
if (!equals(this.
|
|
506
|
+
if (!equals(this.y6p_1, tmp0_other_with_cast.y6p_1))
|
|
507
507
|
return false;
|
|
508
508
|
return true;
|
|
509
509
|
};
|
|
510
510
|
function LinearTransferFunctions() {
|
|
511
511
|
}
|
|
512
|
-
protoOf(LinearTransferFunctions).
|
|
512
|
+
protoOf(LinearTransferFunctions).z6p = function (x) {
|
|
513
513
|
return x;
|
|
514
514
|
};
|
|
515
|
-
protoOf(LinearTransferFunctions).
|
|
515
|
+
protoOf(LinearTransferFunctions).a6q = function (x) {
|
|
516
516
|
return x;
|
|
517
517
|
};
|
|
518
518
|
var LinearTransferFunctions_instance;
|
|
@@ -523,31 +523,31 @@
|
|
|
523
523
|
}
|
|
524
524
|
function Companion_2() {
|
|
525
525
|
Companion_instance_2 = this;
|
|
526
|
-
this.
|
|
526
|
+
this.q6p_1 = RGBColorSpaces_getInstance().i6q_1;
|
|
527
527
|
}
|
|
528
|
-
protoOf(Companion_2).
|
|
529
|
-
return this.
|
|
528
|
+
protoOf(Companion_2).g6q = function () {
|
|
529
|
+
return this.q6p_1.g6q();
|
|
530
530
|
};
|
|
531
|
-
protoOf(Companion_2).
|
|
532
|
-
return this.
|
|
531
|
+
protoOf(Companion_2).f6q = function () {
|
|
532
|
+
return this.q6p_1.f6q();
|
|
533
533
|
};
|
|
534
|
-
protoOf(Companion_2).
|
|
535
|
-
return this.
|
|
534
|
+
protoOf(Companion_2).e6q = function () {
|
|
535
|
+
return this.q6p_1.e6q();
|
|
536
536
|
};
|
|
537
|
-
protoOf(Companion_2).
|
|
538
|
-
return this.
|
|
537
|
+
protoOf(Companion_2).h6q = function () {
|
|
538
|
+
return this.q6p_1.h6q();
|
|
539
539
|
};
|
|
540
|
-
protoOf(Companion_2).
|
|
541
|
-
return this.
|
|
540
|
+
protoOf(Companion_2).c6q = function (r, g, b, alpha) {
|
|
541
|
+
return this.q6p_1.c6q(r, g, b, alpha);
|
|
542
542
|
};
|
|
543
|
-
protoOf(Companion_2).
|
|
544
|
-
return this.
|
|
543
|
+
protoOf(Companion_2).r6p = function (r, g, b, alpha) {
|
|
544
|
+
return this.q6p_1.r6p(r, g, b, alpha);
|
|
545
545
|
};
|
|
546
|
-
protoOf(Companion_2).
|
|
547
|
-
return this.
|
|
546
|
+
protoOf(Companion_2).b6q = function (r, g, b, alpha) {
|
|
547
|
+
return this.q6p_1.b6q(r, g, b, alpha);
|
|
548
548
|
};
|
|
549
|
-
protoOf(Companion_2).
|
|
550
|
-
return this.
|
|
549
|
+
protoOf(Companion_2).d6q = function (hex) {
|
|
550
|
+
return this.q6p_1.d6q(hex);
|
|
551
551
|
};
|
|
552
552
|
var Companion_instance_2;
|
|
553
553
|
function Companion_getInstance_2() {
|
|
@@ -557,43 +557,43 @@
|
|
|
557
557
|
}
|
|
558
558
|
function RGB(r, g, b, alpha, space) {
|
|
559
559
|
Companion_getInstance_2();
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
560
|
+
this.g6p_1 = r;
|
|
561
|
+
this.h6p_1 = g;
|
|
562
|
+
this.i6p_1 = b;
|
|
563
|
+
this.j6p_1 = alpha;
|
|
564
|
+
this.k6p_1 = space;
|
|
565
565
|
}
|
|
566
|
-
protoOf(RGB).
|
|
566
|
+
protoOf(RGB).u6q = function () {
|
|
567
567
|
// Inline function 'kotlin.math.roundToInt' call
|
|
568
|
-
var this_0 = this.
|
|
568
|
+
var this_0 = this.g6p_1 * 255;
|
|
569
569
|
return roundToInt(this_0);
|
|
570
570
|
};
|
|
571
|
-
protoOf(RGB).
|
|
571
|
+
protoOf(RGB).v6q = function () {
|
|
572
572
|
// Inline function 'kotlin.math.roundToInt' call
|
|
573
|
-
var this_0 = this.
|
|
573
|
+
var this_0 = this.h6p_1 * 255;
|
|
574
574
|
return roundToInt(this_0);
|
|
575
575
|
};
|
|
576
|
-
protoOf(RGB).
|
|
576
|
+
protoOf(RGB).w6q = function () {
|
|
577
577
|
// Inline function 'kotlin.math.roundToInt' call
|
|
578
|
-
var this_0 = this.
|
|
578
|
+
var this_0 = this.i6p_1 * 255;
|
|
579
579
|
return roundToInt(this_0);
|
|
580
580
|
};
|
|
581
|
-
protoOf(RGB).
|
|
582
|
-
var f = SRGB_getInstance().
|
|
583
|
-
return equals(this.
|
|
581
|
+
protoOf(RGB).x6q = function (space) {
|
|
582
|
+
var f = SRGB_getInstance().v6p_1;
|
|
583
|
+
return equals(this.k6p_1, space) ? this : (equals(this.k6p_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().j6q_1) : false) ? space.r6p(f.z6p(this.g6p_1), f.z6p(this.h6p_1), f.z6p(this.i6p_1), this.j6p_1) : (equals(this.k6p_1, RGBColorSpaces_getInstance().j6q_1) ? equals(space, SRGB_getInstance()) : false) ? space.r6p(f.a6q(this.g6p_1), f.a6q(this.h6p_1), f.a6q(this.i6p_1), this.j6p_1) : this.y6q().e6r(space);
|
|
584
584
|
};
|
|
585
|
-
protoOf(RGB).
|
|
586
|
-
return this.
|
|
585
|
+
protoOf(RGB).f6r = function () {
|
|
586
|
+
return this.g6r(coerceIn(this.g6p_1, 0.0, 1.0), coerceIn(this.h6p_1, 0.0, 1.0), coerceIn(this.i6p_1, 0.0, 1.0), coerceIn(this.j6p_1, 0.0, 1.0));
|
|
587
587
|
};
|
|
588
|
-
protoOf(RGB).
|
|
588
|
+
protoOf(RGB).h6r = function () {
|
|
589
589
|
var tmp$ret$3;
|
|
590
590
|
$l$block: {
|
|
591
591
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
592
592
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
593
|
-
var $this$toSRGB = this.
|
|
594
|
-
var r = $this$toSRGB.
|
|
595
|
-
var g = $this$toSRGB.
|
|
596
|
-
var b = $this$toSRGB.
|
|
593
|
+
var $this$toSRGB = this.x6q(SRGB_getInstance());
|
|
594
|
+
var r = $this$toSRGB.g6p_1;
|
|
595
|
+
var g = $this$toSRGB.h6p_1;
|
|
596
|
+
var b = $this$toSRGB.i6p_1;
|
|
597
597
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
598
598
|
var min = Math.min(r, g, b);
|
|
599
599
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -615,94 +615,94 @@
|
|
|
615
615
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
616
616
|
var h_0 = normalizeDeg(h);
|
|
617
617
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
618
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
618
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.j6p_1);
|
|
619
619
|
break $l$block;
|
|
620
620
|
}
|
|
621
621
|
return tmp$ret$3;
|
|
622
622
|
};
|
|
623
|
-
protoOf(RGB).
|
|
624
|
-
var f = this.
|
|
623
|
+
protoOf(RGB).y6q = function () {
|
|
624
|
+
var f = this.k6p_1.e6q();
|
|
625
625
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
626
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
627
|
-
var v0 = f.
|
|
628
|
-
var v1 = f.
|
|
629
|
-
var v2 = f.
|
|
626
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.k6p_1.f6q());
|
|
627
|
+
var v0 = f.z6p(this.g6p_1);
|
|
628
|
+
var v1 = f.z6p(this.h6p_1);
|
|
629
|
+
var v2 = f.z6p(this.i6p_1);
|
|
630
630
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
631
631
|
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;
|
|
632
632
|
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;
|
|
633
633
|
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;
|
|
634
|
-
return XYZColorSpace(this.
|
|
634
|
+
return XYZColorSpace(this.k6p_1.h6q()).r6p(x, y, z, this.j6p_1);
|
|
635
635
|
};
|
|
636
|
-
protoOf(RGB).
|
|
636
|
+
protoOf(RGB).e6p = function () {
|
|
637
637
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
638
|
-
var $this$toSRGB = this.
|
|
638
|
+
var $this$toSRGB = this.x6q(SRGB_getInstance());
|
|
639
639
|
// Inline function 'kotlin.math.roundToInt' call
|
|
640
|
-
var this_0 = $this$toSRGB.
|
|
640
|
+
var this_0 = $this$toSRGB.h6r().o6p_1 * 100;
|
|
641
641
|
var value = roundToInt(this_0);
|
|
642
642
|
if (value === 30)
|
|
643
643
|
return new Ansi16(30);
|
|
644
644
|
var v = value / 50 | 0;
|
|
645
645
|
// Inline function 'kotlin.math.roundToInt' call
|
|
646
|
-
var this_1 = $this$toSRGB.
|
|
646
|
+
var this_1 = $this$toSRGB.i6p_1;
|
|
647
647
|
var tmp$ret$1 = roundToInt(this_1);
|
|
648
648
|
var tmp = imul(tmp$ret$1, 4);
|
|
649
649
|
// Inline function 'kotlin.math.roundToInt' call
|
|
650
|
-
var this_2 = $this$toSRGB.
|
|
650
|
+
var this_2 = $this$toSRGB.h6p_1;
|
|
651
651
|
var tmp$ret$2 = roundToInt(this_2);
|
|
652
652
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
653
653
|
// Inline function 'kotlin.math.roundToInt' call
|
|
654
|
-
var this_3 = $this$toSRGB.
|
|
654
|
+
var this_3 = $this$toSRGB.g6p_1;
|
|
655
655
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
656
656
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
657
657
|
};
|
|
658
|
-
protoOf(RGB).
|
|
658
|
+
protoOf(RGB).i6r = function () {
|
|
659
659
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
660
|
-
var $this$toSRGB = this.
|
|
661
|
-
var ri = $this$toSRGB.
|
|
662
|
-
var gi = $this$toSRGB.
|
|
663
|
-
var bi = $this$toSRGB.
|
|
660
|
+
var $this$toSRGB = this.x6q(SRGB_getInstance());
|
|
661
|
+
var ri = $this$toSRGB.u6q();
|
|
662
|
+
var gi = $this$toSRGB.v6q();
|
|
663
|
+
var bi = $this$toSRGB.w6q();
|
|
664
664
|
var tmp;
|
|
665
665
|
if (ri === gi ? gi === bi : false) {
|
|
666
666
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
667
667
|
} else {
|
|
668
668
|
// Inline function 'kotlin.math.roundToInt' call
|
|
669
|
-
var this_0 = $this$toSRGB.
|
|
669
|
+
var this_0 = $this$toSRGB.g6p_1 * 5;
|
|
670
670
|
var tmp$ret$0 = roundToInt(this_0);
|
|
671
671
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
672
672
|
// Inline function 'kotlin.math.roundToInt' call
|
|
673
|
-
var this_1 = $this$toSRGB.
|
|
673
|
+
var this_1 = $this$toSRGB.h6p_1 * 5;
|
|
674
674
|
var tmp$ret$1 = roundToInt(this_1);
|
|
675
675
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
676
676
|
// Inline function 'kotlin.math.roundToInt' call
|
|
677
|
-
var this_2 = $this$toSRGB.
|
|
677
|
+
var this_2 = $this$toSRGB.i6p_1 * 5;
|
|
678
678
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
679
679
|
}
|
|
680
680
|
var code = tmp;
|
|
681
681
|
return new Ansi256(code);
|
|
682
682
|
};
|
|
683
|
-
protoOf(RGB).
|
|
684
|
-
return this.
|
|
683
|
+
protoOf(RGB).z6o = function () {
|
|
684
|
+
return this.x6q(RGBColorSpaces_getInstance().i6q_1);
|
|
685
685
|
};
|
|
686
|
-
protoOf(RGB).
|
|
686
|
+
protoOf(RGB).j6r = function (r, g, b, alpha, space) {
|
|
687
687
|
return new RGB(r, g, b, alpha, space);
|
|
688
688
|
};
|
|
689
|
-
protoOf(RGB).
|
|
690
|
-
r = r === VOID ? this.
|
|
691
|
-
g = g === VOID ? this.
|
|
692
|
-
b = b === VOID ? this.
|
|
693
|
-
alpha = alpha === VOID ? this.
|
|
694
|
-
space = space === VOID ? this.
|
|
695
|
-
return $super === VOID ? this.
|
|
689
|
+
protoOf(RGB).g6r = function (r, g, b, alpha, space, $super) {
|
|
690
|
+
r = r === VOID ? this.g6p_1 : r;
|
|
691
|
+
g = g === VOID ? this.h6p_1 : g;
|
|
692
|
+
b = b === VOID ? this.i6p_1 : b;
|
|
693
|
+
alpha = alpha === VOID ? this.j6p_1 : alpha;
|
|
694
|
+
space = space === VOID ? this.k6p_1 : space;
|
|
695
|
+
return $super === VOID ? this.j6r(r, g, b, alpha, space) : $super.j6r.call(this, r, g, b, alpha, space);
|
|
696
696
|
};
|
|
697
697
|
protoOf(RGB).toString = function () {
|
|
698
|
-
return 'RGB(r=' + this.
|
|
698
|
+
return 'RGB(r=' + this.g6p_1 + ', g=' + this.h6p_1 + ', b=' + this.i6p_1 + ', alpha=' + this.j6p_1 + ', space=' + this.k6p_1 + ')';
|
|
699
699
|
};
|
|
700
700
|
protoOf(RGB).hashCode = function () {
|
|
701
|
-
var result = getNumberHashCode(this.
|
|
702
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
703
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
704
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
705
|
-
result = imul(result, 31) + hashCode(this.
|
|
701
|
+
var result = getNumberHashCode(this.g6p_1);
|
|
702
|
+
result = imul(result, 31) + getNumberHashCode(this.h6p_1) | 0;
|
|
703
|
+
result = imul(result, 31) + getNumberHashCode(this.i6p_1) | 0;
|
|
704
|
+
result = imul(result, 31) + getNumberHashCode(this.j6p_1) | 0;
|
|
705
|
+
result = imul(result, 31) + hashCode(this.k6p_1) | 0;
|
|
706
706
|
return result;
|
|
707
707
|
};
|
|
708
708
|
protoOf(RGB).equals = function (other) {
|
|
@@ -711,15 +711,15 @@
|
|
|
711
711
|
if (!(other instanceof RGB))
|
|
712
712
|
return false;
|
|
713
713
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
714
|
-
if (!equals(this.
|
|
714
|
+
if (!equals(this.g6p_1, tmp0_other_with_cast.g6p_1))
|
|
715
715
|
return false;
|
|
716
|
-
if (!equals(this.
|
|
716
|
+
if (!equals(this.h6p_1, tmp0_other_with_cast.h6p_1))
|
|
717
717
|
return false;
|
|
718
|
-
if (!equals(this.
|
|
718
|
+
if (!equals(this.i6p_1, tmp0_other_with_cast.i6p_1))
|
|
719
719
|
return false;
|
|
720
|
-
if (!equals(this.
|
|
720
|
+
if (!equals(this.j6p_1, tmp0_other_with_cast.j6p_1))
|
|
721
721
|
return false;
|
|
722
|
-
if (!equals(this.
|
|
722
|
+
if (!equals(this.k6p_1, tmp0_other_with_cast.k6p_1))
|
|
723
723
|
return false;
|
|
724
724
|
return true;
|
|
725
725
|
};
|
|
@@ -821,18 +821,18 @@
|
|
|
821
821
|
var ACES_AP1_B;
|
|
822
822
|
function RGBColorSpaces() {
|
|
823
823
|
RGBColorSpaces_instance = this;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
827
|
-
this.
|
|
828
|
-
this.
|
|
829
|
-
this.
|
|
830
|
-
this.
|
|
831
|
-
this.
|
|
832
|
-
this.
|
|
833
|
-
this.
|
|
834
|
-
this.
|
|
835
|
-
this.
|
|
824
|
+
this.i6q_1 = SRGB_getInstance();
|
|
825
|
+
this.j6q_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().u6o_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
826
|
+
this.k6q_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
827
|
+
this.l6q_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
828
|
+
this.m6q_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
829
|
+
this.n6q_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
830
|
+
this.o6q_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().u6o_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));
|
|
831
|
+
this.p6q_1 = BT2020Space_getInstance();
|
|
832
|
+
this.q6q_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().u6o_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
833
|
+
this.r6q_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));
|
|
834
|
+
this.s6q_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().u6o_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
835
|
+
this.t6q_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().s6o_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));
|
|
836
836
|
}
|
|
837
837
|
var RGBColorSpaces_instance;
|
|
838
838
|
function RGBColorSpaces_getInstance() {
|
|
@@ -842,29 +842,29 @@
|
|
|
842
842
|
}
|
|
843
843
|
function SRGB() {
|
|
844
844
|
SRGB_instance = this;
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
851
|
-
}
|
|
852
|
-
protoOf(SRGB).k6q = function () {
|
|
853
|
-
return this.x6p_1;
|
|
854
|
-
};
|
|
845
|
+
this.s6p_1 = 'sRGB';
|
|
846
|
+
this.t6p_1 = rectangularComponentInfo('RGB');
|
|
847
|
+
this.u6p_1 = Illuminant_getInstance().u6o_1;
|
|
848
|
+
this.v6p_1 = SRGBTransferFunctions_instance;
|
|
849
|
+
this.w6p_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.u6p_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B()));
|
|
850
|
+
this.x6p_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.w6p_1)));
|
|
851
|
+
}
|
|
855
852
|
protoOf(SRGB).h6q = function () {
|
|
856
|
-
return this.
|
|
853
|
+
return this.u6p_1;
|
|
857
854
|
};
|
|
858
|
-
protoOf(SRGB).
|
|
859
|
-
return this.
|
|
855
|
+
protoOf(SRGB).e6q = function () {
|
|
856
|
+
return this.v6p_1;
|
|
860
857
|
};
|
|
861
|
-
protoOf(SRGB).
|
|
862
|
-
return this.
|
|
858
|
+
protoOf(SRGB).f6q = function () {
|
|
859
|
+
return this.w6p_1;
|
|
860
|
+
};
|
|
861
|
+
protoOf(SRGB).g6q = function () {
|
|
862
|
+
return this.x6p_1;
|
|
863
863
|
};
|
|
864
864
|
protoOf(SRGB).toString = function () {
|
|
865
|
-
return this.
|
|
865
|
+
return this.s6p_1;
|
|
866
866
|
};
|
|
867
|
-
protoOf(SRGB).
|
|
867
|
+
protoOf(SRGB).r6p = function (r, g, b, alpha) {
|
|
868
868
|
return new RGB(r, g, b, alpha, this);
|
|
869
869
|
};
|
|
870
870
|
var SRGB_instance;
|
|
@@ -879,18 +879,18 @@
|
|
|
879
879
|
}
|
|
880
880
|
function ACESccTransferFunctions() {
|
|
881
881
|
ACESccTransferFunctions_instance = this;
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
882
|
+
this.k6r_1 = 3.0517578125E-5;
|
|
883
|
+
this.l6r_1 = 1.52587890625E-5;
|
|
884
|
+
this.m6r_1 = -0.3013698630136986;
|
|
885
885
|
var tmp = this;
|
|
886
886
|
// Inline function 'kotlin.math.log2' call
|
|
887
|
-
tmp.
|
|
887
|
+
tmp.n6r_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
888
888
|
}
|
|
889
|
-
protoOf(ACESccTransferFunctions).
|
|
889
|
+
protoOf(ACESccTransferFunctions).z6p = function (x) {
|
|
890
890
|
var tmp;
|
|
891
891
|
if (x <= -0.3013698630136986) {
|
|
892
892
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
893
|
-
} else if (x < this.
|
|
893
|
+
} else if (x < this.n6r_1) {
|
|
894
894
|
// Inline function 'kotlin.math.pow' call
|
|
895
895
|
var x_0 = x * 17.52 - 9.72;
|
|
896
896
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -899,7 +899,7 @@
|
|
|
899
899
|
}
|
|
900
900
|
return tmp;
|
|
901
901
|
};
|
|
902
|
-
protoOf(ACESccTransferFunctions).
|
|
902
|
+
protoOf(ACESccTransferFunctions).a6q = function (x) {
|
|
903
903
|
var tmp;
|
|
904
904
|
if (x < 3.0517578125E-5) {
|
|
905
905
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -919,17 +919,17 @@
|
|
|
919
919
|
}
|
|
920
920
|
function ACEScctTransferFunctions() {
|
|
921
921
|
ACEScctTransferFunctions_instance = this;
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
922
|
+
this.o6r_1 = 10.5402377416545;
|
|
923
|
+
this.p6r_1 = 0.0729055341958355;
|
|
924
924
|
var tmp = this;
|
|
925
925
|
// Inline function 'kotlin.math.log2' call
|
|
926
|
-
tmp.
|
|
926
|
+
tmp.q6r_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
927
927
|
}
|
|
928
|
-
protoOf(ACEScctTransferFunctions).
|
|
928
|
+
protoOf(ACEScctTransferFunctions).z6p = function (x) {
|
|
929
929
|
var tmp;
|
|
930
930
|
if (x <= 0.155251141552511) {
|
|
931
931
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
932
|
-
} else if (x < this.
|
|
932
|
+
} else if (x < this.q6r_1) {
|
|
933
933
|
// Inline function 'kotlin.math.pow' call
|
|
934
934
|
var x_0 = x * 17.52 - 9.72;
|
|
935
935
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -938,7 +938,7 @@
|
|
|
938
938
|
}
|
|
939
939
|
return tmp;
|
|
940
940
|
};
|
|
941
|
-
protoOf(ACEScctTransferFunctions).
|
|
941
|
+
protoOf(ACEScctTransferFunctions).a6q = function (x) {
|
|
942
942
|
var tmp;
|
|
943
943
|
if (x < 0.0078125) {
|
|
944
944
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -956,30 +956,30 @@
|
|
|
956
956
|
}
|
|
957
957
|
function BT2020Space() {
|
|
958
958
|
BT2020Space_instance = this;
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
}
|
|
966
|
-
protoOf(BT2020Space).k6q = function () {
|
|
967
|
-
return this.w6r_1;
|
|
968
|
-
};
|
|
959
|
+
this.r6r_1 = 'BT.2020';
|
|
960
|
+
this.s6r_1 = rectangularComponentInfo('RGB');
|
|
961
|
+
this.t6r_1 = Illuminant_getInstance().u6o_1;
|
|
962
|
+
this.u6r_1 = BT2020TransferFunctions_getInstance();
|
|
963
|
+
this.v6r_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.t6r_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046)));
|
|
964
|
+
this.w6r_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.v6r_1)));
|
|
965
|
+
}
|
|
969
966
|
protoOf(BT2020Space).h6q = function () {
|
|
970
|
-
return this.
|
|
967
|
+
return this.t6r_1;
|
|
971
968
|
};
|
|
972
|
-
protoOf(BT2020Space).
|
|
969
|
+
protoOf(BT2020Space).e6q = function () {
|
|
970
|
+
return this.u6r_1;
|
|
971
|
+
};
|
|
972
|
+
protoOf(BT2020Space).r6p = function (r, g, b, alpha) {
|
|
973
973
|
return new RGB(r, g, b, alpha, this);
|
|
974
974
|
};
|
|
975
|
-
protoOf(BT2020Space).
|
|
976
|
-
return this.
|
|
975
|
+
protoOf(BT2020Space).f6q = function () {
|
|
976
|
+
return this.v6r_1;
|
|
977
977
|
};
|
|
978
|
-
protoOf(BT2020Space).
|
|
979
|
-
return this.
|
|
978
|
+
protoOf(BT2020Space).g6q = function () {
|
|
979
|
+
return this.w6r_1;
|
|
980
980
|
};
|
|
981
981
|
protoOf(BT2020Space).toString = function () {
|
|
982
|
-
return this.
|
|
982
|
+
return this.r6r_1;
|
|
983
983
|
};
|
|
984
984
|
var BT2020Space_instance;
|
|
985
985
|
function BT2020Space_getInstance() {
|
|
@@ -989,12 +989,12 @@
|
|
|
989
989
|
}
|
|
990
990
|
function BT709TransferFunctions() {
|
|
991
991
|
BT709TransferFunctions_instance = this;
|
|
992
|
-
this.
|
|
992
|
+
this.x6r_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
993
993
|
}
|
|
994
|
-
protoOf(BT709TransferFunctions).
|
|
995
|
-
return numberToDouble(x < this.
|
|
994
|
+
protoOf(BT709TransferFunctions).z6p = function (x) {
|
|
995
|
+
return numberToDouble(x < this.x6r_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223));
|
|
996
996
|
};
|
|
997
|
-
protoOf(BT709TransferFunctions).
|
|
997
|
+
protoOf(BT709TransferFunctions).a6q = function (x) {
|
|
998
998
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
999
999
|
};
|
|
1000
1000
|
var BT709TransferFunctions_instance;
|
|
@@ -1005,10 +1005,10 @@
|
|
|
1005
1005
|
}
|
|
1006
1006
|
function SRGBTransferFunctions() {
|
|
1007
1007
|
}
|
|
1008
|
-
protoOf(SRGBTransferFunctions).
|
|
1008
|
+
protoOf(SRGBTransferFunctions).a6q = function (x) {
|
|
1009
1009
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055;
|
|
1010
1010
|
};
|
|
1011
|
-
protoOf(SRGBTransferFunctions).
|
|
1011
|
+
protoOf(SRGBTransferFunctions).z6p = function (x) {
|
|
1012
1012
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1013
1013
|
};
|
|
1014
1014
|
var SRGBTransferFunctions_instance;
|
|
@@ -1016,12 +1016,12 @@
|
|
|
1016
1016
|
return SRGBTransferFunctions_instance;
|
|
1017
1017
|
}
|
|
1018
1018
|
function ROMMTransferFunctions() {
|
|
1019
|
-
this.
|
|
1019
|
+
this.y6r_1 = 0.001953;
|
|
1020
1020
|
}
|
|
1021
|
-
protoOf(ROMMTransferFunctions).
|
|
1021
|
+
protoOf(ROMMTransferFunctions).z6p = function (x) {
|
|
1022
1022
|
return x < 0.031248 ? x / 16.0 : spow(x, 1.8);
|
|
1023
1023
|
};
|
|
1024
|
-
protoOf(ROMMTransferFunctions).
|
|
1024
|
+
protoOf(ROMMTransferFunctions).a6q = function (x) {
|
|
1025
1025
|
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556);
|
|
1026
1026
|
};
|
|
1027
1027
|
var ROMMTransferFunctions_instance;
|
|
@@ -1030,13 +1030,13 @@
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1032
1032
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1033
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1034
|
-
var wp = whitePoint.
|
|
1033
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.z6r_1, g.z6r_1, b.z6r_1, r.a6s_1, g.a6s_1, b.a6s_1, r.c6s(), g.c6s(), b.c6s());
|
|
1034
|
+
var wp = whitePoint.o6o_1;
|
|
1035
1035
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1036
1036
|
var this_0 = inverse(primaries);
|
|
1037
|
-
var v0 = wp.
|
|
1038
|
-
var v1 = wp.
|
|
1039
|
-
var v2 = wp.
|
|
1037
|
+
var v0 = wp.d6s();
|
|
1038
|
+
var v1 = wp.b6s_1;
|
|
1039
|
+
var v2 = wp.e6s();
|
|
1040
1040
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1041
1041
|
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;
|
|
1042
1042
|
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;
|
|
@@ -1044,41 +1044,41 @@
|
|
|
1044
1044
|
return dotDiagonal(primaries, x, y, z);
|
|
1045
1045
|
}
|
|
1046
1046
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b) {
|
|
1047
|
-
this.
|
|
1048
|
-
this.
|
|
1049
|
-
this.
|
|
1050
|
-
this.
|
|
1051
|
-
this.
|
|
1052
|
-
this.
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1056
|
-
}
|
|
1057
|
-
protoOf(RGBColorSpaceImpl).k6q = function () {
|
|
1058
|
-
return this.j6s_1;
|
|
1059
|
-
};
|
|
1047
|
+
this.f6s_1 = name;
|
|
1048
|
+
this.g6s_1 = whitePoint;
|
|
1049
|
+
this.h6s_1 = transferFunctions;
|
|
1050
|
+
this.i6s_1 = r;
|
|
1051
|
+
this.j6s_1 = g;
|
|
1052
|
+
this.k6s_1 = b;
|
|
1053
|
+
this.l6s_1 = rectangularComponentInfo('RGB');
|
|
1054
|
+
this.m6s_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.g6s_1, this.i6s_1, this.j6s_1, this.k6s_1));
|
|
1055
|
+
this.n6s_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.m6s_1)));
|
|
1056
|
+
}
|
|
1060
1057
|
protoOf(RGBColorSpaceImpl).h6q = function () {
|
|
1061
|
-
return this.
|
|
1058
|
+
return this.g6s_1;
|
|
1062
1059
|
};
|
|
1063
|
-
protoOf(RGBColorSpaceImpl).
|
|
1064
|
-
return this.
|
|
1060
|
+
protoOf(RGBColorSpaceImpl).e6q = function () {
|
|
1061
|
+
return this.h6s_1;
|
|
1065
1062
|
};
|
|
1066
|
-
protoOf(RGBColorSpaceImpl).
|
|
1067
|
-
return this.
|
|
1063
|
+
protoOf(RGBColorSpaceImpl).f6q = function () {
|
|
1064
|
+
return this.m6s_1;
|
|
1065
|
+
};
|
|
1066
|
+
protoOf(RGBColorSpaceImpl).g6q = function () {
|
|
1067
|
+
return this.n6s_1;
|
|
1068
1068
|
};
|
|
1069
1069
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1070
|
-
return this.
|
|
1070
|
+
return this.f6s_1;
|
|
1071
1071
|
};
|
|
1072
|
-
protoOf(RGBColorSpaceImpl).
|
|
1072
|
+
protoOf(RGBColorSpaceImpl).r6p = function (r, g, b, alpha) {
|
|
1073
1073
|
return new RGB(r, g, b, alpha, this);
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1076
|
-
var result = getStringHashCode(this.
|
|
1076
|
+
var result = getStringHashCode(this.f6s_1);
|
|
1077
|
+
result = imul(result, 31) + this.g6s_1.hashCode() | 0;
|
|
1078
|
+
result = imul(result, 31) + hashCode(this.h6s_1) | 0;
|
|
1079
|
+
result = imul(result, 31) + this.i6s_1.hashCode() | 0;
|
|
1077
1080
|
result = imul(result, 31) + this.j6s_1.hashCode() | 0;
|
|
1078
|
-
result = imul(result, 31) +
|
|
1079
|
-
result = imul(result, 31) + this.l6s_1.hashCode() | 0;
|
|
1080
|
-
result = imul(result, 31) + this.m6s_1.hashCode() | 0;
|
|
1081
|
-
result = imul(result, 31) + this.n6s_1.hashCode() | 0;
|
|
1081
|
+
result = imul(result, 31) + this.k6s_1.hashCode() | 0;
|
|
1082
1082
|
return result;
|
|
1083
1083
|
};
|
|
1084
1084
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1087,32 +1087,32 @@
|
|
|
1087
1087
|
if (!(other instanceof RGBColorSpaceImpl))
|
|
1088
1088
|
return false;
|
|
1089
1089
|
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE();
|
|
1090
|
-
if (!(this.
|
|
1090
|
+
if (!(this.f6s_1 === tmp0_other_with_cast.f6s_1))
|
|
1091
1091
|
return false;
|
|
1092
|
-
if (!this.
|
|
1092
|
+
if (!this.g6s_1.equals(tmp0_other_with_cast.g6s_1))
|
|
1093
1093
|
return false;
|
|
1094
|
-
if (!equals(this.
|
|
1094
|
+
if (!equals(this.h6s_1, tmp0_other_with_cast.h6s_1))
|
|
1095
1095
|
return false;
|
|
1096
|
-
if (!this.
|
|
1096
|
+
if (!this.i6s_1.equals(tmp0_other_with_cast.i6s_1))
|
|
1097
1097
|
return false;
|
|
1098
|
-
if (!this.
|
|
1098
|
+
if (!this.j6s_1.equals(tmp0_other_with_cast.j6s_1))
|
|
1099
1099
|
return false;
|
|
1100
|
-
if (!this.
|
|
1100
|
+
if (!this.k6s_1.equals(tmp0_other_with_cast.k6s_1))
|
|
1101
1101
|
return false;
|
|
1102
1102
|
return true;
|
|
1103
1103
|
};
|
|
1104
1104
|
function BT2020TransferFunctions() {
|
|
1105
1105
|
BT2020TransferFunctions_instance = this;
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1106
|
+
this.o6s_1 = 1.0993;
|
|
1107
|
+
this.p6s_1 = 0.0181;
|
|
1108
1108
|
var tmp = this;
|
|
1109
1109
|
// Inline function 'kotlin.math.pow' call
|
|
1110
|
-
tmp.
|
|
1110
|
+
tmp.q6s_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994;
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(BT2020TransferFunctions).
|
|
1113
|
-
return numberToDouble(x < this.
|
|
1112
|
+
protoOf(BT2020TransferFunctions).z6p = function (x) {
|
|
1113
|
+
return numberToDouble(x < this.q6s_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223));
|
|
1114
1114
|
};
|
|
1115
|
-
protoOf(BT2020TransferFunctions).
|
|
1115
|
+
protoOf(BT2020TransferFunctions).a6q = function (x) {
|
|
1116
1116
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994;
|
|
1117
1117
|
};
|
|
1118
1118
|
var BT2020TransferFunctions_instance;
|
|
@@ -1139,13 +1139,13 @@
|
|
|
1139
1139
|
}
|
|
1140
1140
|
function Companion_3() {
|
|
1141
1141
|
Companion_instance_3 = this;
|
|
1142
|
-
this.
|
|
1142
|
+
this.r6s_1 = XYZColorSpaces_getInstance().s6s_1;
|
|
1143
1143
|
}
|
|
1144
|
-
protoOf(Companion_3).
|
|
1145
|
-
return this.
|
|
1144
|
+
protoOf(Companion_3).h6q = function () {
|
|
1145
|
+
return this.r6s_1.h6q();
|
|
1146
1146
|
};
|
|
1147
|
-
protoOf(Companion_3).
|
|
1148
|
-
return this.
|
|
1147
|
+
protoOf(Companion_3).r6p = function (x, y, z, alpha) {
|
|
1148
|
+
return this.r6s_1.r6p(x, y, z, alpha);
|
|
1149
1149
|
};
|
|
1150
1150
|
var Companion_instance_3;
|
|
1151
1151
|
function Companion_getInstance_3() {
|
|
@@ -1154,65 +1154,65 @@
|
|
|
1154
1154
|
return Companion_instance_3;
|
|
1155
1155
|
}
|
|
1156
1156
|
function adaptToM($this, space, m, mi) {
|
|
1157
|
-
if (space.
|
|
1157
|
+
if (space.h6q().equals($this.d6r_1.h6q()))
|
|
1158
1158
|
return $this;
|
|
1159
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1159
|
+
var transform = chromaticAdaptationMatrix(space, $this.d6r_1.h6q().o6o_1, m, mi);
|
|
1160
1160
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1161
|
-
var v0 = $this.
|
|
1162
|
-
var v1 = $this.
|
|
1163
|
-
var v2 = $this.
|
|
1161
|
+
var v0 = $this.z6q_1;
|
|
1162
|
+
var v1 = $this.a6r_1;
|
|
1163
|
+
var v2 = $this.b6r_1;
|
|
1164
1164
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1165
1165
|
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;
|
|
1166
1166
|
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;
|
|
1167
1167
|
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;
|
|
1168
|
-
return space.
|
|
1168
|
+
return space.r6p(xx, yy, zz, $this.c6r_1);
|
|
1169
1169
|
}
|
|
1170
1170
|
function XYZ(x, y, z, alpha, space) {
|
|
1171
1171
|
Companion_getInstance_3();
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1172
|
+
this.z6q_1 = x;
|
|
1173
|
+
this.a6r_1 = y;
|
|
1174
|
+
this.b6r_1 = z;
|
|
1175
|
+
this.c6r_1 = alpha;
|
|
1176
|
+
this.d6r_1 = space;
|
|
1177
1177
|
}
|
|
1178
|
-
protoOf(XYZ).
|
|
1178
|
+
protoOf(XYZ).u6s = function (space) {
|
|
1179
1179
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1180
1180
|
};
|
|
1181
|
-
protoOf(XYZ).
|
|
1182
|
-
var tmp0_container = this.
|
|
1181
|
+
protoOf(XYZ).e6r = function (space) {
|
|
1182
|
+
var tmp0_container = this.u6s(XYZColorSpace(space.h6q()));
|
|
1183
1183
|
var x = tmp0_container.gf();
|
|
1184
1184
|
var y = tmp0_container.hf();
|
|
1185
1185
|
var z = tmp0_container.xj();
|
|
1186
|
-
var f = space.
|
|
1186
|
+
var f = space.e6q();
|
|
1187
1187
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1188
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1188
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.g6q());
|
|
1189
1189
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1190
1190
|
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;
|
|
1191
1191
|
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;
|
|
1192
1192
|
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;
|
|
1193
|
-
return space.
|
|
1193
|
+
return space.r6p(f.a6q(r), f.a6q(g), f.a6q(b), this.c6r_1);
|
|
1194
1194
|
};
|
|
1195
|
-
protoOf(XYZ).
|
|
1196
|
-
return this.
|
|
1195
|
+
protoOf(XYZ).z6o = function () {
|
|
1196
|
+
return this.e6r(RGBColorSpaces_getInstance().i6q_1);
|
|
1197
1197
|
};
|
|
1198
1198
|
protoOf(XYZ).gf = function () {
|
|
1199
|
-
return this.
|
|
1199
|
+
return this.z6q_1;
|
|
1200
1200
|
};
|
|
1201
1201
|
protoOf(XYZ).hf = function () {
|
|
1202
|
-
return this.
|
|
1202
|
+
return this.a6r_1;
|
|
1203
1203
|
};
|
|
1204
1204
|
protoOf(XYZ).xj = function () {
|
|
1205
|
-
return this.
|
|
1205
|
+
return this.b6r_1;
|
|
1206
1206
|
};
|
|
1207
1207
|
protoOf(XYZ).toString = function () {
|
|
1208
|
-
return 'XYZ(x=' + this.
|
|
1208
|
+
return 'XYZ(x=' + this.z6q_1 + ', y=' + this.a6r_1 + ', z=' + this.b6r_1 + ', alpha=' + this.c6r_1 + ', space=' + this.d6r_1 + ')';
|
|
1209
1209
|
};
|
|
1210
1210
|
protoOf(XYZ).hashCode = function () {
|
|
1211
|
-
var result = getNumberHashCode(this.
|
|
1212
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1213
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1214
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1215
|
-
result = imul(result, 31) + hashCode(this.
|
|
1211
|
+
var result = getNumberHashCode(this.z6q_1);
|
|
1212
|
+
result = imul(result, 31) + getNumberHashCode(this.a6r_1) | 0;
|
|
1213
|
+
result = imul(result, 31) + getNumberHashCode(this.b6r_1) | 0;
|
|
1214
|
+
result = imul(result, 31) + getNumberHashCode(this.c6r_1) | 0;
|
|
1215
|
+
result = imul(result, 31) + hashCode(this.d6r_1) | 0;
|
|
1216
1216
|
return result;
|
|
1217
1217
|
};
|
|
1218
1218
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1221,25 +1221,25 @@
|
|
|
1221
1221
|
if (!(other instanceof XYZ))
|
|
1222
1222
|
return false;
|
|
1223
1223
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1224
|
-
if (!equals(this.
|
|
1224
|
+
if (!equals(this.z6q_1, tmp0_other_with_cast.z6q_1))
|
|
1225
1225
|
return false;
|
|
1226
|
-
if (!equals(this.
|
|
1226
|
+
if (!equals(this.a6r_1, tmp0_other_with_cast.a6r_1))
|
|
1227
1227
|
return false;
|
|
1228
|
-
if (!equals(this.
|
|
1228
|
+
if (!equals(this.b6r_1, tmp0_other_with_cast.b6r_1))
|
|
1229
1229
|
return false;
|
|
1230
|
-
if (!equals(this.
|
|
1230
|
+
if (!equals(this.c6r_1, tmp0_other_with_cast.c6r_1))
|
|
1231
1231
|
return false;
|
|
1232
|
-
if (!equals(this.
|
|
1232
|
+
if (!equals(this.d6r_1, tmp0_other_with_cast.d6r_1))
|
|
1233
1233
|
return false;
|
|
1234
1234
|
return true;
|
|
1235
1235
|
};
|
|
1236
1236
|
function XYZColorSpace(whitePoint) {
|
|
1237
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1237
|
+
return whitePoint.equals(Illuminant_getInstance().u6o_1) ? XYZColorSpaces_getInstance().s6s_1 : whitePoint.equals(Illuminant_getInstance().s6o_1) ? XYZColorSpaces_getInstance().t6s_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1238
1238
|
}
|
|
1239
1239
|
function XYZColorSpaces() {
|
|
1240
1240
|
XYZColorSpaces_instance = this;
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1241
|
+
this.s6s_1 = new XYZColorSpaceImpl(Illuminant_getInstance().u6o_1);
|
|
1242
|
+
this.t6s_1 = new XYZColorSpaceImpl(Illuminant_getInstance().s6o_1);
|
|
1243
1243
|
}
|
|
1244
1244
|
var XYZColorSpaces_instance;
|
|
1245
1245
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1250,26 +1250,26 @@
|
|
|
1250
1250
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1251
1251
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1252
1252
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1253
|
-
var dstWp = _this__u8e3s4.
|
|
1254
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1255
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1253
|
+
var dstWp = _this__u8e3s4.h6q().o6o_1;
|
|
1254
|
+
var src = dot_0(xyzToLms, srcWp.d6s(), srcWp.b6s_1, srcWp.e6s());
|
|
1255
|
+
var dst = dot_0(xyzToLms, dstWp.d6s(), dstWp.b6s_1, dstWp.e6s());
|
|
1256
1256
|
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);
|
|
1257
1257
|
}
|
|
1258
1258
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1259
|
+
this.v6s_1 = whitePoint;
|
|
1260
|
+
this.w6s_1 = rectangularComponentInfo('XYZ');
|
|
1261
1261
|
}
|
|
1262
|
-
protoOf(XYZColorSpaceImpl).
|
|
1263
|
-
return this.
|
|
1262
|
+
protoOf(XYZColorSpaceImpl).h6q = function () {
|
|
1263
|
+
return this.v6s_1;
|
|
1264
1264
|
};
|
|
1265
1265
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1266
|
-
return 'XYZColorSpace(' + this.
|
|
1266
|
+
return 'XYZColorSpace(' + this.v6s_1 + ')';
|
|
1267
1267
|
};
|
|
1268
|
-
protoOf(XYZColorSpaceImpl).
|
|
1268
|
+
protoOf(XYZColorSpaceImpl).r6p = function (x, y, z, alpha) {
|
|
1269
1269
|
return new XYZ(x, y, z, alpha, this);
|
|
1270
1270
|
};
|
|
1271
1271
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1272
|
-
return this.
|
|
1272
|
+
return this.v6s_1.hashCode();
|
|
1273
1273
|
};
|
|
1274
1274
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1275
1275
|
if (this === other)
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
if (!(other instanceof XYZColorSpaceImpl))
|
|
1278
1278
|
return false;
|
|
1279
1279
|
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE();
|
|
1280
|
-
if (!this.
|
|
1280
|
+
if (!this.v6s_1.equals(tmp0_other_with_cast.v6s_1))
|
|
1281
1281
|
return false;
|
|
1282
1282
|
return true;
|
|
1283
1283
|
};
|
|
@@ -1291,26 +1291,26 @@
|
|
|
1291
1291
|
}
|
|
1292
1292
|
function xyY(x, y, Y) {
|
|
1293
1293
|
Y = Y === VOID ? 1.0 : Y;
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1294
|
+
this.z6r_1 = x;
|
|
1295
|
+
this.a6s_1 = y;
|
|
1296
|
+
this.b6s_1 = Y;
|
|
1297
1297
|
}
|
|
1298
|
-
protoOf(xyY).
|
|
1299
|
-
return 1 - this.
|
|
1298
|
+
protoOf(xyY).c6s = function () {
|
|
1299
|
+
return 1 - this.z6r_1 - this.a6s_1;
|
|
1300
1300
|
};
|
|
1301
|
-
protoOf(xyY).
|
|
1302
|
-
return this.
|
|
1301
|
+
protoOf(xyY).d6s = function () {
|
|
1302
|
+
return this.z6r_1 * this.b6s_1 / this.a6s_1;
|
|
1303
1303
|
};
|
|
1304
|
-
protoOf(xyY).
|
|
1305
|
-
return (1 - this.
|
|
1304
|
+
protoOf(xyY).e6s = function () {
|
|
1305
|
+
return (1 - this.z6r_1 - this.a6s_1) * this.b6s_1 / this.a6s_1;
|
|
1306
1306
|
};
|
|
1307
1307
|
protoOf(xyY).toString = function () {
|
|
1308
|
-
return 'xyY(x=' + this.
|
|
1308
|
+
return 'xyY(x=' + this.z6r_1 + ', y=' + this.a6s_1 + ', Y=' + this.b6s_1 + ')';
|
|
1309
1309
|
};
|
|
1310
1310
|
protoOf(xyY).hashCode = function () {
|
|
1311
|
-
var result = getNumberHashCode(this.
|
|
1312
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1313
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1311
|
+
var result = getNumberHashCode(this.z6r_1);
|
|
1312
|
+
result = imul(result, 31) + getNumberHashCode(this.a6s_1) | 0;
|
|
1313
|
+
result = imul(result, 31) + getNumberHashCode(this.b6s_1) | 0;
|
|
1314
1314
|
return result;
|
|
1315
1315
|
};
|
|
1316
1316
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1319,36 +1319,36 @@
|
|
|
1319
1319
|
if (!(other instanceof xyY))
|
|
1320
1320
|
return false;
|
|
1321
1321
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1322
|
-
if (!equals(this.
|
|
1322
|
+
if (!equals(this.z6r_1, tmp0_other_with_cast.z6r_1))
|
|
1323
1323
|
return false;
|
|
1324
|
-
if (!equals(this.
|
|
1324
|
+
if (!equals(this.a6s_1, tmp0_other_with_cast.a6s_1))
|
|
1325
1325
|
return false;
|
|
1326
|
-
if (!equals(this.
|
|
1326
|
+
if (!equals(this.b6s_1, tmp0_other_with_cast.b6s_1))
|
|
1327
1327
|
return false;
|
|
1328
1328
|
return true;
|
|
1329
1329
|
};
|
|
1330
1330
|
//region block: post-declaration
|
|
1331
|
-
protoOf(Companion_2).
|
|
1332
|
-
protoOf(Companion_2).
|
|
1333
|
-
protoOf(Companion_2).
|
|
1334
|
-
protoOf(SRGB).
|
|
1335
|
-
protoOf(SRGB).
|
|
1336
|
-
protoOf(SRGB).
|
|
1337
|
-
protoOf(SRGB).
|
|
1338
|
-
protoOf(SRGB).
|
|
1339
|
-
protoOf(SRGB).
|
|
1340
|
-
protoOf(BT2020Space).
|
|
1341
|
-
protoOf(BT2020Space).
|
|
1342
|
-
protoOf(BT2020Space).
|
|
1343
|
-
protoOf(BT2020Space).
|
|
1344
|
-
protoOf(BT2020Space).
|
|
1345
|
-
protoOf(BT2020Space).
|
|
1346
|
-
protoOf(RGBColorSpaceImpl).
|
|
1347
|
-
protoOf(RGBColorSpaceImpl).
|
|
1348
|
-
protoOf(RGBColorSpaceImpl).
|
|
1349
|
-
protoOf(RGBColorSpaceImpl).
|
|
1350
|
-
protoOf(RGBColorSpaceImpl).
|
|
1351
|
-
protoOf(RGBColorSpaceImpl).
|
|
1331
|
+
protoOf(Companion_2).b6p = from255$default;
|
|
1332
|
+
protoOf(Companion_2).a6p = invoke$default;
|
|
1333
|
+
protoOf(Companion_2).f6p = invoke$default_0;
|
|
1334
|
+
protoOf(SRGB).a6p = invoke$default;
|
|
1335
|
+
protoOf(SRGB).b6q = invoke;
|
|
1336
|
+
protoOf(SRGB).f6p = invoke$default_0;
|
|
1337
|
+
protoOf(SRGB).d6q = invoke_0;
|
|
1338
|
+
protoOf(SRGB).c6q = from255;
|
|
1339
|
+
protoOf(SRGB).b6p = from255$default;
|
|
1340
|
+
protoOf(BT2020Space).a6p = invoke$default;
|
|
1341
|
+
protoOf(BT2020Space).b6q = invoke;
|
|
1342
|
+
protoOf(BT2020Space).f6p = invoke$default_0;
|
|
1343
|
+
protoOf(BT2020Space).d6q = invoke_0;
|
|
1344
|
+
protoOf(BT2020Space).c6q = from255;
|
|
1345
|
+
protoOf(BT2020Space).b6p = from255$default;
|
|
1346
|
+
protoOf(RGBColorSpaceImpl).a6p = invoke$default;
|
|
1347
|
+
protoOf(RGBColorSpaceImpl).b6q = invoke;
|
|
1348
|
+
protoOf(RGBColorSpaceImpl).f6p = invoke$default_0;
|
|
1349
|
+
protoOf(RGBColorSpaceImpl).d6q = invoke_0;
|
|
1350
|
+
protoOf(RGBColorSpaceImpl).c6q = from255;
|
|
1351
|
+
protoOf(RGBColorSpaceImpl).b6p = from255$default;
|
|
1352
1352
|
//endregion
|
|
1353
1353
|
//region block: init
|
|
1354
1354
|
LinearTransferFunctions_instance = new LinearTransferFunctions();
|