git-digger 1.5.14 → 1.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1619 -1586
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt.js +2042 -1968
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +606 -518
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-digger-cli.js +107 -104
- package/kotlin/command-line-tools-digger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +7141 -7156
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1024 -1024
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +336 -389
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/markdown.js +2360 -2359
- package/kotlin/markdown.js.map +1 -1
- package/kotlin/mordant-mordant.js +2554 -2581
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +1 -1
- package/kotlin/tools-cli-tools.js.map +1 -1
- package/kotlin/tools-digger-core.js +217 -216
- package/kotlin/tools-digger-core.js.map +1 -1
- package/kotlin/tools-digger-json.js +117 -115
- package/kotlin/tools-digger-json.js.map +1 -1
- package/kotlin/tools-digger-model.js +58 -57
- package/kotlin/tools-digger-model.js.map +1 -1
- package/kotlin/tools-git-adapter.js +82 -82
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,78 +3,80 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var toString = kotlin_kotlin.$_$.c9;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.b9;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.g8;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.d9;
|
|
10
9
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
11
|
-
var
|
|
10
|
+
var initMetadataForClass = kotlin_kotlin.$_$.e8;
|
|
12
11
|
var getStringHashCode = kotlin_kotlin.$_$.c8;
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var
|
|
12
|
+
var THROW_CCE = kotlin_kotlin.$_$.lc;
|
|
13
|
+
var initMetadataForObject = kotlin_kotlin.$_$.h8;
|
|
15
14
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
16
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
17
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
15
|
+
var charSequenceLength = kotlin_kotlin.$_$.u7;
|
|
16
|
+
var charSequenceGet = kotlin_kotlin.$_$.t7;
|
|
18
17
|
var toString_0 = kotlin_kotlin.$_$.w1;
|
|
19
18
|
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
20
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
21
20
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
22
21
|
var listOf = kotlin_kotlin.$_$.t5;
|
|
23
|
-
var withSign = kotlin_kotlin.$_$.
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.f9;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.ub;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.d8;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.x7;
|
|
24
26
|
var VOID = kotlin_kotlin.$_$.g;
|
|
25
|
-
var
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.f8;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.h9;
|
|
26
29
|
var getNumberHashCode = kotlin_kotlin.$_$.a8;
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var hashCode = kotlin_kotlin.$_$.d8;
|
|
30
|
-
var roundToInt = kotlin_kotlin.$_$.d9;
|
|
30
|
+
var numberToDouble = kotlin_kotlin.$_$.x8;
|
|
31
|
+
var roundToInt = kotlin_kotlin.$_$.e9;
|
|
31
32
|
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.x2;
|
|
32
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
33
|
-
var Char = kotlin_kotlin.$_$.
|
|
34
|
-
var toInt = kotlin_kotlin.$_$.
|
|
35
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
36
|
-
var slice = kotlin_kotlin.$_$.
|
|
37
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
38
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
33
|
+
var coerceIn = kotlin_kotlin.$_$.l9;
|
|
34
|
+
var Char = kotlin_kotlin.$_$.zb;
|
|
35
|
+
var toInt = kotlin_kotlin.$_$.sb;
|
|
36
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.v8;
|
|
37
|
+
var slice = kotlin_kotlin.$_$.hb;
|
|
38
|
+
var startsWith = kotlin_kotlin.$_$.kb;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.q8;
|
|
39
40
|
var contentEquals = kotlin_kotlin.$_$.l4;
|
|
40
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
41
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
41
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.j9;
|
|
42
|
+
var objectCreate = kotlin_kotlin.$_$.a9;
|
|
42
43
|
//endregion
|
|
43
44
|
//region block: pre-declaration
|
|
44
45
|
function toXYZ() {
|
|
45
|
-
return this.
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
return this.q1c().r1c();
|
|
47
|
+
}
|
|
48
|
+
initMetadataForInterface(Color, 'Color');
|
|
49
|
+
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
50
|
+
initMetadataForClass(WhitePoint, 'WhitePoint');
|
|
51
|
+
initMetadataForObject(Illuminant, 'Illuminant');
|
|
52
|
+
initMetadataForClass(Matrix, 'Matrix');
|
|
53
|
+
initMetadataForCompanion(Companion);
|
|
54
|
+
initMetadataForClass(Ansi16, 'Ansi16', VOID, VOID, [Color]);
|
|
55
|
+
initMetadataForCompanion(Companion_0);
|
|
56
|
+
initMetadataForClass(Ansi256, 'Ansi256', VOID, VOID, [Color]);
|
|
57
|
+
initMetadataForCompanion(Companion_1);
|
|
58
|
+
initMetadataForClass(HSV, 'HSV', VOID, VOID, [Color]);
|
|
59
|
+
initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
|
|
60
|
+
initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
|
|
61
|
+
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
62
|
+
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
61
63
|
function invoke$default(r, g, b, alpha, $super) {
|
|
62
64
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
63
|
-
return $super === VOID ? this.
|
|
65
|
+
return $super === VOID ? this.b1e(r, g, b, alpha) : $super.b1e.call(this, r, g, b, alpha);
|
|
64
66
|
}
|
|
65
67
|
function invoke(r, g, b, alpha) {
|
|
66
|
-
return this.
|
|
68
|
+
return this.b1e(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
67
69
|
}
|
|
68
70
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
69
71
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
70
|
-
return $super === VOID ? this.
|
|
72
|
+
return $super === VOID ? this.g1f(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
71
73
|
}
|
|
72
74
|
function from255(r, g, b, alpha) {
|
|
73
|
-
return this.
|
|
75
|
+
return this.b1e(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
74
76
|
}
|
|
75
77
|
function from255$default(r, g, b, alpha, $super) {
|
|
76
78
|
alpha = alpha === VOID ? 255 : alpha;
|
|
77
|
-
return $super === VOID ? this.
|
|
79
|
+
return $super === VOID ? this.h1f(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
78
80
|
}
|
|
79
81
|
function invoke_0(hex) {
|
|
80
82
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -85,57 +87,57 @@
|
|
|
85
87
|
// Inline function 'kotlin.contracts.contract' call
|
|
86
88
|
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpace.invoke.<anonymous>' call
|
|
87
89
|
var it = get_hexLength(hex);
|
|
88
|
-
if (it === 4
|
|
90
|
+
if (it === 4 || it === 8) {
|
|
89
91
|
tmp_2 = parseHex(hex, 3);
|
|
90
92
|
} else {
|
|
91
93
|
tmp_2 = 255;
|
|
92
94
|
}
|
|
93
|
-
return this.
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
95
|
+
return this.h1f(tmp, tmp_0, tmp_1, tmp_2);
|
|
96
|
+
}
|
|
97
|
+
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
98
|
+
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
99
|
+
initMetadataForClass(RGB, 'RGB', VOID, VOID, [Color]);
|
|
100
|
+
initMetadataForObject(RGBColorSpaces, 'RGBColorSpaces');
|
|
101
|
+
initMetadataForObject(SRGB, 'SRGB', VOID, VOID, [RGBColorSpace]);
|
|
102
|
+
initMetadataForClass(RGBColorSpaceImpl, 'RGBColorSpaceImpl', VOID, VOID, [RGBColorSpace]);
|
|
103
|
+
initMetadataForObject(SRGBTransferFunctions, 'SRGBTransferFunctions');
|
|
104
|
+
initMetadataForObject(ACESccTransferFunctions, 'ACESccTransferFunctions');
|
|
105
|
+
initMetadataForObject(ACEScctTransferFunctions, 'ACEScctTransferFunctions');
|
|
106
|
+
initMetadataForObject(BT2020TransferFunctions, 'BT2020TransferFunctions');
|
|
107
|
+
initMetadataForObject(BT709TransferFunctions, 'BT709TransferFunctions');
|
|
108
|
+
initMetadataForObject(ROMMTransferFunctions, 'ROMMTransferFunctions');
|
|
109
|
+
initMetadataForInterface(XYZColorSpace, 'XYZColorSpace');
|
|
110
|
+
initMetadataForCompanion(Companion_3, VOID, [XYZColorSpace]);
|
|
111
|
+
initMetadataForClass(XYZ, 'XYZ', VOID, VOID, [Color]);
|
|
112
|
+
initMetadataForObject(XYZColorSpaces, 'XYZColorSpaces');
|
|
113
|
+
initMetadataForClass(XYZColorSpaceImpl, 'XYZColorSpaceImpl', VOID, VOID, [XYZColorSpace]);
|
|
114
|
+
initMetadataForClass(xyY, 'xyY');
|
|
113
115
|
//endregion
|
|
114
116
|
function Color() {
|
|
115
117
|
}
|
|
116
118
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
119
|
+
this.x1c_1 = name;
|
|
120
|
+
this.y1c_1 = isPolar;
|
|
121
|
+
this.z1c_1 = min;
|
|
122
|
+
this.a1d_1 = max;
|
|
121
123
|
// Inline function 'kotlin.require' call
|
|
122
124
|
// Inline function 'kotlin.contracts.contract' call
|
|
123
|
-
if (!(this.
|
|
125
|
+
if (!(this.z1c_1 <= this.a1d_1)) {
|
|
124
126
|
// Inline function 'com.github.ajalt.colormath.ColorComponentInfo.<anonymous>' call
|
|
125
127
|
var message = 'min must be less than or equal to max';
|
|
126
128
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
function WhitePoint(name, chromaticity) {
|
|
130
|
-
this.
|
|
131
|
-
this.
|
|
132
|
+
this.b1d_1 = name;
|
|
133
|
+
this.c1d_1 = chromaticity;
|
|
132
134
|
}
|
|
133
135
|
protoOf(WhitePoint).toString = function () {
|
|
134
|
-
return this.
|
|
136
|
+
return this.b1d_1;
|
|
135
137
|
};
|
|
136
138
|
protoOf(WhitePoint).hashCode = function () {
|
|
137
|
-
var result = getStringHashCode(this.
|
|
138
|
-
result = imul(result, 31) + this.
|
|
139
|
+
var result = getStringHashCode(this.b1d_1);
|
|
140
|
+
result = imul(result, 31) + this.c1d_1.hashCode() | 0;
|
|
139
141
|
return result;
|
|
140
142
|
};
|
|
141
143
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -144,22 +146,22 @@
|
|
|
144
146
|
if (!(other instanceof WhitePoint))
|
|
145
147
|
return false;
|
|
146
148
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
147
|
-
if (!(this.
|
|
149
|
+
if (!(this.b1d_1 === tmp0_other_with_cast.b1d_1))
|
|
148
150
|
return false;
|
|
149
|
-
if (!this.
|
|
151
|
+
if (!this.c1d_1.equals(tmp0_other_with_cast.c1d_1))
|
|
150
152
|
return false;
|
|
151
153
|
return true;
|
|
152
154
|
};
|
|
153
155
|
function Illuminant() {
|
|
154
156
|
Illuminant_instance = this;
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
157
|
+
this.d1d_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
158
|
+
this.e1d_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
159
|
+
this.f1d_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
160
|
+
this.g1d_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
161
|
+
this.h1d_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
162
|
+
this.i1d_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
163
|
+
this.j1d_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
164
|
+
this.k1d_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
163
165
|
}
|
|
164
166
|
var Illuminant_instance;
|
|
165
167
|
function Illuminant_getInstance() {
|
|
@@ -188,10 +190,10 @@
|
|
|
188
190
|
inductionVariable = inductionVariable + 1 | 0;
|
|
189
191
|
// Inline function 'com.github.ajalt.colormath.internal.zeroOneComponentInfo.<anonymous>.<anonymous>' call
|
|
190
192
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), false, 0.0, 1.0);
|
|
191
|
-
this_0.
|
|
193
|
+
this_0.e(tmp$ret$0);
|
|
192
194
|
}
|
|
193
|
-
this_0.
|
|
194
|
-
return this_0.
|
|
195
|
+
this_0.e(get_alphaInfo());
|
|
196
|
+
return this_0.e5();
|
|
195
197
|
}
|
|
196
198
|
function polarComponentInfo(name, l, r) {
|
|
197
199
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -209,10 +211,10 @@
|
|
|
209
211
|
inductionVariable = inductionVariable + 1 | 0;
|
|
210
212
|
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>.<anonymous>' call
|
|
211
213
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), item === _Char___init__impl__6a9atx(72), item === _Char___init__impl__6a9atx(72) ? 0.0 : l, item === _Char___init__impl__6a9atx(72) ? 360.0 : r);
|
|
212
|
-
this_0.
|
|
214
|
+
this_0.e(tmp$ret$0);
|
|
213
215
|
}
|
|
214
|
-
this_0.
|
|
215
|
-
return this_0.
|
|
216
|
+
this_0.e(get_alphaInfo());
|
|
217
|
+
return this_0.e5();
|
|
216
218
|
}
|
|
217
219
|
function componentInfoList(c) {
|
|
218
220
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -285,6 +287,32 @@
|
|
|
285
287
|
function Matrix__set_impl_s2l54c_0($this, x, y, value) {
|
|
286
288
|
return Matrix__set_impl_s2l54c($this, x, y, value);
|
|
287
289
|
}
|
|
290
|
+
function Matrix__toString_impl_l0abk0($this) {
|
|
291
|
+
return trimMargin('Mat3(\n | ' + Matrix__get_impl_xogbpk($this, 0, 0) + ', ' + Matrix__get_impl_xogbpk($this, 1, 0) + ', ' + Matrix__get_impl_xogbpk($this, 2, 0) + ', \n | ' + Matrix__get_impl_xogbpk($this, 0, 1) + ', ' + Matrix__get_impl_xogbpk($this, 1, 1) + ', ' + Matrix__get_impl_xogbpk($this, 2, 1) + ', \n | ' + Matrix__get_impl_xogbpk($this, 0, 2) + ', ' + Matrix__get_impl_xogbpk($this, 1, 2) + ', ' + Matrix__get_impl_xogbpk($this, 2, 2) + ', \n |)\n ');
|
|
292
|
+
}
|
|
293
|
+
function Matrix__hashCode_impl_s9ntm9($this) {
|
|
294
|
+
return hashCode($this);
|
|
295
|
+
}
|
|
296
|
+
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
297
|
+
if (!(other instanceof Matrix))
|
|
298
|
+
return false;
|
|
299
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.l1d_1 : THROW_CCE();
|
|
300
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
301
|
+
return false;
|
|
302
|
+
return true;
|
|
303
|
+
}
|
|
304
|
+
function Matrix(rowMajor) {
|
|
305
|
+
this.l1d_1 = rowMajor;
|
|
306
|
+
}
|
|
307
|
+
protoOf(Matrix).toString = function () {
|
|
308
|
+
return Matrix__toString_impl_l0abk0(this.l1d_1);
|
|
309
|
+
};
|
|
310
|
+
protoOf(Matrix).hashCode = function () {
|
|
311
|
+
return Matrix__hashCode_impl_s9ntm9(this.l1d_1);
|
|
312
|
+
};
|
|
313
|
+
protoOf(Matrix).equals = function (other) {
|
|
314
|
+
return Matrix__equals_impl_g5p8p9(this.l1d_1, other);
|
|
315
|
+
};
|
|
288
316
|
function inverse(_this__u8e3s4, inPlace) {
|
|
289
317
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
290
318
|
var a = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0);
|
|
@@ -354,17 +382,20 @@
|
|
|
354
382
|
}
|
|
355
383
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
356
384
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
357
|
-
|
|
385
|
+
var p0 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 0) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 0) * v2;
|
|
386
|
+
var p1 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 1) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 1) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 1) * v2;
|
|
387
|
+
var p2 = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 2) * v0 + Matrix__get_impl_xogbpk(_this__u8e3s4, 1, 2) * v1 + Matrix__get_impl_xogbpk(_this__u8e3s4, 2, 2) * v2;
|
|
388
|
+
return _Vector___init__impl__y7x4qq_0(p0, p1, p2);
|
|
358
389
|
}
|
|
359
390
|
function dot$f($this_dot, $other, x, y) {
|
|
360
391
|
return Matrix__get_impl_xogbpk($this_dot, 0, y) * Matrix__get_impl_xogbpk($other, x, 0) + Matrix__get_impl_xogbpk($this_dot, 1, y) * Matrix__get_impl_xogbpk($other, x, 1) + Matrix__get_impl_xogbpk($this_dot, 2, y) * Matrix__get_impl_xogbpk($other, x, 2);
|
|
361
392
|
}
|
|
362
393
|
function Companion() {
|
|
363
394
|
Companion_instance = this;
|
|
364
|
-
this.
|
|
395
|
+
this.m1d_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
365
396
|
}
|
|
366
|
-
protoOf(Companion).
|
|
367
|
-
return this.
|
|
397
|
+
protoOf(Companion).n1d = function () {
|
|
398
|
+
return this.m1d_1;
|
|
368
399
|
};
|
|
369
400
|
var Companion_instance;
|
|
370
401
|
function Companion_getInstance() {
|
|
@@ -374,38 +405,38 @@
|
|
|
374
405
|
}
|
|
375
406
|
function Ansi16(code) {
|
|
376
407
|
Companion_getInstance();
|
|
377
|
-
this.
|
|
408
|
+
this.o1d_1 = code;
|
|
378
409
|
}
|
|
379
|
-
protoOf(Ansi16).
|
|
410
|
+
protoOf(Ansi16).p1c = function () {
|
|
380
411
|
return Companion_getInstance();
|
|
381
412
|
};
|
|
382
|
-
protoOf(Ansi16).
|
|
383
|
-
switch (this.
|
|
413
|
+
protoOf(Ansi16).q1c = function () {
|
|
414
|
+
switch (this.o1d_1) {
|
|
384
415
|
case 30:
|
|
385
416
|
case 40:
|
|
386
|
-
return Companion_getInstance_2().
|
|
417
|
+
return Companion_getInstance_2().p1d(0.0, 0.0, 0.0);
|
|
387
418
|
case 90:
|
|
388
419
|
case 100:
|
|
389
|
-
return Companion_getInstance_2().
|
|
420
|
+
return Companion_getInstance_2().q1d(128, 128, 128);
|
|
390
421
|
case 37:
|
|
391
422
|
case 47:
|
|
392
|
-
return Companion_getInstance_2().
|
|
423
|
+
return Companion_getInstance_2().q1d(192, 192, 192);
|
|
393
424
|
case 97:
|
|
394
425
|
case 107:
|
|
395
|
-
return Companion_getInstance_2().
|
|
426
|
+
return Companion_getInstance_2().p1d(1.0, 1.0, 1.0);
|
|
396
427
|
}
|
|
397
|
-
var color = this.
|
|
398
|
-
var mul = this.
|
|
428
|
+
var color = this.o1d_1 % 10 | 0;
|
|
429
|
+
var mul = this.o1d_1 > 50 ? 1.0 : 0.5;
|
|
399
430
|
var r = (color % 2 | 0) * mul;
|
|
400
431
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
401
432
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
402
|
-
return Companion_getInstance_2().
|
|
433
|
+
return Companion_getInstance_2().p1d(r, g, b);
|
|
403
434
|
};
|
|
404
435
|
protoOf(Ansi16).toString = function () {
|
|
405
|
-
return 'Ansi16(code=' + this.
|
|
436
|
+
return 'Ansi16(code=' + this.o1d_1 + ')';
|
|
406
437
|
};
|
|
407
438
|
protoOf(Ansi16).hashCode = function () {
|
|
408
|
-
return this.
|
|
439
|
+
return this.o1d_1;
|
|
409
440
|
};
|
|
410
441
|
protoOf(Ansi16).equals = function (other) {
|
|
411
442
|
if (this === other)
|
|
@@ -413,16 +444,16 @@
|
|
|
413
444
|
if (!(other instanceof Ansi16))
|
|
414
445
|
return false;
|
|
415
446
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
416
|
-
if (!(this.
|
|
447
|
+
if (!(this.o1d_1 === tmp0_other_with_cast.o1d_1))
|
|
417
448
|
return false;
|
|
418
449
|
return true;
|
|
419
450
|
};
|
|
420
451
|
function Companion_0() {
|
|
421
452
|
Companion_instance_0 = this;
|
|
422
|
-
this.
|
|
453
|
+
this.r1d_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
423
454
|
}
|
|
424
|
-
protoOf(Companion_0).
|
|
425
|
-
return this.
|
|
455
|
+
protoOf(Companion_0).n1d = function () {
|
|
456
|
+
return this.r1d_1;
|
|
426
457
|
};
|
|
427
458
|
var Companion_instance_0;
|
|
428
459
|
function Companion_getInstance_0() {
|
|
@@ -432,19 +463,19 @@
|
|
|
432
463
|
}
|
|
433
464
|
function Ansi256(code) {
|
|
434
465
|
Companion_getInstance_0();
|
|
435
|
-
this.
|
|
466
|
+
this.s1d_1 = code;
|
|
436
467
|
}
|
|
437
|
-
protoOf(Ansi256).
|
|
468
|
+
protoOf(Ansi256).p1c = function () {
|
|
438
469
|
return Companion_getInstance_0();
|
|
439
470
|
};
|
|
440
|
-
protoOf(Ansi256).
|
|
441
|
-
if (this.
|
|
442
|
-
return this.
|
|
443
|
-
if (this.
|
|
444
|
-
var c = imul(this.
|
|
445
|
-
return Companion_getInstance_2().
|
|
471
|
+
protoOf(Ansi256).q1c = function () {
|
|
472
|
+
if (this.s1d_1 < 16)
|
|
473
|
+
return this.t1d().q1c();
|
|
474
|
+
if (this.s1d_1 >= 232) {
|
|
475
|
+
var c = imul(this.s1d_1 - 232 | 0, 10) + 8 | 0;
|
|
476
|
+
return Companion_getInstance_2().q1d(c, c, c);
|
|
446
477
|
}
|
|
447
|
-
var c_0 = this.
|
|
478
|
+
var c_0 = this.s1d_1 - 16 | 0;
|
|
448
479
|
var rem = c_0 % 36 | 0;
|
|
449
480
|
// Inline function 'kotlin.math.floor' call
|
|
450
481
|
var x = c_0 / 36.0;
|
|
@@ -453,16 +484,16 @@
|
|
|
453
484
|
var x_0 = rem / 6.0;
|
|
454
485
|
var g = Math.floor(x_0) / 5.0;
|
|
455
486
|
var b = (rem % 6 | 0) / 5.0;
|
|
456
|
-
return Companion_getInstance_2().
|
|
487
|
+
return Companion_getInstance_2().u1d(r, g, b);
|
|
457
488
|
};
|
|
458
|
-
protoOf(Ansi256).
|
|
459
|
-
return this.
|
|
489
|
+
protoOf(Ansi256).t1d = function () {
|
|
490
|
+
return this.s1d_1 < 8 ? new Ansi16(this.s1d_1 + 30 | 0) : this.s1d_1 < 16 ? new Ansi16((this.s1d_1 - 8 | 0) + 90 | 0) : this.q1c().t1d();
|
|
460
491
|
};
|
|
461
492
|
protoOf(Ansi256).toString = function () {
|
|
462
|
-
return 'Ansi256(code=' + this.
|
|
493
|
+
return 'Ansi256(code=' + this.s1d_1 + ')';
|
|
463
494
|
};
|
|
464
495
|
protoOf(Ansi256).hashCode = function () {
|
|
465
|
-
return this.
|
|
496
|
+
return this.s1d_1;
|
|
466
497
|
};
|
|
467
498
|
protoOf(Ansi256).equals = function (other) {
|
|
468
499
|
if (this === other)
|
|
@@ -470,16 +501,16 @@
|
|
|
470
501
|
if (!(other instanceof Ansi256))
|
|
471
502
|
return false;
|
|
472
503
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
473
|
-
if (!(this.
|
|
504
|
+
if (!(this.s1d_1 === tmp0_other_with_cast.s1d_1))
|
|
474
505
|
return false;
|
|
475
506
|
return true;
|
|
476
507
|
};
|
|
477
508
|
function Companion_1() {
|
|
478
509
|
Companion_instance_1 = this;
|
|
479
|
-
this.
|
|
510
|
+
this.v1d_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
480
511
|
}
|
|
481
|
-
protoOf(Companion_1).
|
|
482
|
-
return this.
|
|
512
|
+
protoOf(Companion_1).n1d = function () {
|
|
513
|
+
return this.v1d_1;
|
|
483
514
|
};
|
|
484
515
|
var Companion_instance_1;
|
|
485
516
|
function Companion_getInstance_1() {
|
|
@@ -498,30 +529,30 @@
|
|
|
498
529
|
function HSV(h, s, v, alpha) {
|
|
499
530
|
Companion_getInstance_1();
|
|
500
531
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
501
|
-
this.
|
|
502
|
-
this.
|
|
503
|
-
this.
|
|
504
|
-
this.
|
|
532
|
+
this.w1d_1 = h;
|
|
533
|
+
this.x1d_1 = s;
|
|
534
|
+
this.y1d_1 = v;
|
|
535
|
+
this.z1d_1 = alpha;
|
|
505
536
|
}
|
|
506
|
-
protoOf(HSV).
|
|
537
|
+
protoOf(HSV).p1c = function () {
|
|
507
538
|
return Companion_getInstance_1();
|
|
508
539
|
};
|
|
509
|
-
protoOf(HSV).
|
|
510
|
-
if (this.
|
|
511
|
-
return Companion_getInstance_2().
|
|
512
|
-
var v = this.
|
|
513
|
-
var h = normalizeDeg_0(this.
|
|
514
|
-
var s = this.
|
|
515
|
-
return SRGB_getInstance().
|
|
540
|
+
protoOf(HSV).q1c = function () {
|
|
541
|
+
if (this.x1d_1 < 1.0E-7)
|
|
542
|
+
return Companion_getInstance_2().b1e(this.y1d_1, this.y1d_1, this.y1d_1, this.z1d_1);
|
|
543
|
+
var v = this.y1d_1;
|
|
544
|
+
var h = normalizeDeg_0(this.w1d_1) / 60.0;
|
|
545
|
+
var s = this.x1d_1;
|
|
546
|
+
return SRGB_getInstance().b1e(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.z1d_1);
|
|
516
547
|
};
|
|
517
548
|
protoOf(HSV).toString = function () {
|
|
518
|
-
return 'HSV(h=' + this.
|
|
549
|
+
return 'HSV(h=' + this.w1d_1 + ', s=' + this.x1d_1 + ', v=' + this.y1d_1 + ', alpha=' + this.z1d_1 + ')';
|
|
519
550
|
};
|
|
520
551
|
protoOf(HSV).hashCode = function () {
|
|
521
|
-
var result = getNumberHashCode(this.
|
|
522
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
523
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
524
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
552
|
+
var result = getNumberHashCode(this.w1d_1);
|
|
553
|
+
result = imul(result, 31) + getNumberHashCode(this.x1d_1) | 0;
|
|
554
|
+
result = imul(result, 31) + getNumberHashCode(this.y1d_1) | 0;
|
|
555
|
+
result = imul(result, 31) + getNumberHashCode(this.z1d_1) | 0;
|
|
525
556
|
return result;
|
|
526
557
|
};
|
|
527
558
|
protoOf(HSV).equals = function (other) {
|
|
@@ -530,13 +561,13 @@
|
|
|
530
561
|
if (!(other instanceof HSV))
|
|
531
562
|
return false;
|
|
532
563
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
533
|
-
if (!equals(this.
|
|
564
|
+
if (!equals(this.w1d_1, tmp0_other_with_cast.w1d_1))
|
|
534
565
|
return false;
|
|
535
|
-
if (!equals(this.
|
|
566
|
+
if (!equals(this.x1d_1, tmp0_other_with_cast.x1d_1))
|
|
536
567
|
return false;
|
|
537
|
-
if (!equals(this.
|
|
568
|
+
if (!equals(this.y1d_1, tmp0_other_with_cast.y1d_1))
|
|
538
569
|
return false;
|
|
539
|
-
if (!equals(this.
|
|
570
|
+
if (!equals(this.z1d_1, tmp0_other_with_cast.z1d_1))
|
|
540
571
|
return false;
|
|
541
572
|
return true;
|
|
542
573
|
};
|
|
@@ -578,47 +609,51 @@
|
|
|
578
609
|
var ICTCP_LMS_TO_XYZ;
|
|
579
610
|
function ICtCp() {
|
|
580
611
|
}
|
|
581
|
-
protoOf(ICtCp).
|
|
582
|
-
var fo = RGBColorSpaces_getInstance().
|
|
612
|
+
protoOf(ICtCp).h1e = function () {
|
|
613
|
+
var fo = RGBColorSpaces_getInstance().p1e_1.u1e();
|
|
583
614
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
584
615
|
var this_0 = get_ICTCP_ICTCP_to_LMS();
|
|
585
|
-
var v0 = this.
|
|
586
|
-
var v1 = this.
|
|
587
|
-
var v2 = this.
|
|
616
|
+
var v0 = this.d1e_1;
|
|
617
|
+
var v1 = this.e1e_1;
|
|
618
|
+
var v2 = this.f1e_1;
|
|
588
619
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>' call
|
|
589
620
|
var l = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
590
621
|
var m = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
591
622
|
var s = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
592
623
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
593
624
|
var this_1 = get_ICTCP_LMS_to_RGB();
|
|
594
|
-
var v0_0 = PqNonlinearity_instance.
|
|
595
|
-
var v1_0 = PqNonlinearity_instance.
|
|
596
|
-
var v2_0 = PqNonlinearity_instance.
|
|
625
|
+
var v0_0 = PqNonlinearity_instance.d1f(l);
|
|
626
|
+
var v1_0 = PqNonlinearity_instance.d1f(m);
|
|
627
|
+
var v2_0 = PqNonlinearity_instance.d1f(s);
|
|
597
628
|
// Inline function 'com.github.ajalt.colormath.model.ICtCp.toBT2020.<anonymous>.<anonymous>' call
|
|
598
629
|
var r = Matrix__get_impl_xogbpk(this_1, 0, 0) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 0) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 0) * v2_0;
|
|
599
630
|
var g = Matrix__get_impl_xogbpk(this_1, 0, 1) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 1) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 1) * v2_0;
|
|
600
631
|
var b = Matrix__get_impl_xogbpk(this_1, 0, 2) * v0_0 + Matrix__get_impl_xogbpk(this_1, 1, 2) * v1_0 + Matrix__get_impl_xogbpk(this_1, 2, 2) * v2_0;
|
|
601
|
-
return RGBColorSpaces_getInstance().
|
|
632
|
+
return RGBColorSpaces_getInstance().p1e_1.b1e(fo.e1f(r), fo.e1f(g), fo.e1f(b), this.g1e_1);
|
|
602
633
|
};
|
|
603
634
|
function PqNonlinearity() {
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
}
|
|
613
|
-
protoOf(PqNonlinearity).
|
|
635
|
+
this.v1e_1 = 0.1593017578125;
|
|
636
|
+
this.w1e_1 = 78.84375;
|
|
637
|
+
this.x1e_1 = 0.8359375;
|
|
638
|
+
this.y1e_1 = 18.8515625;
|
|
639
|
+
this.z1e_1 = 18.6875;
|
|
640
|
+
this.a1f_1 = 10000.0;
|
|
641
|
+
this.b1f_1 = 6.277394636015326;
|
|
642
|
+
this.c1f_1 = 0.012683313515655966;
|
|
643
|
+
}
|
|
644
|
+
protoOf(PqNonlinearity).d1f = function (x) {
|
|
614
645
|
var vp = spow(x, 0.012683313515655966);
|
|
615
646
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
616
|
-
var
|
|
647
|
+
var tmp = n / (18.8515625 - 18.6875 * vp);
|
|
648
|
+
var l = spow_0(tmp, 6.277394636015326);
|
|
617
649
|
return 10000.0 * l;
|
|
618
650
|
};
|
|
619
|
-
protoOf(PqNonlinearity).
|
|
620
|
-
var
|
|
621
|
-
|
|
651
|
+
protoOf(PqNonlinearity).e1f = function (x) {
|
|
652
|
+
var tmp = x / 10000.0;
|
|
653
|
+
var yp = spow_0(tmp, 0.1593017578125);
|
|
654
|
+
var tmp_0 = 0.8359375 + 18.8515625 * yp;
|
|
655
|
+
var tmp_1 = tmp_0 / (1.0 + 18.6875 * yp);
|
|
656
|
+
return spow_0(tmp_1, 78.84375);
|
|
622
657
|
};
|
|
623
658
|
var PqNonlinearity_instance;
|
|
624
659
|
function PqNonlinearity_getInstance() {
|
|
@@ -639,19 +674,19 @@
|
|
|
639
674
|
}
|
|
640
675
|
}
|
|
641
676
|
function GammaTransferFunctions(gamma) {
|
|
642
|
-
this.
|
|
677
|
+
this.f1f_1 = gamma;
|
|
643
678
|
}
|
|
644
|
-
protoOf(GammaTransferFunctions).
|
|
645
|
-
return spow(x, this.
|
|
679
|
+
protoOf(GammaTransferFunctions).d1f = function (x) {
|
|
680
|
+
return spow(x, this.f1f_1);
|
|
646
681
|
};
|
|
647
|
-
protoOf(GammaTransferFunctions).
|
|
648
|
-
return spow(x, 1.0 / this.
|
|
682
|
+
protoOf(GammaTransferFunctions).e1f = function (x) {
|
|
683
|
+
return spow(x, 1.0 / this.f1f_1);
|
|
649
684
|
};
|
|
650
685
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
651
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
686
|
+
return 'GammaTransferFunctions(gamma=' + this.f1f_1 + ')';
|
|
652
687
|
};
|
|
653
688
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
654
|
-
return getNumberHashCode(this.
|
|
689
|
+
return getNumberHashCode(this.f1f_1);
|
|
655
690
|
};
|
|
656
691
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
657
692
|
if (this === other)
|
|
@@ -659,16 +694,16 @@
|
|
|
659
694
|
if (!(other instanceof GammaTransferFunctions))
|
|
660
695
|
return false;
|
|
661
696
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
662
|
-
if (!equals(this.
|
|
697
|
+
if (!equals(this.f1f_1, tmp0_other_with_cast.f1f_1))
|
|
663
698
|
return false;
|
|
664
699
|
return true;
|
|
665
700
|
};
|
|
666
701
|
function LinearTransferFunctions() {
|
|
667
702
|
}
|
|
668
|
-
protoOf(LinearTransferFunctions).
|
|
703
|
+
protoOf(LinearTransferFunctions).d1f = function (x) {
|
|
669
704
|
return x;
|
|
670
705
|
};
|
|
671
|
-
protoOf(LinearTransferFunctions).
|
|
706
|
+
protoOf(LinearTransferFunctions).e1f = function (x) {
|
|
672
707
|
return x;
|
|
673
708
|
};
|
|
674
709
|
var LinearTransferFunctions_instance;
|
|
@@ -679,43 +714,43 @@
|
|
|
679
714
|
}
|
|
680
715
|
function Companion_2() {
|
|
681
716
|
Companion_instance_2 = this;
|
|
682
|
-
this.
|
|
717
|
+
this.a1e_1 = RGBColorSpaces_getInstance().i1e_1;
|
|
683
718
|
}
|
|
684
|
-
protoOf(Companion_2).
|
|
685
|
-
return this.
|
|
719
|
+
protoOf(Companion_2).n1d = function () {
|
|
720
|
+
return this.a1e_1.n1d();
|
|
686
721
|
};
|
|
687
|
-
protoOf(Companion_2).
|
|
688
|
-
return this.
|
|
722
|
+
protoOf(Companion_2).k1f = function () {
|
|
723
|
+
return this.a1e_1.k1f();
|
|
689
724
|
};
|
|
690
|
-
protoOf(Companion_2).
|
|
691
|
-
return this.
|
|
725
|
+
protoOf(Companion_2).j1f = function () {
|
|
726
|
+
return this.a1e_1.j1f();
|
|
692
727
|
};
|
|
693
|
-
protoOf(Companion_2).
|
|
694
|
-
return this.
|
|
728
|
+
protoOf(Companion_2).e12 = function () {
|
|
729
|
+
return this.a1e_1.e12();
|
|
695
730
|
};
|
|
696
|
-
protoOf(Companion_2).
|
|
697
|
-
return this.
|
|
731
|
+
protoOf(Companion_2).u1e = function () {
|
|
732
|
+
return this.a1e_1.u1e();
|
|
698
733
|
};
|
|
699
|
-
protoOf(Companion_2).
|
|
700
|
-
return this.
|
|
734
|
+
protoOf(Companion_2).l1f = function () {
|
|
735
|
+
return this.a1e_1.l1f();
|
|
701
736
|
};
|
|
702
|
-
protoOf(Companion_2).
|
|
703
|
-
return this.
|
|
737
|
+
protoOf(Companion_2).h1f = function (r, g, b, alpha) {
|
|
738
|
+
return this.a1e_1.h1f(r, g, b, alpha);
|
|
704
739
|
};
|
|
705
|
-
protoOf(Companion_2).
|
|
706
|
-
return this.
|
|
740
|
+
protoOf(Companion_2).b1e = function (r, g, b, alpha) {
|
|
741
|
+
return this.a1e_1.b1e(r, g, b, alpha);
|
|
707
742
|
};
|
|
708
|
-
protoOf(Companion_2).
|
|
709
|
-
return this.
|
|
743
|
+
protoOf(Companion_2).g1f = function (r, g, b, alpha) {
|
|
744
|
+
return this.a1e_1.g1f(r, g, b, alpha);
|
|
710
745
|
};
|
|
711
|
-
protoOf(Companion_2).
|
|
712
|
-
return this.
|
|
746
|
+
protoOf(Companion_2).i1f = function (hex) {
|
|
747
|
+
return this.a1e_1.i1f(hex);
|
|
713
748
|
};
|
|
714
749
|
protoOf(Companion_2).equals = function (other) {
|
|
715
|
-
return equals(RGBColorSpaces_getInstance().
|
|
750
|
+
return equals(RGBColorSpaces_getInstance().i1e_1, other);
|
|
716
751
|
};
|
|
717
752
|
protoOf(Companion_2).hashCode = function () {
|
|
718
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
753
|
+
return hashCode(RGBColorSpaces_getInstance().i1e_1);
|
|
719
754
|
};
|
|
720
755
|
var Companion_instance_2;
|
|
721
756
|
function Companion_getInstance_2() {
|
|
@@ -724,47 +759,47 @@
|
|
|
724
759
|
return Companion_instance_2;
|
|
725
760
|
}
|
|
726
761
|
function clamp$copy(receiver, p0, p1, p2, p3) {
|
|
727
|
-
return receiver.
|
|
762
|
+
return receiver.m1f(p0, p1, p2, p3);
|
|
728
763
|
}
|
|
729
764
|
function RGB(r, g, b, alpha, space) {
|
|
730
765
|
Companion_getInstance_2();
|
|
731
|
-
this.
|
|
732
|
-
this.
|
|
733
|
-
this.
|
|
734
|
-
this.
|
|
735
|
-
this.
|
|
766
|
+
this.s1c_1 = r;
|
|
767
|
+
this.t1c_1 = g;
|
|
768
|
+
this.u1c_1 = b;
|
|
769
|
+
this.v1c_1 = alpha;
|
|
770
|
+
this.w1c_1 = space;
|
|
736
771
|
}
|
|
737
|
-
protoOf(RGB).
|
|
738
|
-
return this.
|
|
772
|
+
protoOf(RGB).p1c = function () {
|
|
773
|
+
return this.w1c_1;
|
|
739
774
|
};
|
|
740
|
-
protoOf(RGB).
|
|
775
|
+
protoOf(RGB).n1f = function () {
|
|
741
776
|
// Inline function 'kotlin.math.roundToInt' call
|
|
742
|
-
var this_0 = this.
|
|
777
|
+
var this_0 = this.s1c_1 * 255;
|
|
743
778
|
return roundToInt(this_0);
|
|
744
779
|
};
|
|
745
|
-
protoOf(RGB).
|
|
780
|
+
protoOf(RGB).o1f = function () {
|
|
746
781
|
// Inline function 'kotlin.math.roundToInt' call
|
|
747
|
-
var this_0 = this.
|
|
782
|
+
var this_0 = this.t1c_1 * 255;
|
|
748
783
|
return roundToInt(this_0);
|
|
749
784
|
};
|
|
750
|
-
protoOf(RGB).
|
|
785
|
+
protoOf(RGB).p1f = function () {
|
|
751
786
|
// Inline function 'kotlin.math.roundToInt' call
|
|
752
|
-
var this_0 = this.
|
|
787
|
+
var this_0 = this.u1c_1 * 255;
|
|
753
788
|
return roundToInt(this_0);
|
|
754
789
|
};
|
|
755
|
-
protoOf(RGB).
|
|
756
|
-
var f = SRGB_getInstance().
|
|
757
|
-
return equals(this.
|
|
790
|
+
protoOf(RGB).q1f = function (space) {
|
|
791
|
+
var f = SRGB_getInstance().u1e();
|
|
792
|
+
return equals(this.w1c_1, space) ? this : equals(this.w1c_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().j1e_1) ? space.b1e(f.d1f(this.s1c_1), f.d1f(this.t1c_1), f.d1f(this.u1c_1), this.v1c_1) : equals(this.w1c_1, RGBColorSpaces_getInstance().j1e_1) && equals(space, SRGB_getInstance()) ? space.b1e(f.e1f(this.s1c_1), f.e1f(this.t1c_1), f.e1f(this.u1c_1), this.v1c_1) : this.r1c().w1f(space);
|
|
758
793
|
};
|
|
759
|
-
protoOf(RGB).
|
|
794
|
+
protoOf(RGB).x1f = function () {
|
|
760
795
|
var tmp$ret$3;
|
|
761
796
|
$l$block: {
|
|
762
797
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
763
798
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
764
|
-
var $this$toSRGB = this.
|
|
765
|
-
var r = $this$toSRGB.
|
|
766
|
-
var g = $this$toSRGB.
|
|
767
|
-
var b = $this$toSRGB.
|
|
799
|
+
var $this$toSRGB = this.q1f(SRGB_getInstance());
|
|
800
|
+
var r = $this$toSRGB.s1c_1;
|
|
801
|
+
var g = $this$toSRGB.t1c_1;
|
|
802
|
+
var b = $this$toSRGB.u1c_1;
|
|
768
803
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
769
804
|
var min = Math.min(r, g, b);
|
|
770
805
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -786,101 +821,101 @@
|
|
|
786
821
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
787
822
|
var h_0 = normalizeDeg(h);
|
|
788
823
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
789
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
824
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.v1c_1);
|
|
790
825
|
break $l$block;
|
|
791
826
|
}
|
|
792
827
|
return tmp$ret$3;
|
|
793
828
|
};
|
|
794
|
-
protoOf(RGB).
|
|
795
|
-
var f = this.
|
|
829
|
+
protoOf(RGB).r1c = function () {
|
|
830
|
+
var f = this.w1c_1.u1e();
|
|
796
831
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
797
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
798
|
-
var v0 = f.
|
|
799
|
-
var v1 = f.
|
|
800
|
-
var v2 = f.
|
|
832
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.w1c_1.j1f());
|
|
833
|
+
var v0 = f.d1f(this.s1c_1);
|
|
834
|
+
var v1 = f.d1f(this.t1c_1);
|
|
835
|
+
var v2 = f.d1f(this.u1c_1);
|
|
801
836
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
802
837
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
803
838
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
804
839
|
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
805
|
-
return XYZColorSpace_0(this.
|
|
840
|
+
return XYZColorSpace_0(this.w1c_1.l1f()).b1e(x, y, z, this.v1c_1);
|
|
806
841
|
};
|
|
807
|
-
protoOf(RGB).
|
|
842
|
+
protoOf(RGB).t1d = function () {
|
|
808
843
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
809
|
-
var $this$toSRGB = this.
|
|
844
|
+
var $this$toSRGB = this.q1f(SRGB_getInstance());
|
|
810
845
|
// Inline function 'kotlin.math.roundToInt' call
|
|
811
|
-
var this_0 = $this$toSRGB.
|
|
846
|
+
var this_0 = $this$toSRGB.x1f().y1d_1 * 100;
|
|
812
847
|
var value = roundToInt(this_0);
|
|
813
848
|
if (value === 30)
|
|
814
849
|
return new Ansi16(30);
|
|
815
850
|
var v = value / 50 | 0;
|
|
816
851
|
// Inline function 'kotlin.math.roundToInt' call
|
|
817
|
-
var this_1 = $this$toSRGB.
|
|
852
|
+
var this_1 = $this$toSRGB.u1c_1;
|
|
818
853
|
var tmp$ret$1 = roundToInt(this_1);
|
|
819
854
|
var tmp = imul(tmp$ret$1, 4);
|
|
820
855
|
// Inline function 'kotlin.math.roundToInt' call
|
|
821
|
-
var this_2 = $this$toSRGB.
|
|
856
|
+
var this_2 = $this$toSRGB.t1c_1;
|
|
822
857
|
var tmp$ret$2 = roundToInt(this_2);
|
|
823
858
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
824
859
|
// Inline function 'kotlin.math.roundToInt' call
|
|
825
|
-
var this_3 = $this$toSRGB.
|
|
860
|
+
var this_3 = $this$toSRGB.s1c_1;
|
|
826
861
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
827
862
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
828
863
|
};
|
|
829
|
-
protoOf(RGB).
|
|
864
|
+
protoOf(RGB).y1f = function () {
|
|
830
865
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
831
|
-
var $this$toSRGB = this.
|
|
832
|
-
var ri = $this$toSRGB.
|
|
833
|
-
var gi = $this$toSRGB.
|
|
834
|
-
var bi = $this$toSRGB.
|
|
866
|
+
var $this$toSRGB = this.q1f(SRGB_getInstance());
|
|
867
|
+
var ri = $this$toSRGB.n1f();
|
|
868
|
+
var gi = $this$toSRGB.o1f();
|
|
869
|
+
var bi = $this$toSRGB.p1f();
|
|
835
870
|
var tmp;
|
|
836
|
-
if (ri === gi
|
|
871
|
+
if (ri === gi && gi === bi) {
|
|
837
872
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
838
873
|
} else {
|
|
839
874
|
// Inline function 'kotlin.math.roundToInt' call
|
|
840
|
-
var this_0 = $this$toSRGB.
|
|
875
|
+
var this_0 = $this$toSRGB.s1c_1 * 5;
|
|
841
876
|
var tmp$ret$0 = roundToInt(this_0);
|
|
842
877
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
843
878
|
// Inline function 'kotlin.math.roundToInt' call
|
|
844
|
-
var this_1 = $this$toSRGB.
|
|
879
|
+
var this_1 = $this$toSRGB.t1c_1 * 5;
|
|
845
880
|
var tmp$ret$1 = roundToInt(this_1);
|
|
846
881
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
847
882
|
// Inline function 'kotlin.math.roundToInt' call
|
|
848
|
-
var this_2 = $this$toSRGB.
|
|
883
|
+
var this_2 = $this$toSRGB.u1c_1 * 5;
|
|
849
884
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
850
885
|
}
|
|
851
886
|
var code = tmp;
|
|
852
887
|
return new Ansi256(code);
|
|
853
888
|
};
|
|
854
|
-
protoOf(RGB).
|
|
855
|
-
return this.
|
|
889
|
+
protoOf(RGB).q1c = function () {
|
|
890
|
+
return this.q1f(RGBColorSpaces_getInstance().i1e_1);
|
|
856
891
|
};
|
|
857
|
-
protoOf(RGB).
|
|
892
|
+
protoOf(RGB).z1f = function () {
|
|
858
893
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
859
|
-
var v1 = this.
|
|
860
|
-
var v2 = this.
|
|
861
|
-
var v3 = this.
|
|
862
|
-
var alpha = this.
|
|
863
|
-
var tmp0_container = this.
|
|
894
|
+
var v1 = this.s1c_1;
|
|
895
|
+
var v2 = this.t1c_1;
|
|
896
|
+
var v3 = this.u1c_1;
|
|
897
|
+
var alpha = this.v1c_1;
|
|
898
|
+
var tmp0_container = this.p1c().n1d();
|
|
864
899
|
// Inline function 'kotlin.collections.component1' call
|
|
865
|
-
var c1 = tmp0_container.
|
|
900
|
+
var c1 = tmp0_container.q(0);
|
|
866
901
|
// Inline function 'kotlin.collections.component2' call
|
|
867
|
-
var c2 = tmp0_container.
|
|
902
|
+
var c2 = tmp0_container.q(1);
|
|
868
903
|
// Inline function 'kotlin.collections.component3' call
|
|
869
|
-
var c3 = tmp0_container.
|
|
904
|
+
var c3 = tmp0_container.q(2);
|
|
870
905
|
var tmp;
|
|
871
906
|
var tmp_0;
|
|
872
907
|
var tmp_1;
|
|
873
908
|
var tmp_2;
|
|
874
|
-
var containsLower = c1.
|
|
875
|
-
if (v1 <= c1.
|
|
876
|
-
var containsLower_0 = c2.
|
|
877
|
-
tmp_2 = v2 <= c2.
|
|
909
|
+
var containsLower = c1.z1c_1;
|
|
910
|
+
if (v1 <= c1.a1d_1 ? containsLower <= v1 : false) {
|
|
911
|
+
var containsLower_0 = c2.z1c_1;
|
|
912
|
+
tmp_2 = v2 <= c2.a1d_1 ? containsLower_0 <= v2 : false;
|
|
878
913
|
} else {
|
|
879
914
|
tmp_2 = false;
|
|
880
915
|
}
|
|
881
916
|
if (tmp_2) {
|
|
882
|
-
var containsLower_1 = c3.
|
|
883
|
-
tmp_1 = v3 <= c3.
|
|
917
|
+
var containsLower_1 = c3.z1c_1;
|
|
918
|
+
tmp_1 = v3 <= c3.a1d_1 ? containsLower_1 <= v3 : false;
|
|
884
919
|
} else {
|
|
885
920
|
tmp_1 = false;
|
|
886
921
|
}
|
|
@@ -892,30 +927,30 @@
|
|
|
892
927
|
if (tmp_0) {
|
|
893
928
|
tmp = this;
|
|
894
929
|
} else {
|
|
895
|
-
tmp = clamp$copy(this, coerceIn(v1, c1.
|
|
930
|
+
tmp = clamp$copy(this, coerceIn(v1, c1.z1c_1, c1.a1d_1), coerceIn(v2, c2.z1c_1, c2.a1d_1), coerceIn(v3, c3.z1c_1, c3.a1d_1), coerceIn(alpha, 0.0, 1.0));
|
|
896
931
|
}
|
|
897
932
|
return tmp;
|
|
898
933
|
};
|
|
899
|
-
protoOf(RGB).
|
|
934
|
+
protoOf(RGB).a1g = function (r, g, b, alpha, space) {
|
|
900
935
|
return new RGB(r, g, b, alpha, space);
|
|
901
936
|
};
|
|
902
|
-
protoOf(RGB).
|
|
903
|
-
r = r === VOID ? this.
|
|
904
|
-
g = g === VOID ? this.
|
|
905
|
-
b = b === VOID ? this.
|
|
906
|
-
alpha = alpha === VOID ? this.
|
|
907
|
-
space = space === VOID ? this.
|
|
908
|
-
return $super === VOID ? this.
|
|
937
|
+
protoOf(RGB).m1f = function (r, g, b, alpha, space, $super) {
|
|
938
|
+
r = r === VOID ? this.s1c_1 : r;
|
|
939
|
+
g = g === VOID ? this.t1c_1 : g;
|
|
940
|
+
b = b === VOID ? this.u1c_1 : b;
|
|
941
|
+
alpha = alpha === VOID ? this.v1c_1 : alpha;
|
|
942
|
+
space = space === VOID ? this.w1c_1 : space;
|
|
943
|
+
return $super === VOID ? this.a1g(r, g, b, alpha, space) : $super.a1g.call(this, r, g, b, alpha, space);
|
|
909
944
|
};
|
|
910
945
|
protoOf(RGB).toString = function () {
|
|
911
|
-
return 'RGB(r=' + this.
|
|
946
|
+
return 'RGB(r=' + this.s1c_1 + ', g=' + this.t1c_1 + ', b=' + this.u1c_1 + ', alpha=' + this.v1c_1 + ', space=' + toString(this.w1c_1) + ')';
|
|
912
947
|
};
|
|
913
948
|
protoOf(RGB).hashCode = function () {
|
|
914
|
-
var result = getNumberHashCode(this.
|
|
915
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
916
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
917
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
918
|
-
result = imul(result, 31) + hashCode(this.
|
|
949
|
+
var result = getNumberHashCode(this.s1c_1);
|
|
950
|
+
result = imul(result, 31) + getNumberHashCode(this.t1c_1) | 0;
|
|
951
|
+
result = imul(result, 31) + getNumberHashCode(this.u1c_1) | 0;
|
|
952
|
+
result = imul(result, 31) + getNumberHashCode(this.v1c_1) | 0;
|
|
953
|
+
result = imul(result, 31) + hashCode(this.w1c_1) | 0;
|
|
919
954
|
return result;
|
|
920
955
|
};
|
|
921
956
|
protoOf(RGB).equals = function (other) {
|
|
@@ -924,15 +959,15 @@
|
|
|
924
959
|
if (!(other instanceof RGB))
|
|
925
960
|
return false;
|
|
926
961
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
927
|
-
if (!equals(this.
|
|
962
|
+
if (!equals(this.s1c_1, tmp0_other_with_cast.s1c_1))
|
|
928
963
|
return false;
|
|
929
|
-
if (!equals(this.
|
|
964
|
+
if (!equals(this.t1c_1, tmp0_other_with_cast.t1c_1))
|
|
930
965
|
return false;
|
|
931
|
-
if (!equals(this.
|
|
966
|
+
if (!equals(this.u1c_1, tmp0_other_with_cast.u1c_1))
|
|
932
967
|
return false;
|
|
933
|
-
if (!equals(this.
|
|
968
|
+
if (!equals(this.v1c_1, tmp0_other_with_cast.v1c_1))
|
|
934
969
|
return false;
|
|
935
|
-
if (!equals(this.
|
|
970
|
+
if (!equals(this.w1c_1, tmp0_other_with_cast.w1c_1))
|
|
936
971
|
return false;
|
|
937
972
|
return true;
|
|
938
973
|
};
|
|
@@ -1033,17 +1068,17 @@
|
|
|
1033
1068
|
}
|
|
1034
1069
|
var ACES_AP1_B;
|
|
1035
1070
|
function RGBColorSpaces$SRGB$lambda($this$$receiver, it) {
|
|
1036
|
-
return it.
|
|
1071
|
+
return it.q1c();
|
|
1037
1072
|
}
|
|
1038
1073
|
function RGBColorSpaces$BT2020$lambda($this$$receiver, color) {
|
|
1039
1074
|
var tmp;
|
|
1040
1075
|
if (color instanceof RGB) {
|
|
1041
|
-
tmp = color.
|
|
1076
|
+
tmp = color.q1f($this$$receiver);
|
|
1042
1077
|
} else {
|
|
1043
1078
|
if (color instanceof ICtCp) {
|
|
1044
|
-
tmp = color.
|
|
1079
|
+
tmp = color.h1e();
|
|
1045
1080
|
} else {
|
|
1046
|
-
tmp = color.
|
|
1081
|
+
tmp = color.r1c().w1f($this$$receiver);
|
|
1047
1082
|
}
|
|
1048
1083
|
}
|
|
1049
1084
|
return tmp;
|
|
@@ -1051,29 +1086,29 @@
|
|
|
1051
1086
|
function RGBColorSpaces() {
|
|
1052
1087
|
RGBColorSpaces_instance = this;
|
|
1053
1088
|
var tmp = this;
|
|
1054
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1089
|
+
var tmp_0 = Illuminant_getInstance().i1d_1;
|
|
1055
1090
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1056
1091
|
var tmp_2 = get_SRGB_R();
|
|
1057
1092
|
var tmp_3 = get_SRGB_G();
|
|
1058
1093
|
var tmp_4 = get_SRGB_B();
|
|
1059
|
-
tmp.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1094
|
+
tmp.i1e_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1095
|
+
this.j1e_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().i1d_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1096
|
+
this.k1e_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1097
|
+
this.l1e_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1098
|
+
this.m1e_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1099
|
+
this.n1e_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1100
|
+
this.o1e_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().i1d_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
|
|
1066
1101
|
var tmp_5 = this;
|
|
1067
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1102
|
+
var tmp_6 = Illuminant_getInstance().i1d_1;
|
|
1068
1103
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1069
1104
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1070
1105
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1071
1106
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1072
|
-
tmp_5.
|
|
1073
|
-
this.
|
|
1074
|
-
this.
|
|
1075
|
-
this.
|
|
1076
|
-
this.
|
|
1107
|
+
tmp_5.p1e_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1108
|
+
this.q1e_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().i1d_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1109
|
+
this.r1e_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));
|
|
1110
|
+
this.s1e_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().i1d_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1111
|
+
this.t1e_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().g1d_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
1077
1112
|
}
|
|
1078
1113
|
var RGBColorSpaces_instance;
|
|
1079
1114
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1083,43 +1118,43 @@
|
|
|
1083
1118
|
}
|
|
1084
1119
|
function SRGB() {
|
|
1085
1120
|
SRGB_instance = this;
|
|
1086
|
-
this.
|
|
1121
|
+
this.c1e_1 = RGBColorSpaces_getInstance().i1e_1;
|
|
1087
1122
|
}
|
|
1088
|
-
protoOf(SRGB).
|
|
1089
|
-
return this.
|
|
1123
|
+
protoOf(SRGB).n1d = function () {
|
|
1124
|
+
return this.c1e_1.n1d();
|
|
1090
1125
|
};
|
|
1091
|
-
protoOf(SRGB).
|
|
1092
|
-
return this.
|
|
1126
|
+
protoOf(SRGB).k1f = function () {
|
|
1127
|
+
return this.c1e_1.k1f();
|
|
1093
1128
|
};
|
|
1094
|
-
protoOf(SRGB).
|
|
1095
|
-
return this.
|
|
1129
|
+
protoOf(SRGB).j1f = function () {
|
|
1130
|
+
return this.c1e_1.j1f();
|
|
1096
1131
|
};
|
|
1097
|
-
protoOf(SRGB).
|
|
1098
|
-
return this.
|
|
1132
|
+
protoOf(SRGB).e12 = function () {
|
|
1133
|
+
return this.c1e_1.e12();
|
|
1099
1134
|
};
|
|
1100
|
-
protoOf(SRGB).
|
|
1101
|
-
return this.
|
|
1135
|
+
protoOf(SRGB).u1e = function () {
|
|
1136
|
+
return this.c1e_1.u1e();
|
|
1102
1137
|
};
|
|
1103
|
-
protoOf(SRGB).
|
|
1104
|
-
return this.
|
|
1138
|
+
protoOf(SRGB).l1f = function () {
|
|
1139
|
+
return this.c1e_1.l1f();
|
|
1105
1140
|
};
|
|
1106
|
-
protoOf(SRGB).
|
|
1107
|
-
return this.
|
|
1141
|
+
protoOf(SRGB).h1f = function (r, g, b, alpha) {
|
|
1142
|
+
return this.c1e_1.h1f(r, g, b, alpha);
|
|
1108
1143
|
};
|
|
1109
|
-
protoOf(SRGB).
|
|
1110
|
-
return this.
|
|
1144
|
+
protoOf(SRGB).b1e = function (r, g, b, alpha) {
|
|
1145
|
+
return this.c1e_1.b1e(r, g, b, alpha);
|
|
1111
1146
|
};
|
|
1112
|
-
protoOf(SRGB).
|
|
1113
|
-
return this.
|
|
1147
|
+
protoOf(SRGB).g1f = function (r, g, b, alpha) {
|
|
1148
|
+
return this.c1e_1.g1f(r, g, b, alpha);
|
|
1114
1149
|
};
|
|
1115
|
-
protoOf(SRGB).
|
|
1116
|
-
return this.
|
|
1150
|
+
protoOf(SRGB).i1f = function (hex) {
|
|
1151
|
+
return this.c1e_1.i1f(hex);
|
|
1117
1152
|
};
|
|
1118
1153
|
protoOf(SRGB).equals = function (other) {
|
|
1119
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1154
|
+
return equals(RGBColorSpaces_getInstance().i1e_1, other);
|
|
1120
1155
|
};
|
|
1121
1156
|
protoOf(SRGB).hashCode = function () {
|
|
1122
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1157
|
+
return hashCode(RGBColorSpaces_getInstance().i1e_1);
|
|
1123
1158
|
};
|
|
1124
1159
|
protoOf(SRGB).toString = function () {
|
|
1125
1160
|
return 'sRGB';
|
|
@@ -1131,39 +1166,39 @@
|
|
|
1131
1166
|
return SRGB_instance;
|
|
1132
1167
|
}
|
|
1133
1168
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1137
|
-
this.
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
}
|
|
1145
|
-
protoOf(RGBColorSpaceImpl).
|
|
1146
|
-
return this.
|
|
1147
|
-
};
|
|
1148
|
-
protoOf(RGBColorSpaceImpl).
|
|
1149
|
-
return this.
|
|
1150
|
-
};
|
|
1151
|
-
protoOf(RGBColorSpaceImpl).
|
|
1152
|
-
return this.y1f_1;
|
|
1153
|
-
};
|
|
1154
|
-
protoOf(RGBColorSpaceImpl).i1d = function () {
|
|
1169
|
+
this.b1g_1 = name;
|
|
1170
|
+
this.c1g_1 = whitePoint;
|
|
1171
|
+
this.d1g_1 = transferFunctions;
|
|
1172
|
+
this.e1g_1 = r;
|
|
1173
|
+
this.f1g_1 = g;
|
|
1174
|
+
this.g1g_1 = b;
|
|
1175
|
+
this.h1g_1 = convertImpl;
|
|
1176
|
+
this.i1g_1 = zeroOneComponentInfo('RGB');
|
|
1177
|
+
this.j1g_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.c1g_1, this.e1g_1, this.f1g_1, this.g1g_1));
|
|
1178
|
+
this.k1g_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.j1g_1)));
|
|
1179
|
+
}
|
|
1180
|
+
protoOf(RGBColorSpaceImpl).e12 = function () {
|
|
1181
|
+
return this.b1g_1;
|
|
1182
|
+
};
|
|
1183
|
+
protoOf(RGBColorSpaceImpl).l1f = function () {
|
|
1184
|
+
return this.c1g_1;
|
|
1185
|
+
};
|
|
1186
|
+
protoOf(RGBColorSpaceImpl).u1e = function () {
|
|
1155
1187
|
return this.d1g_1;
|
|
1156
1188
|
};
|
|
1157
|
-
protoOf(RGBColorSpaceImpl).
|
|
1158
|
-
return this.
|
|
1189
|
+
protoOf(RGBColorSpaceImpl).n1d = function () {
|
|
1190
|
+
return this.i1g_1;
|
|
1159
1191
|
};
|
|
1160
|
-
protoOf(RGBColorSpaceImpl).
|
|
1161
|
-
return this.
|
|
1192
|
+
protoOf(RGBColorSpaceImpl).j1f = function () {
|
|
1193
|
+
return this.j1g_1;
|
|
1194
|
+
};
|
|
1195
|
+
protoOf(RGBColorSpaceImpl).k1f = function () {
|
|
1196
|
+
return this.k1g_1;
|
|
1162
1197
|
};
|
|
1163
1198
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1164
|
-
return this.
|
|
1199
|
+
return this.b1g_1;
|
|
1165
1200
|
};
|
|
1166
|
-
protoOf(RGBColorSpaceImpl).
|
|
1201
|
+
protoOf(RGBColorSpaceImpl).b1e = function (r, g, b, alpha) {
|
|
1167
1202
|
return new RGB(r, g, b, alpha, this);
|
|
1168
1203
|
};
|
|
1169
1204
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1171,42 +1206,42 @@
|
|
|
1171
1206
|
return true;
|
|
1172
1207
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1173
1208
|
return false;
|
|
1174
|
-
if (!(this.
|
|
1209
|
+
if (!(this.b1g_1 === other.e12()))
|
|
1175
1210
|
return false;
|
|
1176
|
-
if (!this.
|
|
1211
|
+
if (!this.c1g_1.equals(other.l1f()))
|
|
1177
1212
|
return false;
|
|
1178
|
-
if (!equals(this.
|
|
1213
|
+
if (!equals(this.d1g_1, other.u1e()))
|
|
1179
1214
|
return false;
|
|
1180
1215
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1181
|
-
if (!this.
|
|
1216
|
+
if (!this.e1g_1.equals(other.e1g_1))
|
|
1182
1217
|
return false;
|
|
1183
|
-
if (!this.
|
|
1218
|
+
if (!this.f1g_1.equals(other.f1g_1))
|
|
1184
1219
|
return false;
|
|
1185
|
-
if (!this.
|
|
1220
|
+
if (!this.g1g_1.equals(other.g1g_1))
|
|
1186
1221
|
return false;
|
|
1187
1222
|
} else {
|
|
1188
|
-
if (!contentEquals(this.
|
|
1223
|
+
if (!contentEquals(this.j1g_1, other.j1f()))
|
|
1189
1224
|
return false;
|
|
1190
|
-
if (!contentEquals(this.
|
|
1225
|
+
if (!contentEquals(this.k1g_1, other.k1f()))
|
|
1191
1226
|
return false;
|
|
1192
1227
|
}
|
|
1193
1228
|
return true;
|
|
1194
1229
|
};
|
|
1195
1230
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1196
|
-
var result = getStringHashCode(this.
|
|
1197
|
-
result = imul(31, result) + this.
|
|
1198
|
-
result = imul(31, result) + hashCode(this.
|
|
1199
|
-
result = imul(31, result) + this.
|
|
1200
|
-
result = imul(31, result) + this.
|
|
1201
|
-
result = imul(31, result) + this.
|
|
1231
|
+
var result = getStringHashCode(this.b1g_1);
|
|
1232
|
+
result = imul(31, result) + this.c1g_1.hashCode() | 0;
|
|
1233
|
+
result = imul(31, result) + hashCode(this.d1g_1) | 0;
|
|
1234
|
+
result = imul(31, result) + this.e1g_1.hashCode() | 0;
|
|
1235
|
+
result = imul(31, result) + this.f1g_1.hashCode() | 0;
|
|
1236
|
+
result = imul(31, result) + this.g1g_1.hashCode() | 0;
|
|
1202
1237
|
return result;
|
|
1203
1238
|
};
|
|
1204
1239
|
function SRGBTransferFunctions() {
|
|
1205
1240
|
}
|
|
1206
|
-
protoOf(SRGBTransferFunctions).
|
|
1207
|
-
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x,
|
|
1241
|
+
protoOf(SRGBTransferFunctions).e1f = function (x) {
|
|
1242
|
+
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1208
1243
|
};
|
|
1209
|
-
protoOf(SRGBTransferFunctions).
|
|
1244
|
+
protoOf(SRGBTransferFunctions).d1f = function (x) {
|
|
1210
1245
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1211
1246
|
};
|
|
1212
1247
|
var SRGBTransferFunctions_instance;
|
|
@@ -1219,30 +1254,39 @@
|
|
|
1219
1254
|
}
|
|
1220
1255
|
function ACESccTransferFunctions() {
|
|
1221
1256
|
ACESccTransferFunctions_instance = this;
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1224
|
-
this.
|
|
1257
|
+
this.l1g_1 = 3.0517578125E-5;
|
|
1258
|
+
this.m1g_1 = 1.52587890625E-5;
|
|
1259
|
+
this.n1g_1 = -0.3013698630136986;
|
|
1225
1260
|
var tmp = this;
|
|
1226
1261
|
// Inline function 'kotlin.math.log2' call
|
|
1227
|
-
tmp.
|
|
1262
|
+
tmp.o1g_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1228
1263
|
}
|
|
1229
|
-
protoOf(ACESccTransferFunctions).
|
|
1264
|
+
protoOf(ACESccTransferFunctions).d1f = function (x) {
|
|
1230
1265
|
var tmp;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
tmp =
|
|
1266
|
+
var tmp_0 = x;
|
|
1267
|
+
ACESccTransferFunctions_getInstance();
|
|
1268
|
+
if (tmp_0 <= -0.3013698630136986) {
|
|
1269
|
+
var tmp_1 = spow_0(2.0, x * 17.52 - 9.72);
|
|
1270
|
+
ACESccTransferFunctions_getInstance();
|
|
1271
|
+
tmp = (tmp_1 - 1.52587890625E-5) * 2.0;
|
|
1237
1272
|
} else {
|
|
1238
|
-
|
|
1273
|
+
if (x < this.o1g_1) {
|
|
1274
|
+
// Inline function 'kotlin.math.pow' call
|
|
1275
|
+
var x_0 = x * 17.52 - 9.72;
|
|
1276
|
+
tmp = Math.pow(2.0, x_0);
|
|
1277
|
+
} else {
|
|
1278
|
+
tmp = 65504.0;
|
|
1279
|
+
}
|
|
1239
1280
|
}
|
|
1240
1281
|
return tmp;
|
|
1241
1282
|
};
|
|
1242
|
-
protoOf(ACESccTransferFunctions).
|
|
1283
|
+
protoOf(ACESccTransferFunctions).e1f = function (x) {
|
|
1243
1284
|
var tmp;
|
|
1244
|
-
|
|
1285
|
+
var tmp_0 = x;
|
|
1286
|
+
ACESccTransferFunctions_getInstance();
|
|
1287
|
+
if (tmp_0 < 3.0517578125E-5) {
|
|
1245
1288
|
// Inline function 'kotlin.math.log2' call
|
|
1289
|
+
ACESccTransferFunctions_getInstance();
|
|
1246
1290
|
var x_0 = 1.52587890625E-5 + coerceAtLeast_0(x, 0.0) / 2.0;
|
|
1247
1291
|
tmp = (log2(x_0) + 9.72) / 17.52;
|
|
1248
1292
|
} else {
|
|
@@ -1259,17 +1303,20 @@
|
|
|
1259
1303
|
}
|
|
1260
1304
|
function ACEScctTransferFunctions() {
|
|
1261
1305
|
ACEScctTransferFunctions_instance = this;
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1306
|
+
this.p1g_1 = 10.5402377416545;
|
|
1307
|
+
this.q1g_1 = 0.0729055341958355;
|
|
1264
1308
|
var tmp = this;
|
|
1265
1309
|
// Inline function 'kotlin.math.log2' call
|
|
1266
|
-
tmp.
|
|
1310
|
+
tmp.r1g_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1267
1311
|
}
|
|
1268
|
-
protoOf(ACEScctTransferFunctions).
|
|
1312
|
+
protoOf(ACEScctTransferFunctions).d1f = function (x) {
|
|
1269
1313
|
var tmp;
|
|
1270
1314
|
if (x <= 0.155251141552511) {
|
|
1271
|
-
|
|
1272
|
-
|
|
1315
|
+
ACEScctTransferFunctions_getInstance();
|
|
1316
|
+
var tmp_0 = x - 0.0729055341958355;
|
|
1317
|
+
ACEScctTransferFunctions_getInstance();
|
|
1318
|
+
tmp = tmp_0 / 10.5402377416545;
|
|
1319
|
+
} else if (x < this.r1g_1) {
|
|
1273
1320
|
// Inline function 'kotlin.math.pow' call
|
|
1274
1321
|
var x_0 = x * 17.52 - 9.72;
|
|
1275
1322
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1278,10 +1325,13 @@
|
|
|
1278
1325
|
}
|
|
1279
1326
|
return tmp;
|
|
1280
1327
|
};
|
|
1281
|
-
protoOf(ACEScctTransferFunctions).
|
|
1328
|
+
protoOf(ACEScctTransferFunctions).e1f = function (x) {
|
|
1282
1329
|
var tmp;
|
|
1283
1330
|
if (x < 0.0078125) {
|
|
1284
|
-
|
|
1331
|
+
ACEScctTransferFunctions_getInstance();
|
|
1332
|
+
var tmp_0 = 10.5402377416545 * x;
|
|
1333
|
+
ACEScctTransferFunctions_getInstance();
|
|
1334
|
+
tmp = tmp_0 + 0.0729055341958355;
|
|
1285
1335
|
} else {
|
|
1286
1336
|
// Inline function 'kotlin.math.log2' call
|
|
1287
1337
|
tmp = (log2(x) + 9.72) / 17.52;
|
|
@@ -1296,17 +1346,41 @@
|
|
|
1296
1346
|
}
|
|
1297
1347
|
function BT2020TransferFunctions() {
|
|
1298
1348
|
BT2020TransferFunctions_instance = this;
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1349
|
+
this.s1g_1 = 1.0993;
|
|
1350
|
+
this.t1g_1 = 0.0181;
|
|
1301
1351
|
var tmp = this;
|
|
1352
|
+
BT2020TransferFunctions_getInstance();
|
|
1302
1353
|
// Inline function 'kotlin.math.pow' call
|
|
1303
|
-
|
|
1354
|
+
BT2020TransferFunctions_getInstance();
|
|
1355
|
+
var tmp_0 = 1.0993 * Math.pow(0.0181, 0.45);
|
|
1356
|
+
BT2020TransferFunctions_getInstance();
|
|
1357
|
+
tmp.u1g_1 = tmp_0 - (1.0993 - 1);
|
|
1304
1358
|
}
|
|
1305
|
-
protoOf(BT2020TransferFunctions).
|
|
1306
|
-
|
|
1359
|
+
protoOf(BT2020TransferFunctions).d1f = function (x) {
|
|
1360
|
+
var tmp;
|
|
1361
|
+
if (x < this.u1g_1) {
|
|
1362
|
+
tmp = x / 4.5;
|
|
1363
|
+
} else {
|
|
1364
|
+
BT2020TransferFunctions_getInstance();
|
|
1365
|
+
var tmp_0 = x + (1.0993 - 1);
|
|
1366
|
+
BT2020TransferFunctions_getInstance();
|
|
1367
|
+
tmp = spow_0(tmp_0 / 1.0993, 1 / 0.45);
|
|
1368
|
+
}
|
|
1369
|
+
return numberToDouble(tmp);
|
|
1307
1370
|
};
|
|
1308
|
-
protoOf(BT2020TransferFunctions).
|
|
1309
|
-
|
|
1371
|
+
protoOf(BT2020TransferFunctions).e1f = function (x) {
|
|
1372
|
+
var tmp;
|
|
1373
|
+
var tmp_0 = x;
|
|
1374
|
+
BT2020TransferFunctions_getInstance();
|
|
1375
|
+
if (tmp_0 < 0.0181) {
|
|
1376
|
+
tmp = 4.5 * x;
|
|
1377
|
+
} else {
|
|
1378
|
+
BT2020TransferFunctions_getInstance();
|
|
1379
|
+
var tmp_1 = 1.0993 * spow(x, 0.45);
|
|
1380
|
+
BT2020TransferFunctions_getInstance();
|
|
1381
|
+
tmp = tmp_1 - (1.0993 - 1);
|
|
1382
|
+
}
|
|
1383
|
+
return tmp;
|
|
1310
1384
|
};
|
|
1311
1385
|
var BT2020TransferFunctions_instance;
|
|
1312
1386
|
function BT2020TransferFunctions_getInstance() {
|
|
@@ -1316,12 +1390,12 @@
|
|
|
1316
1390
|
}
|
|
1317
1391
|
function BT709TransferFunctions() {
|
|
1318
1392
|
BT709TransferFunctions_instance = this;
|
|
1319
|
-
this.
|
|
1393
|
+
this.v1g_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1320
1394
|
}
|
|
1321
|
-
protoOf(BT709TransferFunctions).
|
|
1322
|
-
return numberToDouble(x < this.
|
|
1395
|
+
protoOf(BT709TransferFunctions).d1f = function (x) {
|
|
1396
|
+
return numberToDouble(x < this.v1g_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1323
1397
|
};
|
|
1324
|
-
protoOf(BT709TransferFunctions).
|
|
1398
|
+
protoOf(BT709TransferFunctions).e1f = function (x) {
|
|
1325
1399
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1326
1400
|
};
|
|
1327
1401
|
var BT709TransferFunctions_instance;
|
|
@@ -1331,13 +1405,27 @@
|
|
|
1331
1405
|
return BT709TransferFunctions_instance;
|
|
1332
1406
|
}
|
|
1333
1407
|
function ROMMTransferFunctions() {
|
|
1334
|
-
this.
|
|
1408
|
+
this.w1g_1 = 0.001953;
|
|
1335
1409
|
}
|
|
1336
|
-
protoOf(ROMMTransferFunctions).
|
|
1337
|
-
|
|
1410
|
+
protoOf(ROMMTransferFunctions).d1f = function (x) {
|
|
1411
|
+
var tmp;
|
|
1412
|
+
var tmp_0 = x;
|
|
1413
|
+
if (tmp_0 < 16 * 0.001953) {
|
|
1414
|
+
tmp = x / 16.0;
|
|
1415
|
+
} else {
|
|
1416
|
+
tmp = spow(x, 1.8);
|
|
1417
|
+
}
|
|
1418
|
+
return tmp;
|
|
1338
1419
|
};
|
|
1339
|
-
protoOf(ROMMTransferFunctions).
|
|
1340
|
-
|
|
1420
|
+
protoOf(ROMMTransferFunctions).e1f = function (x) {
|
|
1421
|
+
var tmp;
|
|
1422
|
+
var tmp_0 = x;
|
|
1423
|
+
if (tmp_0 < 0.001953) {
|
|
1424
|
+
tmp = x * 16.0;
|
|
1425
|
+
} else {
|
|
1426
|
+
tmp = spow(x, 1.0 / 1.8);
|
|
1427
|
+
}
|
|
1428
|
+
return tmp;
|
|
1341
1429
|
};
|
|
1342
1430
|
var ROMMTransferFunctions_instance;
|
|
1343
1431
|
function ROMMTransferFunctions_getInstance() {
|
|
@@ -1345,13 +1433,13 @@
|
|
|
1345
1433
|
}
|
|
1346
1434
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1347
1435
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1348
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1349
|
-
var wp = whitePoint.
|
|
1436
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.x1g_1, g.x1g_1, b.x1g_1, r.y1g_1, g.y1g_1, b.y1g_1, r.a1h(), g.a1h(), b.a1h());
|
|
1437
|
+
var wp = whitePoint.c1d_1;
|
|
1350
1438
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1351
1439
|
var this_0 = inverse(primaries);
|
|
1352
|
-
var v0 = wp.
|
|
1353
|
-
var v1 = wp.
|
|
1354
|
-
var v2 = wp.
|
|
1440
|
+
var v0 = wp.b1h();
|
|
1441
|
+
var v1 = wp.z1g_1;
|
|
1442
|
+
var v2 = wp.c1h();
|
|
1355
1443
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1356
1444
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1357
1445
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
@@ -1362,9 +1450,9 @@
|
|
|
1362
1450
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1363
1451
|
var tmp;
|
|
1364
1452
|
if (color instanceof RGB) {
|
|
1365
|
-
tmp = color.
|
|
1453
|
+
tmp = color.q1f($this$$receiver);
|
|
1366
1454
|
} else {
|
|
1367
|
-
tmp = color.
|
|
1455
|
+
tmp = color.r1c().w1f($this$$receiver);
|
|
1368
1456
|
}
|
|
1369
1457
|
return tmp;
|
|
1370
1458
|
}
|
|
@@ -1386,22 +1474,22 @@
|
|
|
1386
1474
|
}
|
|
1387
1475
|
function Companion_3() {
|
|
1388
1476
|
Companion_instance_3 = this;
|
|
1389
|
-
this.
|
|
1477
|
+
this.d1h_1 = XYZColorSpaces_getInstance().e1h_1;
|
|
1390
1478
|
}
|
|
1391
|
-
protoOf(Companion_3).
|
|
1392
|
-
return this.
|
|
1479
|
+
protoOf(Companion_3).n1d = function () {
|
|
1480
|
+
return this.d1h_1.n1d();
|
|
1393
1481
|
};
|
|
1394
|
-
protoOf(Companion_3).
|
|
1395
|
-
return this.
|
|
1482
|
+
protoOf(Companion_3).l1f = function () {
|
|
1483
|
+
return this.d1h_1.l1f();
|
|
1396
1484
|
};
|
|
1397
|
-
protoOf(Companion_3).
|
|
1398
|
-
return this.
|
|
1485
|
+
protoOf(Companion_3).b1e = function (x, y, z, alpha) {
|
|
1486
|
+
return this.d1h_1.b1e(x, y, z, alpha);
|
|
1399
1487
|
};
|
|
1400
1488
|
protoOf(Companion_3).hashCode = function () {
|
|
1401
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1489
|
+
return hashCode(XYZColorSpaces_getInstance().e1h_1);
|
|
1402
1490
|
};
|
|
1403
1491
|
protoOf(Companion_3).equals = function (other) {
|
|
1404
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1492
|
+
return equals(XYZColorSpaces_getInstance().e1h_1, other);
|
|
1405
1493
|
};
|
|
1406
1494
|
var Companion_instance_3;
|
|
1407
1495
|
function Companion_getInstance_3() {
|
|
@@ -1410,71 +1498,71 @@
|
|
|
1410
1498
|
return Companion_instance_3;
|
|
1411
1499
|
}
|
|
1412
1500
|
function adaptToM($this, space, m, mi) {
|
|
1413
|
-
if (space.
|
|
1501
|
+
if (space.l1f().equals($this.v1f_1.l1f()))
|
|
1414
1502
|
return $this;
|
|
1415
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1503
|
+
var transform = chromaticAdaptationMatrix(space, $this.v1f_1.l1f().c1d_1, m, mi);
|
|
1416
1504
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1417
|
-
var v0 = $this.
|
|
1418
|
-
var v1 = $this.
|
|
1419
|
-
var v2 = $this.
|
|
1505
|
+
var v0 = $this.r1f_1;
|
|
1506
|
+
var v1 = $this.s1f_1;
|
|
1507
|
+
var v2 = $this.t1f_1;
|
|
1420
1508
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1421
1509
|
var xx = Matrix__get_impl_xogbpk(transform, 0, 0) * v0 + Matrix__get_impl_xogbpk(transform, 1, 0) * v1 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1422
1510
|
var yy = Matrix__get_impl_xogbpk(transform, 0, 1) * v0 + Matrix__get_impl_xogbpk(transform, 1, 1) * v1 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1423
1511
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * v0 + Matrix__get_impl_xogbpk(transform, 1, 2) * v1 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1424
|
-
return space.
|
|
1512
|
+
return space.b1e(xx, yy, zz, $this.u1f_1);
|
|
1425
1513
|
}
|
|
1426
1514
|
function XYZ(x, y, z, alpha, space) {
|
|
1427
1515
|
Companion_getInstance_3();
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1516
|
+
this.r1f_1 = x;
|
|
1517
|
+
this.s1f_1 = y;
|
|
1518
|
+
this.t1f_1 = z;
|
|
1519
|
+
this.u1f_1 = alpha;
|
|
1520
|
+
this.v1f_1 = space;
|
|
1433
1521
|
}
|
|
1434
|
-
protoOf(XYZ).
|
|
1435
|
-
return this.
|
|
1522
|
+
protoOf(XYZ).p1c = function () {
|
|
1523
|
+
return this.v1f_1;
|
|
1436
1524
|
};
|
|
1437
|
-
protoOf(XYZ).
|
|
1525
|
+
protoOf(XYZ).g1h = function (space) {
|
|
1438
1526
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1439
1527
|
};
|
|
1440
|
-
protoOf(XYZ).
|
|
1441
|
-
var tmp0_container = this.
|
|
1442
|
-
var x = tmp0_container.
|
|
1443
|
-
var y = tmp0_container.
|
|
1444
|
-
var z = tmp0_container.
|
|
1445
|
-
var f = space.
|
|
1528
|
+
protoOf(XYZ).w1f = function (space) {
|
|
1529
|
+
var tmp0_container = this.g1h(XYZColorSpace_0(space.l1f()));
|
|
1530
|
+
var x = tmp0_container.i8();
|
|
1531
|
+
var y = tmp0_container.j8();
|
|
1532
|
+
var z = tmp0_container.pf();
|
|
1533
|
+
var f = space.u1e();
|
|
1446
1534
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1447
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1535
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.k1f());
|
|
1448
1536
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1449
1537
|
var r = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
1450
1538
|
var g = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
1451
1539
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
1452
|
-
return space.
|
|
1540
|
+
return space.b1e(f.e1f(r), f.e1f(g), f.e1f(b), this.u1f_1);
|
|
1453
1541
|
};
|
|
1454
|
-
protoOf(XYZ).
|
|
1455
|
-
return this.
|
|
1542
|
+
protoOf(XYZ).q1c = function () {
|
|
1543
|
+
return this.w1f(RGBColorSpaces_getInstance().i1e_1);
|
|
1456
1544
|
};
|
|
1457
|
-
protoOf(XYZ).
|
|
1545
|
+
protoOf(XYZ).r1c = function () {
|
|
1458
1546
|
return this;
|
|
1459
1547
|
};
|
|
1460
|
-
protoOf(XYZ).
|
|
1461
|
-
return this.
|
|
1548
|
+
protoOf(XYZ).i8 = function () {
|
|
1549
|
+
return this.r1f_1;
|
|
1462
1550
|
};
|
|
1463
|
-
protoOf(XYZ).
|
|
1464
|
-
return this.
|
|
1551
|
+
protoOf(XYZ).j8 = function () {
|
|
1552
|
+
return this.s1f_1;
|
|
1465
1553
|
};
|
|
1466
|
-
protoOf(XYZ).
|
|
1467
|
-
return this.
|
|
1554
|
+
protoOf(XYZ).pf = function () {
|
|
1555
|
+
return this.t1f_1;
|
|
1468
1556
|
};
|
|
1469
1557
|
protoOf(XYZ).toString = function () {
|
|
1470
|
-
return 'XYZ(x=' + this.
|
|
1558
|
+
return 'XYZ(x=' + this.r1f_1 + ', y=' + this.s1f_1 + ', z=' + this.t1f_1 + ', alpha=' + this.u1f_1 + ', space=' + toString(this.v1f_1) + ')';
|
|
1471
1559
|
};
|
|
1472
1560
|
protoOf(XYZ).hashCode = function () {
|
|
1473
|
-
var result = getNumberHashCode(this.
|
|
1474
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1475
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1476
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1477
|
-
result = imul(result, 31) + hashCode(this.
|
|
1561
|
+
var result = getNumberHashCode(this.r1f_1);
|
|
1562
|
+
result = imul(result, 31) + getNumberHashCode(this.s1f_1) | 0;
|
|
1563
|
+
result = imul(result, 31) + getNumberHashCode(this.t1f_1) | 0;
|
|
1564
|
+
result = imul(result, 31) + getNumberHashCode(this.u1f_1) | 0;
|
|
1565
|
+
result = imul(result, 31) + hashCode(this.v1f_1) | 0;
|
|
1478
1566
|
return result;
|
|
1479
1567
|
};
|
|
1480
1568
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1483,27 +1571,27 @@
|
|
|
1483
1571
|
if (!(other instanceof XYZ))
|
|
1484
1572
|
return false;
|
|
1485
1573
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1486
|
-
if (!equals(this.
|
|
1574
|
+
if (!equals(this.r1f_1, tmp0_other_with_cast.r1f_1))
|
|
1487
1575
|
return false;
|
|
1488
|
-
if (!equals(this.
|
|
1576
|
+
if (!equals(this.s1f_1, tmp0_other_with_cast.s1f_1))
|
|
1489
1577
|
return false;
|
|
1490
|
-
if (!equals(this.
|
|
1578
|
+
if (!equals(this.t1f_1, tmp0_other_with_cast.t1f_1))
|
|
1491
1579
|
return false;
|
|
1492
|
-
if (!equals(this.
|
|
1580
|
+
if (!equals(this.u1f_1, tmp0_other_with_cast.u1f_1))
|
|
1493
1581
|
return false;
|
|
1494
|
-
if (!equals(this.
|
|
1582
|
+
if (!equals(this.v1f_1, tmp0_other_with_cast.v1f_1))
|
|
1495
1583
|
return false;
|
|
1496
1584
|
return true;
|
|
1497
1585
|
};
|
|
1498
1586
|
function XYZColorSpace() {
|
|
1499
1587
|
}
|
|
1500
1588
|
function XYZColorSpace_0(whitePoint) {
|
|
1501
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1589
|
+
return whitePoint.equals(Illuminant_getInstance().i1d_1) ? XYZColorSpaces_getInstance().e1h_1 : whitePoint.equals(Illuminant_getInstance().g1d_1) ? XYZColorSpaces_getInstance().f1h_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1502
1590
|
}
|
|
1503
1591
|
function XYZColorSpaces() {
|
|
1504
1592
|
XYZColorSpaces_instance = this;
|
|
1505
|
-
this.
|
|
1506
|
-
this.
|
|
1593
|
+
this.e1h_1 = new XYZColorSpaceImpl(Illuminant_getInstance().i1d_1);
|
|
1594
|
+
this.f1h_1 = new XYZColorSpaceImpl(Illuminant_getInstance().g1d_1);
|
|
1507
1595
|
}
|
|
1508
1596
|
var XYZColorSpaces_instance;
|
|
1509
1597
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1514,34 +1602,34 @@
|
|
|
1514
1602
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1515
1603
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1516
1604
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1517
|
-
var dstWp = _this__u8e3s4.
|
|
1518
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1519
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1605
|
+
var dstWp = _this__u8e3s4.l1f().c1d_1;
|
|
1606
|
+
var src = dot_0(xyzToLms, srcWp.b1h(), srcWp.z1g_1, srcWp.c1h());
|
|
1607
|
+
var dst = dot_0(xyzToLms, dstWp.b1h(), dstWp.z1g_1, dstWp.c1h());
|
|
1520
1608
|
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
|
|
1521
1609
|
}
|
|
1522
1610
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1523
|
-
this.
|
|
1524
|
-
this.
|
|
1611
|
+
this.h1h_1 = whitePoint;
|
|
1612
|
+
this.i1h_1 = zeroOneComponentInfo('XYZ');
|
|
1525
1613
|
}
|
|
1526
|
-
protoOf(XYZColorSpaceImpl).
|
|
1527
|
-
return this.
|
|
1614
|
+
protoOf(XYZColorSpaceImpl).l1f = function () {
|
|
1615
|
+
return this.h1h_1;
|
|
1528
1616
|
};
|
|
1529
|
-
protoOf(XYZColorSpaceImpl).
|
|
1530
|
-
return this.
|
|
1617
|
+
protoOf(XYZColorSpaceImpl).n1d = function () {
|
|
1618
|
+
return this.i1h_1;
|
|
1531
1619
|
};
|
|
1532
1620
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1533
|
-
return 'XYZColorSpace(' + this.
|
|
1621
|
+
return 'XYZColorSpace(' + this.h1h_1.toString() + ')';
|
|
1534
1622
|
};
|
|
1535
|
-
protoOf(XYZColorSpaceImpl).
|
|
1623
|
+
protoOf(XYZColorSpaceImpl).b1e = function (x, y, z, alpha) {
|
|
1536
1624
|
return new XYZ(x, y, z, alpha, this);
|
|
1537
1625
|
};
|
|
1538
1626
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1539
|
-
return this.
|
|
1627
|
+
return this.h1h_1.hashCode();
|
|
1540
1628
|
};
|
|
1541
1629
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1542
1630
|
var tmp;
|
|
1543
1631
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1544
|
-
tmp = this.
|
|
1632
|
+
tmp = this.h1h_1.equals(other.l1f());
|
|
1545
1633
|
} else {
|
|
1546
1634
|
tmp = false;
|
|
1547
1635
|
}
|
|
@@ -1557,26 +1645,26 @@
|
|
|
1557
1645
|
}
|
|
1558
1646
|
function xyY(x, y, Y) {
|
|
1559
1647
|
Y = Y === VOID ? 1.0 : Y;
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1648
|
+
this.x1g_1 = x;
|
|
1649
|
+
this.y1g_1 = y;
|
|
1650
|
+
this.z1g_1 = Y;
|
|
1563
1651
|
}
|
|
1564
|
-
protoOf(xyY).
|
|
1565
|
-
return 1 - this.
|
|
1652
|
+
protoOf(xyY).a1h = function () {
|
|
1653
|
+
return 1 - this.x1g_1 - this.y1g_1;
|
|
1566
1654
|
};
|
|
1567
|
-
protoOf(xyY).
|
|
1568
|
-
return this.
|
|
1655
|
+
protoOf(xyY).b1h = function () {
|
|
1656
|
+
return this.x1g_1 * this.z1g_1 / this.y1g_1;
|
|
1569
1657
|
};
|
|
1570
|
-
protoOf(xyY).
|
|
1571
|
-
return (1 - this.
|
|
1658
|
+
protoOf(xyY).c1h = function () {
|
|
1659
|
+
return (1 - this.x1g_1 - this.y1g_1) * this.z1g_1 / this.y1g_1;
|
|
1572
1660
|
};
|
|
1573
1661
|
protoOf(xyY).toString = function () {
|
|
1574
|
-
return 'xyY(x=' + this.
|
|
1662
|
+
return 'xyY(x=' + this.x1g_1 + ', y=' + this.y1g_1 + ', Y=' + this.z1g_1 + ')';
|
|
1575
1663
|
};
|
|
1576
1664
|
protoOf(xyY).hashCode = function () {
|
|
1577
|
-
var result = getNumberHashCode(this.
|
|
1578
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1579
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1665
|
+
var result = getNumberHashCode(this.x1g_1);
|
|
1666
|
+
result = imul(result, 31) + getNumberHashCode(this.y1g_1) | 0;
|
|
1667
|
+
result = imul(result, 31) + getNumberHashCode(this.z1g_1) | 0;
|
|
1580
1668
|
return result;
|
|
1581
1669
|
};
|
|
1582
1670
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1585,30 +1673,30 @@
|
|
|
1585
1673
|
if (!(other instanceof xyY))
|
|
1586
1674
|
return false;
|
|
1587
1675
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1588
|
-
if (!equals(this.
|
|
1676
|
+
if (!equals(this.x1g_1, tmp0_other_with_cast.x1g_1))
|
|
1589
1677
|
return false;
|
|
1590
|
-
if (!equals(this.
|
|
1678
|
+
if (!equals(this.y1g_1, tmp0_other_with_cast.y1g_1))
|
|
1591
1679
|
return false;
|
|
1592
|
-
if (!equals(this.
|
|
1680
|
+
if (!equals(this.z1g_1, tmp0_other_with_cast.z1g_1))
|
|
1593
1681
|
return false;
|
|
1594
1682
|
return true;
|
|
1595
1683
|
};
|
|
1596
1684
|
//region block: post-declaration
|
|
1597
|
-
protoOf(Ansi16).
|
|
1598
|
-
protoOf(Ansi256).
|
|
1599
|
-
protoOf(HSV).
|
|
1600
|
-
protoOf(Companion_2).
|
|
1601
|
-
protoOf(Companion_2).
|
|
1602
|
-
protoOf(Companion_2).
|
|
1603
|
-
protoOf(SRGB).
|
|
1604
|
-
protoOf(SRGB).
|
|
1605
|
-
protoOf(SRGB).
|
|
1606
|
-
protoOf(RGBColorSpaceImpl).
|
|
1607
|
-
protoOf(RGBColorSpaceImpl).
|
|
1608
|
-
protoOf(RGBColorSpaceImpl).
|
|
1609
|
-
protoOf(RGBColorSpaceImpl).
|
|
1610
|
-
protoOf(RGBColorSpaceImpl).
|
|
1611
|
-
protoOf(RGBColorSpaceImpl).
|
|
1685
|
+
protoOf(Ansi16).r1c = toXYZ;
|
|
1686
|
+
protoOf(Ansi256).r1c = toXYZ;
|
|
1687
|
+
protoOf(HSV).r1c = toXYZ;
|
|
1688
|
+
protoOf(Companion_2).q1d = from255$default;
|
|
1689
|
+
protoOf(Companion_2).p1d = invoke$default;
|
|
1690
|
+
protoOf(Companion_2).u1d = invoke$default_0;
|
|
1691
|
+
protoOf(SRGB).q1d = from255$default;
|
|
1692
|
+
protoOf(SRGB).p1d = invoke$default;
|
|
1693
|
+
protoOf(SRGB).u1d = invoke$default_0;
|
|
1694
|
+
protoOf(RGBColorSpaceImpl).p1d = invoke$default;
|
|
1695
|
+
protoOf(RGBColorSpaceImpl).g1f = invoke;
|
|
1696
|
+
protoOf(RGBColorSpaceImpl).u1d = invoke$default_0;
|
|
1697
|
+
protoOf(RGBColorSpaceImpl).i1f = invoke_0;
|
|
1698
|
+
protoOf(RGBColorSpaceImpl).h1f = from255;
|
|
1699
|
+
protoOf(RGBColorSpaceImpl).q1d = from255$default;
|
|
1612
1700
|
//endregion
|
|
1613
1701
|
//region block: init
|
|
1614
1702
|
PqNonlinearity_instance = new PqNonlinearity();
|