mrs-toolbox-cli 0.0.120 → 0.0.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/88b0986a7186d029-atomicfu-js-ir.js +32 -33
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +2 -626
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/clikt-clikt.js +2063 -2080
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +563 -455
- package/colormath-root-colormath.js.map +1 -1
- package/com.mrs.platform.configuration.dto.js +8385 -8656
- package/com.mrs.platform.configuration.dto.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +9747 -9277
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-logging-js-ir.js +62 -62
- package/kotlin-logging-js-ir.js.map +1 -1
- package/kotlin-node.js +12 -2
- package/kotlin-node.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2509 -2492
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +2346 -2157
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3151 -2091
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +261 -260
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +2777 -2786
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-events.js +17 -18
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +921 -923
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1738 -1760
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +9 -9
- package/ktor-ktor-serialization-kotlinx.js +303 -305
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +135 -134
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +641 -637
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +73 -73
- package/ktor-ktor-websockets.js.map +1 -1
- package/markdown.js +2346 -2358
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2536 -2631
- package/mordant-mordant.js.map +1 -1
- package/mrs-toolbox-cli.d.ts +261 -657
- package/mrs-toolbox-cli.js +125 -209
- package/mrs-toolbox-cli.js.map +1 -1
- package/package.json +2 -2
- package/static/demo.test.ts.txt +1 -1
- package/static/mrscconfig.json +0 -1
- package/toolbox.js +11625 -8894
- package/toolbox.js.map +1 -1
|
@@ -3,74 +3,77 @@
|
|
|
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
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.kc;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
8
|
+
var getStringHashCode = kotlin_kotlin.$_$.hb;
|
|
9
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
10
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pb;
|
|
11
|
+
var charSequenceLength = kotlin_kotlin.$_$.xa;
|
|
12
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
13
|
+
var charSequenceGet = kotlin_kotlin.$_$.wa;
|
|
14
|
+
var toString = kotlin_kotlin.$_$.y2;
|
|
15
|
+
var Unit_instance = kotlin_kotlin.$_$.i5;
|
|
16
|
+
var copyToArray = kotlin_kotlin.$_$.s6;
|
|
17
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
|
|
18
|
+
var plus = kotlin_kotlin.$_$.n8;
|
|
19
|
+
var asList = kotlin_kotlin.$_$.z5;
|
|
20
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.e6;
|
|
22
21
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
23
|
-
var listOf = kotlin_kotlin.$_$.
|
|
24
|
-
var withSign = kotlin_kotlin.$_$.
|
|
22
|
+
var listOf = kotlin_kotlin.$_$.b8;
|
|
23
|
+
var withSign = kotlin_kotlin.$_$.rc;
|
|
24
|
+
var trimMargin = kotlin_kotlin.$_$.yf;
|
|
25
|
+
var hashCode = kotlin_kotlin.$_$.ib;
|
|
26
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
25
27
|
var VOID = kotlin_kotlin.$_$.g;
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var Char = kotlin_kotlin.$_$.
|
|
36
|
-
var toInt = kotlin_kotlin.$_$.
|
|
37
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
38
|
-
var slice = kotlin_kotlin.$_$.
|
|
39
|
-
var toString_0 = kotlin_kotlin.$_$.jc;
|
|
28
|
+
var toString_0 = kotlin_kotlin.$_$.pc;
|
|
29
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
|
|
30
|
+
var coerceAtLeast = kotlin_kotlin.$_$.uc;
|
|
31
|
+
var getNumberHashCode = kotlin_kotlin.$_$.fb;
|
|
32
|
+
var numberToDouble = kotlin_kotlin.$_$.gc;
|
|
33
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nb;
|
|
34
|
+
var roundToInt = kotlin_kotlin.$_$.qc;
|
|
35
|
+
var coerceIn = kotlin_kotlin.$_$.zc;
|
|
36
|
+
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.s4;
|
|
37
|
+
var Char = kotlin_kotlin.$_$.cg;
|
|
38
|
+
var toInt = kotlin_kotlin.$_$.pf;
|
|
39
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.ec;
|
|
40
|
+
var slice = kotlin_kotlin.$_$.ze;
|
|
40
41
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
41
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
42
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
43
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
42
|
+
var startsWith = kotlin_kotlin.$_$.cf;
|
|
43
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.wc;
|
|
44
|
+
var objectCreate = kotlin_kotlin.$_$.jc;
|
|
44
45
|
//endregion
|
|
45
46
|
//region block: pre-declaration
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
48
|
+
initMetadataForClass(WhitePoint, 'WhitePoint');
|
|
49
|
+
initMetadataForObject(Illuminant, 'Illuminant');
|
|
50
|
+
initMetadataForClass(Matrix, 'Matrix');
|
|
51
|
+
initMetadataForClass(Vector, 'Vector');
|
|
52
|
+
initMetadataForCompanion(Companion);
|
|
53
|
+
initMetadataForClass(Ansi16, 'Ansi16');
|
|
54
|
+
initMetadataForCompanion(Companion_0);
|
|
55
|
+
initMetadataForClass(Ansi256, 'Ansi256');
|
|
56
|
+
initMetadataForCompanion(Companion_1);
|
|
57
|
+
initMetadataForClass(HSV, 'HSV');
|
|
58
|
+
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
59
|
+
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
57
60
|
function invoke$default(r, g, b, alpha, $super) {
|
|
58
61
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
59
|
-
return $super === VOID ? this.
|
|
62
|
+
return $super === VOID ? this.g76(r, g, b, alpha) : $super.g76.call(this, r, g, b, alpha);
|
|
60
63
|
}
|
|
61
64
|
function invoke(r, g, b, alpha) {
|
|
62
|
-
return this.
|
|
65
|
+
return this.g76(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
63
66
|
}
|
|
64
67
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
65
68
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
66
|
-
return $super === VOID ? this.
|
|
69
|
+
return $super === VOID ? this.q76(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
67
70
|
}
|
|
68
71
|
function from255(r, g, b, alpha) {
|
|
69
|
-
return this.
|
|
72
|
+
return this.g76(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
70
73
|
}
|
|
71
74
|
function from255$default(r, g, b, alpha, $super) {
|
|
72
75
|
alpha = alpha === VOID ? 255 : alpha;
|
|
73
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.r76(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
74
77
|
}
|
|
75
78
|
function invoke_0(hex) {
|
|
76
79
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -81,46 +84,46 @@
|
|
|
81
84
|
// Inline function 'kotlin.contracts.contract' call
|
|
82
85
|
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpace.invoke.<anonymous>' call
|
|
83
86
|
var it = get_hexLength(hex);
|
|
84
|
-
if (it === 4
|
|
87
|
+
if (it === 4 || it === 8) {
|
|
85
88
|
tmp_2 = parseHex(hex, 3);
|
|
86
89
|
} else {
|
|
87
90
|
tmp_2 = 255;
|
|
88
91
|
}
|
|
89
|
-
return this.
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
92
|
+
return this.r76(tmp, tmp_0, tmp_1, tmp_2);
|
|
93
|
+
}
|
|
94
|
+
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
95
|
+
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
96
|
+
initMetadataForClass(RGB, 'RGB');
|
|
97
|
+
initMetadataForObject(RGBColorSpaces, 'RGBColorSpaces');
|
|
98
|
+
initMetadataForObject(SRGB, 'SRGB', VOID, VOID, [RGBColorSpace]);
|
|
99
|
+
initMetadataForObject(ACESccTransferFunctions, 'ACESccTransferFunctions');
|
|
100
|
+
initMetadataForObject(ACEScctTransferFunctions, 'ACEScctTransferFunctions');
|
|
101
|
+
initMetadataForObject(BT2020Space, 'BT2020Space', VOID, VOID, [RGBColorSpace]);
|
|
102
|
+
initMetadataForObject(BT709TransferFunctions, 'BT709TransferFunctions');
|
|
103
|
+
initMetadataForObject(SRGBTransferFunctions, 'SRGBTransferFunctions');
|
|
104
|
+
initMetadataForObject(ROMMTransferFunctions, 'ROMMTransferFunctions');
|
|
105
|
+
initMetadataForClass(RGBColorSpaceImpl, 'RGBColorSpaceImpl', VOID, VOID, [RGBColorSpace]);
|
|
106
|
+
initMetadataForObject(BT2020TransferFunctions, 'BT2020TransferFunctions');
|
|
107
|
+
initMetadataForCompanion(Companion_3);
|
|
108
|
+
initMetadataForClass(XYZ, 'XYZ');
|
|
109
|
+
initMetadataForObject(XYZColorSpaces, 'XYZColorSpaces');
|
|
110
|
+
initMetadataForClass(XYZColorSpaceImpl, 'XYZColorSpaceImpl');
|
|
111
|
+
initMetadataForClass(xyY, 'xyY');
|
|
109
112
|
//endregion
|
|
110
113
|
function ColorComponentInfo(name, isPolar) {
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
114
|
+
this.y74_1 = name;
|
|
115
|
+
this.z74_1 = isPolar;
|
|
113
116
|
}
|
|
114
117
|
function WhitePoint(name, chromaticity) {
|
|
115
|
-
this.
|
|
116
|
-
this.
|
|
118
|
+
this.a75_1 = name;
|
|
119
|
+
this.b75_1 = chromaticity;
|
|
117
120
|
}
|
|
118
121
|
protoOf(WhitePoint).toString = function () {
|
|
119
|
-
return this.
|
|
122
|
+
return this.a75_1;
|
|
120
123
|
};
|
|
121
124
|
protoOf(WhitePoint).hashCode = function () {
|
|
122
|
-
var result = getStringHashCode(this.
|
|
123
|
-
result = imul(result, 31) + this.
|
|
125
|
+
var result = getStringHashCode(this.a75_1);
|
|
126
|
+
result = imul(result, 31) + this.b75_1.hashCode() | 0;
|
|
124
127
|
return result;
|
|
125
128
|
};
|
|
126
129
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -129,22 +132,22 @@
|
|
|
129
132
|
if (!(other instanceof WhitePoint))
|
|
130
133
|
return false;
|
|
131
134
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
132
|
-
if (!(this.
|
|
135
|
+
if (!(this.a75_1 === tmp0_other_with_cast.a75_1))
|
|
133
136
|
return false;
|
|
134
|
-
if (!this.
|
|
137
|
+
if (!this.b75_1.equals(tmp0_other_with_cast.b75_1))
|
|
135
138
|
return false;
|
|
136
139
|
return true;
|
|
137
140
|
};
|
|
138
141
|
function Illuminant() {
|
|
139
142
|
Illuminant_instance = this;
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
142
|
-
this.
|
|
143
|
-
this.
|
|
144
|
-
this.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
143
|
+
this.c75_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
144
|
+
this.d75_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
145
|
+
this.e75_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
146
|
+
this.f75_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
147
|
+
this.g75_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
148
|
+
this.h75_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
149
|
+
this.i75_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
150
|
+
this.j75_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
148
151
|
}
|
|
149
152
|
var Illuminant_instance;
|
|
150
153
|
function Illuminant_getInstance() {
|
|
@@ -163,7 +166,7 @@
|
|
|
163
166
|
inductionVariable = inductionVariable + 1 | 0;
|
|
164
167
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
165
168
|
var tmp$ret$0 = toString(item);
|
|
166
|
-
destination.
|
|
169
|
+
destination.e(tmp$ret$0);
|
|
167
170
|
}
|
|
168
171
|
var tmp$ret$3 = copyToArray(destination);
|
|
169
172
|
return rectangularComponentInfo_0(tmp$ret$3.slice());
|
|
@@ -178,7 +181,7 @@
|
|
|
178
181
|
inductionVariable = inductionVariable + 1 | 0;
|
|
179
182
|
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>' call
|
|
180
183
|
var tmp$ret$0 = new ColorComponentInfo(toString(item), item === _Char___init__impl__6a9atx(72));
|
|
181
|
-
destination.
|
|
184
|
+
destination.e(tmp$ret$0);
|
|
182
185
|
}
|
|
183
186
|
return plus(destination, new ColorComponentInfo('alpha', false));
|
|
184
187
|
}
|
|
@@ -187,12 +190,12 @@
|
|
|
187
190
|
var this_0 = plus(asList(names), 'alpha');
|
|
188
191
|
// Inline function 'kotlin.collections.mapTo' call
|
|
189
192
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
190
|
-
var tmp0_iterator = this_0.
|
|
191
|
-
while (tmp0_iterator.
|
|
192
|
-
var item = tmp0_iterator.
|
|
193
|
+
var tmp0_iterator = this_0.k();
|
|
194
|
+
while (tmp0_iterator.l()) {
|
|
195
|
+
var item = tmp0_iterator.m();
|
|
193
196
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
194
197
|
var tmp$ret$0 = new ColorComponentInfo(item, false);
|
|
195
|
-
destination.
|
|
198
|
+
destination.e(tmp$ret$0);
|
|
196
199
|
}
|
|
197
200
|
return destination;
|
|
198
201
|
}
|
|
@@ -259,6 +262,32 @@
|
|
|
259
262
|
function Matrix__set_impl_s2l54c_0($this, x, y, value) {
|
|
260
263
|
return Matrix__set_impl_s2l54c($this, x, y, value);
|
|
261
264
|
}
|
|
265
|
+
function Matrix__toString_impl_l0abk0($this) {
|
|
266
|
+
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 ');
|
|
267
|
+
}
|
|
268
|
+
function Matrix__hashCode_impl_s9ntm9($this) {
|
|
269
|
+
return hashCode($this);
|
|
270
|
+
}
|
|
271
|
+
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
272
|
+
if (!(other instanceof Matrix))
|
|
273
|
+
return false;
|
|
274
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.k75_1 : THROW_CCE();
|
|
275
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
276
|
+
return false;
|
|
277
|
+
return true;
|
|
278
|
+
}
|
|
279
|
+
function Matrix(rowMajor) {
|
|
280
|
+
this.k75_1 = rowMajor;
|
|
281
|
+
}
|
|
282
|
+
protoOf(Matrix).toString = function () {
|
|
283
|
+
return Matrix__toString_impl_l0abk0(this.k75_1);
|
|
284
|
+
};
|
|
285
|
+
protoOf(Matrix).hashCode = function () {
|
|
286
|
+
return Matrix__hashCode_impl_s9ntm9(this.k75_1);
|
|
287
|
+
};
|
|
288
|
+
protoOf(Matrix).equals = function (other) {
|
|
289
|
+
return Matrix__equals_impl_g5p8p9(this.k75_1, other);
|
|
290
|
+
};
|
|
262
291
|
function inverse(_this__u8e3s4, inPlace) {
|
|
263
292
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
264
293
|
var a = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0);
|
|
@@ -312,6 +341,32 @@
|
|
|
312
341
|
function _Vector___get_s__impl__pzuljk($this) {
|
|
313
342
|
return _Vector___get_values__impl__3gdbp5($this)[2];
|
|
314
343
|
}
|
|
344
|
+
function Vector__toString_impl_hn2ybi($this) {
|
|
345
|
+
return 'Vector(values=' + toString_0($this) + ')';
|
|
346
|
+
}
|
|
347
|
+
function Vector__hashCode_impl_442yhd($this) {
|
|
348
|
+
return hashCode($this);
|
|
349
|
+
}
|
|
350
|
+
function Vector__equals_impl_hy6igl($this, other) {
|
|
351
|
+
if (!(other instanceof Vector))
|
|
352
|
+
return false;
|
|
353
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.l75_1 : THROW_CCE();
|
|
354
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
355
|
+
return false;
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
function Vector(values) {
|
|
359
|
+
this.l75_1 = values;
|
|
360
|
+
}
|
|
361
|
+
protoOf(Vector).toString = function () {
|
|
362
|
+
return Vector__toString_impl_hn2ybi(this.l75_1);
|
|
363
|
+
};
|
|
364
|
+
protoOf(Vector).hashCode = function () {
|
|
365
|
+
return Vector__hashCode_impl_442yhd(this.l75_1);
|
|
366
|
+
};
|
|
367
|
+
protoOf(Vector).equals = function (other) {
|
|
368
|
+
return Vector__equals_impl_hy6igl(this.l75_1, other);
|
|
369
|
+
};
|
|
315
370
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
316
371
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
317
372
|
return _Vector___init__impl__y7x4qq_0(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, 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, 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);
|
|
@@ -321,7 +376,7 @@
|
|
|
321
376
|
}
|
|
322
377
|
function Companion() {
|
|
323
378
|
Companion_instance = this;
|
|
324
|
-
this.
|
|
379
|
+
this.m75_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
325
380
|
}
|
|
326
381
|
var Companion_instance;
|
|
327
382
|
function Companion_getInstance() {
|
|
@@ -331,35 +386,35 @@
|
|
|
331
386
|
}
|
|
332
387
|
function Ansi16(code) {
|
|
333
388
|
Companion_getInstance();
|
|
334
|
-
this.
|
|
389
|
+
this.n75_1 = code;
|
|
335
390
|
}
|
|
336
|
-
protoOf(Ansi16).
|
|
337
|
-
switch (this.
|
|
391
|
+
protoOf(Ansi16).o75 = function () {
|
|
392
|
+
switch (this.n75_1) {
|
|
338
393
|
case 30:
|
|
339
394
|
case 40:
|
|
340
|
-
return Companion_getInstance_2().
|
|
395
|
+
return Companion_getInstance_2().p75(0.0, 0.0, 0.0);
|
|
341
396
|
case 90:
|
|
342
397
|
case 100:
|
|
343
|
-
return Companion_getInstance_2().
|
|
398
|
+
return Companion_getInstance_2().q75(128, 128, 128);
|
|
344
399
|
case 37:
|
|
345
400
|
case 47:
|
|
346
|
-
return Companion_getInstance_2().
|
|
401
|
+
return Companion_getInstance_2().q75(192, 192, 192);
|
|
347
402
|
case 97:
|
|
348
403
|
case 107:
|
|
349
|
-
return Companion_getInstance_2().
|
|
404
|
+
return Companion_getInstance_2().p75(1.0, 1.0, 1.0);
|
|
350
405
|
}
|
|
351
|
-
var color = this.
|
|
352
|
-
var mul = this.
|
|
406
|
+
var color = this.n75_1 % 10 | 0;
|
|
407
|
+
var mul = this.n75_1 > 50 ? 1.0 : 0.5;
|
|
353
408
|
var r = (color % 2 | 0) * mul;
|
|
354
409
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
355
410
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
356
|
-
return Companion_getInstance_2().
|
|
411
|
+
return Companion_getInstance_2().p75(r, g, b);
|
|
357
412
|
};
|
|
358
413
|
protoOf(Ansi16).toString = function () {
|
|
359
|
-
return 'Ansi16(code=' + this.
|
|
414
|
+
return 'Ansi16(code=' + this.n75_1 + ')';
|
|
360
415
|
};
|
|
361
416
|
protoOf(Ansi16).hashCode = function () {
|
|
362
|
-
return this.
|
|
417
|
+
return this.n75_1;
|
|
363
418
|
};
|
|
364
419
|
protoOf(Ansi16).equals = function (other) {
|
|
365
420
|
if (this === other)
|
|
@@ -367,13 +422,13 @@
|
|
|
367
422
|
if (!(other instanceof Ansi16))
|
|
368
423
|
return false;
|
|
369
424
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
370
|
-
if (!(this.
|
|
425
|
+
if (!(this.n75_1 === tmp0_other_with_cast.n75_1))
|
|
371
426
|
return false;
|
|
372
427
|
return true;
|
|
373
428
|
};
|
|
374
429
|
function Companion_0() {
|
|
375
430
|
Companion_instance_0 = this;
|
|
376
|
-
this.
|
|
431
|
+
this.r75_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
377
432
|
}
|
|
378
433
|
var Companion_instance_0;
|
|
379
434
|
function Companion_getInstance_0() {
|
|
@@ -383,16 +438,16 @@
|
|
|
383
438
|
}
|
|
384
439
|
function Ansi256(code) {
|
|
385
440
|
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().
|
|
441
|
+
this.s75_1 = code;
|
|
442
|
+
}
|
|
443
|
+
protoOf(Ansi256).o75 = function () {
|
|
444
|
+
if (this.s75_1 < 16)
|
|
445
|
+
return this.t75().o75();
|
|
446
|
+
if (this.s75_1 >= 232) {
|
|
447
|
+
var c = imul(this.s75_1 - 232 | 0, 10) + 8 | 0;
|
|
448
|
+
return Companion_getInstance_2().q75(c, c, c);
|
|
394
449
|
}
|
|
395
|
-
var c_0 = this.
|
|
450
|
+
var c_0 = this.s75_1 - 16 | 0;
|
|
396
451
|
var rem = c_0 % 36 | 0;
|
|
397
452
|
// Inline function 'kotlin.math.floor' call
|
|
398
453
|
var x = c_0 / 36.0;
|
|
@@ -401,16 +456,16 @@
|
|
|
401
456
|
var x_0 = rem / 6.0;
|
|
402
457
|
var g = Math.floor(x_0) / 5.0;
|
|
403
458
|
var b = (rem % 6 | 0) / 5.0;
|
|
404
|
-
return Companion_getInstance_2().
|
|
459
|
+
return Companion_getInstance_2().u75(r, g, b);
|
|
405
460
|
};
|
|
406
|
-
protoOf(Ansi256).
|
|
407
|
-
return this.
|
|
461
|
+
protoOf(Ansi256).t75 = function () {
|
|
462
|
+
return this.s75_1 < 8 ? new Ansi16(this.s75_1 + 30 | 0) : this.s75_1 < 16 ? new Ansi16((this.s75_1 - 8 | 0) + 90 | 0) : this.o75().t75();
|
|
408
463
|
};
|
|
409
464
|
protoOf(Ansi256).toString = function () {
|
|
410
|
-
return 'Ansi256(code=' + this.
|
|
465
|
+
return 'Ansi256(code=' + this.s75_1 + ')';
|
|
411
466
|
};
|
|
412
467
|
protoOf(Ansi256).hashCode = function () {
|
|
413
|
-
return this.
|
|
468
|
+
return this.s75_1;
|
|
414
469
|
};
|
|
415
470
|
protoOf(Ansi256).equals = function (other) {
|
|
416
471
|
if (this === other)
|
|
@@ -418,13 +473,13 @@
|
|
|
418
473
|
if (!(other instanceof Ansi256))
|
|
419
474
|
return false;
|
|
420
475
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
421
|
-
if (!(this.
|
|
476
|
+
if (!(this.s75_1 === tmp0_other_with_cast.s75_1))
|
|
422
477
|
return false;
|
|
423
478
|
return true;
|
|
424
479
|
};
|
|
425
480
|
function Companion_1() {
|
|
426
481
|
Companion_instance_1 = this;
|
|
427
|
-
this.
|
|
482
|
+
this.a76_1 = polarComponentInfo('HSV');
|
|
428
483
|
}
|
|
429
484
|
var Companion_instance_1;
|
|
430
485
|
function Companion_getInstance_1() {
|
|
@@ -443,27 +498,27 @@
|
|
|
443
498
|
function HSV(h, s, v, alpha) {
|
|
444
499
|
Companion_getInstance_1();
|
|
445
500
|
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().
|
|
501
|
+
this.b76_1 = h;
|
|
502
|
+
this.c76_1 = s;
|
|
503
|
+
this.d76_1 = v;
|
|
504
|
+
this.e76_1 = alpha;
|
|
505
|
+
}
|
|
506
|
+
protoOf(HSV).o75 = function () {
|
|
507
|
+
if (this.c76_1 < 1.0E-7)
|
|
508
|
+
return Companion_getInstance_2().g76(this.d76_1, this.d76_1, this.d76_1, this.e76_1);
|
|
509
|
+
var v = this.d76_1;
|
|
510
|
+
var h = normalizeDeg_0(this.b76_1) / 60.0;
|
|
511
|
+
var s = this.c76_1;
|
|
512
|
+
return SRGB_getInstance().g76(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.e76_1);
|
|
458
513
|
};
|
|
459
514
|
protoOf(HSV).toString = function () {
|
|
460
|
-
return 'HSV(h=' + this.
|
|
515
|
+
return 'HSV(h=' + this.b76_1 + ', s=' + this.c76_1 + ', v=' + this.d76_1 + ', alpha=' + this.e76_1 + ')';
|
|
461
516
|
};
|
|
462
517
|
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.
|
|
518
|
+
var result = getNumberHashCode(this.b76_1);
|
|
519
|
+
result = imul(result, 31) + getNumberHashCode(this.c76_1) | 0;
|
|
520
|
+
result = imul(result, 31) + getNumberHashCode(this.d76_1) | 0;
|
|
521
|
+
result = imul(result, 31) + getNumberHashCode(this.e76_1) | 0;
|
|
467
522
|
return result;
|
|
468
523
|
};
|
|
469
524
|
protoOf(HSV).equals = function (other) {
|
|
@@ -472,30 +527,30 @@
|
|
|
472
527
|
if (!(other instanceof HSV))
|
|
473
528
|
return false;
|
|
474
529
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
475
|
-
if (!equals(this.
|
|
530
|
+
if (!equals(this.b76_1, tmp0_other_with_cast.b76_1))
|
|
476
531
|
return false;
|
|
477
|
-
if (!equals(this.
|
|
532
|
+
if (!equals(this.c76_1, tmp0_other_with_cast.c76_1))
|
|
478
533
|
return false;
|
|
479
|
-
if (!equals(this.
|
|
534
|
+
if (!equals(this.d76_1, tmp0_other_with_cast.d76_1))
|
|
480
535
|
return false;
|
|
481
|
-
if (!equals(this.
|
|
536
|
+
if (!equals(this.e76_1, tmp0_other_with_cast.e76_1))
|
|
482
537
|
return false;
|
|
483
538
|
return true;
|
|
484
539
|
};
|
|
485
540
|
function GammaTransferFunctions(gamma) {
|
|
486
|
-
this.
|
|
541
|
+
this.n76_1 = gamma;
|
|
487
542
|
}
|
|
488
|
-
protoOf(GammaTransferFunctions).
|
|
489
|
-
return spow(x, this.
|
|
543
|
+
protoOf(GammaTransferFunctions).o76 = function (x) {
|
|
544
|
+
return spow(x, this.n76_1);
|
|
490
545
|
};
|
|
491
|
-
protoOf(GammaTransferFunctions).
|
|
492
|
-
return spow(x, 1.0 / this.
|
|
546
|
+
protoOf(GammaTransferFunctions).p76 = function (x) {
|
|
547
|
+
return spow(x, 1.0 / this.n76_1);
|
|
493
548
|
};
|
|
494
549
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
495
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
550
|
+
return 'GammaTransferFunctions(gamma=' + this.n76_1 + ')';
|
|
496
551
|
};
|
|
497
552
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
498
|
-
return getNumberHashCode(this.
|
|
553
|
+
return getNumberHashCode(this.n76_1);
|
|
499
554
|
};
|
|
500
555
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
501
556
|
if (this === other)
|
|
@@ -503,16 +558,16 @@
|
|
|
503
558
|
if (!(other instanceof GammaTransferFunctions))
|
|
504
559
|
return false;
|
|
505
560
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
506
|
-
if (!equals(this.
|
|
561
|
+
if (!equals(this.n76_1, tmp0_other_with_cast.n76_1))
|
|
507
562
|
return false;
|
|
508
563
|
return true;
|
|
509
564
|
};
|
|
510
565
|
function LinearTransferFunctions() {
|
|
511
566
|
}
|
|
512
|
-
protoOf(LinearTransferFunctions).
|
|
567
|
+
protoOf(LinearTransferFunctions).o76 = function (x) {
|
|
513
568
|
return x;
|
|
514
569
|
};
|
|
515
|
-
protoOf(LinearTransferFunctions).
|
|
570
|
+
protoOf(LinearTransferFunctions).p76 = function (x) {
|
|
516
571
|
return x;
|
|
517
572
|
};
|
|
518
573
|
var LinearTransferFunctions_instance;
|
|
@@ -523,31 +578,31 @@
|
|
|
523
578
|
}
|
|
524
579
|
function Companion_2() {
|
|
525
580
|
Companion_instance_2 = this;
|
|
526
|
-
this.
|
|
581
|
+
this.f76_1 = RGBColorSpaces_getInstance().x76_1;
|
|
527
582
|
}
|
|
528
|
-
protoOf(Companion_2).
|
|
529
|
-
return this.
|
|
583
|
+
protoOf(Companion_2).v76 = function () {
|
|
584
|
+
return this.f76_1.v76();
|
|
530
585
|
};
|
|
531
|
-
protoOf(Companion_2).
|
|
532
|
-
return this.
|
|
586
|
+
protoOf(Companion_2).u76 = function () {
|
|
587
|
+
return this.f76_1.u76();
|
|
533
588
|
};
|
|
534
|
-
protoOf(Companion_2).
|
|
535
|
-
return this.
|
|
589
|
+
protoOf(Companion_2).t76 = function () {
|
|
590
|
+
return this.f76_1.t76();
|
|
536
591
|
};
|
|
537
|
-
protoOf(Companion_2).
|
|
538
|
-
return this.
|
|
592
|
+
protoOf(Companion_2).w76 = function () {
|
|
593
|
+
return this.f76_1.w76();
|
|
539
594
|
};
|
|
540
|
-
protoOf(Companion_2).
|
|
541
|
-
return this.
|
|
595
|
+
protoOf(Companion_2).r76 = function (r, g, b, alpha) {
|
|
596
|
+
return this.f76_1.r76(r, g, b, alpha);
|
|
542
597
|
};
|
|
543
|
-
protoOf(Companion_2).
|
|
544
|
-
return this.
|
|
598
|
+
protoOf(Companion_2).g76 = function (r, g, b, alpha) {
|
|
599
|
+
return this.f76_1.g76(r, g, b, alpha);
|
|
545
600
|
};
|
|
546
|
-
protoOf(Companion_2).
|
|
547
|
-
return this.
|
|
601
|
+
protoOf(Companion_2).q76 = function (r, g, b, alpha) {
|
|
602
|
+
return this.f76_1.q76(r, g, b, alpha);
|
|
548
603
|
};
|
|
549
|
-
protoOf(Companion_2).
|
|
550
|
-
return this.
|
|
604
|
+
protoOf(Companion_2).s76 = function (hex) {
|
|
605
|
+
return this.f76_1.s76(hex);
|
|
551
606
|
};
|
|
552
607
|
var Companion_instance_2;
|
|
553
608
|
function Companion_getInstance_2() {
|
|
@@ -557,43 +612,43 @@
|
|
|
557
612
|
}
|
|
558
613
|
function RGB(r, g, b, alpha, space) {
|
|
559
614
|
Companion_getInstance_2();
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
615
|
+
this.v75_1 = r;
|
|
616
|
+
this.w75_1 = g;
|
|
617
|
+
this.x75_1 = b;
|
|
618
|
+
this.y75_1 = alpha;
|
|
619
|
+
this.z75_1 = space;
|
|
565
620
|
}
|
|
566
|
-
protoOf(RGB).
|
|
621
|
+
protoOf(RGB).j77 = function () {
|
|
567
622
|
// Inline function 'kotlin.math.roundToInt' call
|
|
568
|
-
var this_0 = this.
|
|
623
|
+
var this_0 = this.v75_1 * 255;
|
|
569
624
|
return roundToInt(this_0);
|
|
570
625
|
};
|
|
571
|
-
protoOf(RGB).
|
|
626
|
+
protoOf(RGB).k77 = function () {
|
|
572
627
|
// Inline function 'kotlin.math.roundToInt' call
|
|
573
|
-
var this_0 = this.
|
|
628
|
+
var this_0 = this.w75_1 * 255;
|
|
574
629
|
return roundToInt(this_0);
|
|
575
630
|
};
|
|
576
|
-
protoOf(RGB).
|
|
631
|
+
protoOf(RGB).l77 = function () {
|
|
577
632
|
// Inline function 'kotlin.math.roundToInt' call
|
|
578
|
-
var this_0 = this.
|
|
633
|
+
var this_0 = this.x75_1 * 255;
|
|
579
634
|
return roundToInt(this_0);
|
|
580
635
|
};
|
|
581
|
-
protoOf(RGB).
|
|
582
|
-
var f = SRGB_getInstance().
|
|
583
|
-
return equals(this.
|
|
636
|
+
protoOf(RGB).m77 = function (space) {
|
|
637
|
+
var f = SRGB_getInstance().k76_1;
|
|
638
|
+
return equals(this.z75_1, space) ? this : equals(this.z75_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().y76_1) ? space.g76(f.o76(this.v75_1), f.o76(this.w75_1), f.o76(this.x75_1), this.y75_1) : equals(this.z75_1, RGBColorSpaces_getInstance().y76_1) && equals(space, SRGB_getInstance()) ? space.g76(f.p76(this.v75_1), f.p76(this.w75_1), f.p76(this.x75_1), this.y75_1) : this.n77().t77(space);
|
|
584
639
|
};
|
|
585
|
-
protoOf(RGB).
|
|
586
|
-
return this.
|
|
640
|
+
protoOf(RGB).u77 = function () {
|
|
641
|
+
return this.v77(coerceIn(this.v75_1, 0.0, 1.0), coerceIn(this.w75_1, 0.0, 1.0), coerceIn(this.x75_1, 0.0, 1.0), coerceIn(this.y75_1, 0.0, 1.0));
|
|
587
642
|
};
|
|
588
|
-
protoOf(RGB).
|
|
643
|
+
protoOf(RGB).w77 = function () {
|
|
589
644
|
var tmp$ret$3;
|
|
590
645
|
$l$block: {
|
|
591
646
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
592
647
|
// 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.
|
|
648
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
649
|
+
var r = $this$toSRGB.v75_1;
|
|
650
|
+
var g = $this$toSRGB.w75_1;
|
|
651
|
+
var b = $this$toSRGB.x75_1;
|
|
597
652
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
598
653
|
var min = Math.min(r, g, b);
|
|
599
654
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -615,94 +670,94 @@
|
|
|
615
670
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
616
671
|
var h_0 = normalizeDeg(h);
|
|
617
672
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
618
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
673
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.y75_1);
|
|
619
674
|
break $l$block;
|
|
620
675
|
}
|
|
621
676
|
return tmp$ret$3;
|
|
622
677
|
};
|
|
623
|
-
protoOf(RGB).
|
|
624
|
-
var f = this.
|
|
678
|
+
protoOf(RGB).n77 = function () {
|
|
679
|
+
var f = this.z75_1.t76();
|
|
625
680
|
// 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.
|
|
681
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.z75_1.u76());
|
|
682
|
+
var v0 = f.o76(this.v75_1);
|
|
683
|
+
var v1 = f.o76(this.w75_1);
|
|
684
|
+
var v2 = f.o76(this.x75_1);
|
|
630
685
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
631
686
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
632
687
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
633
688
|
var z = Matrix__get_impl_xogbpk(this_0, 0, 2) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 2) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 2) * v2;
|
|
634
|
-
return XYZColorSpace(this.
|
|
689
|
+
return XYZColorSpace(this.z75_1.w76()).g76(x, y, z, this.y75_1);
|
|
635
690
|
};
|
|
636
|
-
protoOf(RGB).
|
|
691
|
+
protoOf(RGB).t75 = function () {
|
|
637
692
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
638
|
-
var $this$toSRGB = this.
|
|
693
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
639
694
|
// Inline function 'kotlin.math.roundToInt' call
|
|
640
|
-
var this_0 = $this$toSRGB.
|
|
695
|
+
var this_0 = $this$toSRGB.w77().d76_1 * 100;
|
|
641
696
|
var value = roundToInt(this_0);
|
|
642
697
|
if (value === 30)
|
|
643
698
|
return new Ansi16(30);
|
|
644
699
|
var v = value / 50 | 0;
|
|
645
700
|
// Inline function 'kotlin.math.roundToInt' call
|
|
646
|
-
var this_1 = $this$toSRGB.
|
|
701
|
+
var this_1 = $this$toSRGB.x75_1;
|
|
647
702
|
var tmp$ret$1 = roundToInt(this_1);
|
|
648
703
|
var tmp = imul(tmp$ret$1, 4);
|
|
649
704
|
// Inline function 'kotlin.math.roundToInt' call
|
|
650
|
-
var this_2 = $this$toSRGB.
|
|
705
|
+
var this_2 = $this$toSRGB.w75_1;
|
|
651
706
|
var tmp$ret$2 = roundToInt(this_2);
|
|
652
707
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
653
708
|
// Inline function 'kotlin.math.roundToInt' call
|
|
654
|
-
var this_3 = $this$toSRGB.
|
|
709
|
+
var this_3 = $this$toSRGB.v75_1;
|
|
655
710
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
656
711
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
657
712
|
};
|
|
658
|
-
protoOf(RGB).
|
|
713
|
+
protoOf(RGB).x77 = function () {
|
|
659
714
|
// 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.
|
|
715
|
+
var $this$toSRGB = this.m77(SRGB_getInstance());
|
|
716
|
+
var ri = $this$toSRGB.j77();
|
|
717
|
+
var gi = $this$toSRGB.k77();
|
|
718
|
+
var bi = $this$toSRGB.l77();
|
|
664
719
|
var tmp;
|
|
665
|
-
if (ri === gi
|
|
720
|
+
if (ri === gi && gi === bi) {
|
|
666
721
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
667
722
|
} else {
|
|
668
723
|
// Inline function 'kotlin.math.roundToInt' call
|
|
669
|
-
var this_0 = $this$toSRGB.
|
|
724
|
+
var this_0 = $this$toSRGB.v75_1 * 5;
|
|
670
725
|
var tmp$ret$0 = roundToInt(this_0);
|
|
671
726
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
672
727
|
// Inline function 'kotlin.math.roundToInt' call
|
|
673
|
-
var this_1 = $this$toSRGB.
|
|
728
|
+
var this_1 = $this$toSRGB.w75_1 * 5;
|
|
674
729
|
var tmp$ret$1 = roundToInt(this_1);
|
|
675
730
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
676
731
|
// Inline function 'kotlin.math.roundToInt' call
|
|
677
|
-
var this_2 = $this$toSRGB.
|
|
732
|
+
var this_2 = $this$toSRGB.x75_1 * 5;
|
|
678
733
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
679
734
|
}
|
|
680
735
|
var code = tmp;
|
|
681
736
|
return new Ansi256(code);
|
|
682
737
|
};
|
|
683
|
-
protoOf(RGB).
|
|
684
|
-
return this.
|
|
738
|
+
protoOf(RGB).o75 = function () {
|
|
739
|
+
return this.m77(RGBColorSpaces_getInstance().x76_1);
|
|
685
740
|
};
|
|
686
|
-
protoOf(RGB).
|
|
741
|
+
protoOf(RGB).y77 = function (r, g, b, alpha, space) {
|
|
687
742
|
return new RGB(r, g, b, alpha, space);
|
|
688
743
|
};
|
|
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.
|
|
744
|
+
protoOf(RGB).v77 = function (r, g, b, alpha, space, $super) {
|
|
745
|
+
r = r === VOID ? this.v75_1 : r;
|
|
746
|
+
g = g === VOID ? this.w75_1 : g;
|
|
747
|
+
b = b === VOID ? this.x75_1 : b;
|
|
748
|
+
alpha = alpha === VOID ? this.y75_1 : alpha;
|
|
749
|
+
space = space === VOID ? this.z75_1 : space;
|
|
750
|
+
return $super === VOID ? this.y77(r, g, b, alpha, space) : $super.y77.call(this, r, g, b, alpha, space);
|
|
696
751
|
};
|
|
697
752
|
protoOf(RGB).toString = function () {
|
|
698
|
-
return 'RGB(r=' + this.
|
|
753
|
+
return 'RGB(r=' + this.v75_1 + ', g=' + this.w75_1 + ', b=' + this.x75_1 + ', alpha=' + this.y75_1 + ', space=' + toString_0(this.z75_1) + ')';
|
|
699
754
|
};
|
|
700
755
|
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.
|
|
756
|
+
var result = getNumberHashCode(this.v75_1);
|
|
757
|
+
result = imul(result, 31) + getNumberHashCode(this.w75_1) | 0;
|
|
758
|
+
result = imul(result, 31) + getNumberHashCode(this.x75_1) | 0;
|
|
759
|
+
result = imul(result, 31) + getNumberHashCode(this.y75_1) | 0;
|
|
760
|
+
result = imul(result, 31) + hashCode(this.z75_1) | 0;
|
|
706
761
|
return result;
|
|
707
762
|
};
|
|
708
763
|
protoOf(RGB).equals = function (other) {
|
|
@@ -711,15 +766,15 @@
|
|
|
711
766
|
if (!(other instanceof RGB))
|
|
712
767
|
return false;
|
|
713
768
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
714
|
-
if (!equals(this.
|
|
769
|
+
if (!equals(this.v75_1, tmp0_other_with_cast.v75_1))
|
|
715
770
|
return false;
|
|
716
|
-
if (!equals(this.
|
|
771
|
+
if (!equals(this.w75_1, tmp0_other_with_cast.w75_1))
|
|
717
772
|
return false;
|
|
718
|
-
if (!equals(this.
|
|
773
|
+
if (!equals(this.x75_1, tmp0_other_with_cast.x75_1))
|
|
719
774
|
return false;
|
|
720
|
-
if (!equals(this.
|
|
775
|
+
if (!equals(this.y75_1, tmp0_other_with_cast.y75_1))
|
|
721
776
|
return false;
|
|
722
|
-
if (!equals(this.
|
|
777
|
+
if (!equals(this.z75_1, tmp0_other_with_cast.z75_1))
|
|
723
778
|
return false;
|
|
724
779
|
return true;
|
|
725
780
|
};
|
|
@@ -821,18 +876,18 @@
|
|
|
821
876
|
var ACES_AP1_B;
|
|
822
877
|
function RGBColorSpaces() {
|
|
823
878
|
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.
|
|
879
|
+
this.x76_1 = SRGB_getInstance();
|
|
880
|
+
this.y76_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().h75_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
881
|
+
this.z76_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
882
|
+
this.a77_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
883
|
+
this.b77_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
884
|
+
this.c77_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
885
|
+
this.d77_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().h75_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06));
|
|
886
|
+
this.e77_1 = BT2020Space_getInstance();
|
|
887
|
+
this.f77_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().h75_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
888
|
+
this.g77_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
889
|
+
this.h77_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().h75_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
890
|
+
this.i77_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().f75_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
836
891
|
}
|
|
837
892
|
var RGBColorSpaces_instance;
|
|
838
893
|
function RGBColorSpaces_getInstance() {
|
|
@@ -842,29 +897,29 @@
|
|
|
842
897
|
}
|
|
843
898
|
function SRGB() {
|
|
844
899
|
SRGB_instance = this;
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
849
|
-
this.
|
|
850
|
-
this.
|
|
900
|
+
this.h76_1 = 'sRGB';
|
|
901
|
+
this.i76_1 = rectangularComponentInfo('RGB');
|
|
902
|
+
this.j76_1 = Illuminant_getInstance().h75_1;
|
|
903
|
+
this.k76_1 = SRGBTransferFunctions_instance;
|
|
904
|
+
this.l76_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.j76_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B()));
|
|
905
|
+
this.m76_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.l76_1)));
|
|
851
906
|
}
|
|
852
|
-
protoOf(SRGB).
|
|
853
|
-
return this.
|
|
907
|
+
protoOf(SRGB).w76 = function () {
|
|
908
|
+
return this.j76_1;
|
|
854
909
|
};
|
|
855
|
-
protoOf(SRGB).
|
|
856
|
-
return this.
|
|
910
|
+
protoOf(SRGB).t76 = function () {
|
|
911
|
+
return this.k76_1;
|
|
857
912
|
};
|
|
858
|
-
protoOf(SRGB).
|
|
859
|
-
return this.
|
|
913
|
+
protoOf(SRGB).u76 = function () {
|
|
914
|
+
return this.l76_1;
|
|
860
915
|
};
|
|
861
|
-
protoOf(SRGB).
|
|
862
|
-
return this.
|
|
916
|
+
protoOf(SRGB).v76 = function () {
|
|
917
|
+
return this.m76_1;
|
|
863
918
|
};
|
|
864
919
|
protoOf(SRGB).toString = function () {
|
|
865
|
-
return this.
|
|
920
|
+
return this.h76_1;
|
|
866
921
|
};
|
|
867
|
-
protoOf(SRGB).
|
|
922
|
+
protoOf(SRGB).g76 = function (r, g, b, alpha) {
|
|
868
923
|
return new RGB(r, g, b, alpha, this);
|
|
869
924
|
};
|
|
870
925
|
var SRGB_instance;
|
|
@@ -879,30 +934,39 @@
|
|
|
879
934
|
}
|
|
880
935
|
function ACESccTransferFunctions() {
|
|
881
936
|
ACESccTransferFunctions_instance = this;
|
|
882
|
-
this.
|
|
883
|
-
this.
|
|
884
|
-
this.
|
|
937
|
+
this.z77_1 = 3.0517578125E-5;
|
|
938
|
+
this.a78_1 = 1.52587890625E-5;
|
|
939
|
+
this.b78_1 = -0.3013698630136986;
|
|
885
940
|
var tmp = this;
|
|
886
941
|
// Inline function 'kotlin.math.log2' call
|
|
887
|
-
tmp.
|
|
942
|
+
tmp.c78_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
888
943
|
}
|
|
889
|
-
protoOf(ACESccTransferFunctions).
|
|
944
|
+
protoOf(ACESccTransferFunctions).o76 = function (x) {
|
|
890
945
|
var tmp;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
tmp =
|
|
946
|
+
var tmp_0 = x;
|
|
947
|
+
ACESccTransferFunctions_getInstance();
|
|
948
|
+
if (tmp_0 <= -0.3013698630136986) {
|
|
949
|
+
var tmp_1 = spow_0(2.0, x * 17.52 - 9.72);
|
|
950
|
+
ACESccTransferFunctions_getInstance();
|
|
951
|
+
tmp = (tmp_1 - 1.52587890625E-5) * 2.0;
|
|
897
952
|
} else {
|
|
898
|
-
|
|
953
|
+
if (x < this.c78_1) {
|
|
954
|
+
// Inline function 'kotlin.math.pow' call
|
|
955
|
+
var x_0 = x * 17.52 - 9.72;
|
|
956
|
+
tmp = Math.pow(2.0, x_0);
|
|
957
|
+
} else {
|
|
958
|
+
tmp = 65504.0;
|
|
959
|
+
}
|
|
899
960
|
}
|
|
900
961
|
return tmp;
|
|
901
962
|
};
|
|
902
|
-
protoOf(ACESccTransferFunctions).
|
|
963
|
+
protoOf(ACESccTransferFunctions).p76 = function (x) {
|
|
903
964
|
var tmp;
|
|
904
|
-
|
|
965
|
+
var tmp_0 = x;
|
|
966
|
+
ACESccTransferFunctions_getInstance();
|
|
967
|
+
if (tmp_0 < 3.0517578125E-5) {
|
|
905
968
|
// Inline function 'kotlin.math.log2' call
|
|
969
|
+
ACESccTransferFunctions_getInstance();
|
|
906
970
|
var x_0 = 1.52587890625E-5 + coerceAtLeast_0(x, 0.0) / 2.0;
|
|
907
971
|
tmp = (log2(x_0) + 9.72) / 17.52;
|
|
908
972
|
} else {
|
|
@@ -919,17 +983,20 @@
|
|
|
919
983
|
}
|
|
920
984
|
function ACEScctTransferFunctions() {
|
|
921
985
|
ACEScctTransferFunctions_instance = this;
|
|
922
|
-
this.
|
|
923
|
-
this.
|
|
986
|
+
this.d78_1 = 10.5402377416545;
|
|
987
|
+
this.e78_1 = 0.0729055341958355;
|
|
924
988
|
var tmp = this;
|
|
925
989
|
// Inline function 'kotlin.math.log2' call
|
|
926
|
-
tmp.
|
|
990
|
+
tmp.f78_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
927
991
|
}
|
|
928
|
-
protoOf(ACEScctTransferFunctions).
|
|
992
|
+
protoOf(ACEScctTransferFunctions).o76 = function (x) {
|
|
929
993
|
var tmp;
|
|
930
994
|
if (x <= 0.155251141552511) {
|
|
931
|
-
|
|
932
|
-
|
|
995
|
+
ACEScctTransferFunctions_getInstance();
|
|
996
|
+
var tmp_0 = x - 0.0729055341958355;
|
|
997
|
+
ACEScctTransferFunctions_getInstance();
|
|
998
|
+
tmp = tmp_0 / 10.5402377416545;
|
|
999
|
+
} else if (x < this.f78_1) {
|
|
933
1000
|
// Inline function 'kotlin.math.pow' call
|
|
934
1001
|
var x_0 = x * 17.52 - 9.72;
|
|
935
1002
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -938,10 +1005,13 @@
|
|
|
938
1005
|
}
|
|
939
1006
|
return tmp;
|
|
940
1007
|
};
|
|
941
|
-
protoOf(ACEScctTransferFunctions).
|
|
1008
|
+
protoOf(ACEScctTransferFunctions).p76 = function (x) {
|
|
942
1009
|
var tmp;
|
|
943
1010
|
if (x < 0.0078125) {
|
|
944
|
-
|
|
1011
|
+
ACEScctTransferFunctions_getInstance();
|
|
1012
|
+
var tmp_0 = 10.5402377416545 * x;
|
|
1013
|
+
ACEScctTransferFunctions_getInstance();
|
|
1014
|
+
tmp = tmp_0 + 0.0729055341958355;
|
|
945
1015
|
} else {
|
|
946
1016
|
// Inline function 'kotlin.math.log2' call
|
|
947
1017
|
tmp = (log2(x) + 9.72) / 17.52;
|
|
@@ -956,30 +1026,30 @@
|
|
|
956
1026
|
}
|
|
957
1027
|
function BT2020Space() {
|
|
958
1028
|
BT2020Space_instance = this;
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
1029
|
+
this.g78_1 = 'BT.2020';
|
|
1030
|
+
this.h78_1 = rectangularComponentInfo('RGB');
|
|
1031
|
+
this.i78_1 = Illuminant_getInstance().h75_1;
|
|
1032
|
+
this.j78_1 = BT2020TransferFunctions_getInstance();
|
|
1033
|
+
this.k78_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i78_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046)));
|
|
1034
|
+
this.l78_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.k78_1)));
|
|
965
1035
|
}
|
|
966
|
-
protoOf(BT2020Space).
|
|
967
|
-
return this.
|
|
1036
|
+
protoOf(BT2020Space).w76 = function () {
|
|
1037
|
+
return this.i78_1;
|
|
968
1038
|
};
|
|
969
|
-
protoOf(BT2020Space).
|
|
970
|
-
return this.
|
|
1039
|
+
protoOf(BT2020Space).t76 = function () {
|
|
1040
|
+
return this.j78_1;
|
|
971
1041
|
};
|
|
972
|
-
protoOf(BT2020Space).
|
|
1042
|
+
protoOf(BT2020Space).g76 = function (r, g, b, alpha) {
|
|
973
1043
|
return new RGB(r, g, b, alpha, this);
|
|
974
1044
|
};
|
|
975
|
-
protoOf(BT2020Space).
|
|
976
|
-
return this.
|
|
1045
|
+
protoOf(BT2020Space).u76 = function () {
|
|
1046
|
+
return this.k78_1;
|
|
977
1047
|
};
|
|
978
|
-
protoOf(BT2020Space).
|
|
979
|
-
return this.
|
|
1048
|
+
protoOf(BT2020Space).v76 = function () {
|
|
1049
|
+
return this.l78_1;
|
|
980
1050
|
};
|
|
981
1051
|
protoOf(BT2020Space).toString = function () {
|
|
982
|
-
return this.
|
|
1052
|
+
return this.g78_1;
|
|
983
1053
|
};
|
|
984
1054
|
var BT2020Space_instance;
|
|
985
1055
|
function BT2020Space_getInstance() {
|
|
@@ -989,12 +1059,12 @@
|
|
|
989
1059
|
}
|
|
990
1060
|
function BT709TransferFunctions() {
|
|
991
1061
|
BT709TransferFunctions_instance = this;
|
|
992
|
-
this.
|
|
1062
|
+
this.m78_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
993
1063
|
}
|
|
994
|
-
protoOf(BT709TransferFunctions).
|
|
995
|
-
return numberToDouble(x < this.
|
|
1064
|
+
protoOf(BT709TransferFunctions).o76 = function (x) {
|
|
1065
|
+
return numberToDouble(x < this.m78_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
996
1066
|
};
|
|
997
|
-
protoOf(BT709TransferFunctions).
|
|
1067
|
+
protoOf(BT709TransferFunctions).p76 = function (x) {
|
|
998
1068
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
999
1069
|
};
|
|
1000
1070
|
var BT709TransferFunctions_instance;
|
|
@@ -1005,10 +1075,10 @@
|
|
|
1005
1075
|
}
|
|
1006
1076
|
function SRGBTransferFunctions() {
|
|
1007
1077
|
}
|
|
1008
|
-
protoOf(SRGBTransferFunctions).
|
|
1009
|
-
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x,
|
|
1078
|
+
protoOf(SRGBTransferFunctions).p76 = function (x) {
|
|
1079
|
+
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1010
1080
|
};
|
|
1011
|
-
protoOf(SRGBTransferFunctions).
|
|
1081
|
+
protoOf(SRGBTransferFunctions).o76 = function (x) {
|
|
1012
1082
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1013
1083
|
};
|
|
1014
1084
|
var SRGBTransferFunctions_instance;
|
|
@@ -1016,13 +1086,27 @@
|
|
|
1016
1086
|
return SRGBTransferFunctions_instance;
|
|
1017
1087
|
}
|
|
1018
1088
|
function ROMMTransferFunctions() {
|
|
1019
|
-
this.
|
|
1089
|
+
this.n78_1 = 0.001953;
|
|
1020
1090
|
}
|
|
1021
|
-
protoOf(ROMMTransferFunctions).
|
|
1022
|
-
|
|
1091
|
+
protoOf(ROMMTransferFunctions).o76 = function (x) {
|
|
1092
|
+
var tmp;
|
|
1093
|
+
var tmp_0 = x;
|
|
1094
|
+
if (tmp_0 < 16 * 0.001953) {
|
|
1095
|
+
tmp = x / 16.0;
|
|
1096
|
+
} else {
|
|
1097
|
+
tmp = spow(x, 1.8);
|
|
1098
|
+
}
|
|
1099
|
+
return tmp;
|
|
1023
1100
|
};
|
|
1024
|
-
protoOf(ROMMTransferFunctions).
|
|
1025
|
-
|
|
1101
|
+
protoOf(ROMMTransferFunctions).p76 = function (x) {
|
|
1102
|
+
var tmp;
|
|
1103
|
+
var tmp_0 = x;
|
|
1104
|
+
if (tmp_0 < 0.001953) {
|
|
1105
|
+
tmp = x * 16.0;
|
|
1106
|
+
} else {
|
|
1107
|
+
tmp = spow(x, 1.0 / 1.8);
|
|
1108
|
+
}
|
|
1109
|
+
return tmp;
|
|
1026
1110
|
};
|
|
1027
1111
|
var ROMMTransferFunctions_instance;
|
|
1028
1112
|
function ROMMTransferFunctions_getInstance() {
|
|
@@ -1030,13 +1114,13 @@
|
|
|
1030
1114
|
}
|
|
1031
1115
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1032
1116
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1033
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1034
|
-
var wp = whitePoint.
|
|
1117
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.o78_1, g.o78_1, b.o78_1, r.p78_1, g.p78_1, b.p78_1, r.r78(), g.r78(), b.r78());
|
|
1118
|
+
var wp = whitePoint.b75_1;
|
|
1035
1119
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1036
1120
|
var this_0 = inverse(primaries);
|
|
1037
|
-
var v0 = wp.
|
|
1038
|
-
var v1 = wp.
|
|
1039
|
-
var v2 = wp.
|
|
1121
|
+
var v0 = wp.s78();
|
|
1122
|
+
var v1 = wp.q78_1;
|
|
1123
|
+
var v2 = wp.t78();
|
|
1040
1124
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1041
1125
|
var x = Matrix__get_impl_xogbpk(this_0, 0, 0) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 0) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 0) * v2;
|
|
1042
1126
|
var y = Matrix__get_impl_xogbpk(this_0, 0, 1) * v0 + Matrix__get_impl_xogbpk(this_0, 1, 1) * v1 + Matrix__get_impl_xogbpk(this_0, 2, 1) * v2;
|
|
@@ -1044,41 +1128,41 @@
|
|
|
1044
1128
|
return dotDiagonal(primaries, x, y, z);
|
|
1045
1129
|
}
|
|
1046
1130
|
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.
|
|
1131
|
+
this.u78_1 = name;
|
|
1132
|
+
this.v78_1 = whitePoint;
|
|
1133
|
+
this.w78_1 = transferFunctions;
|
|
1134
|
+
this.x78_1 = r;
|
|
1135
|
+
this.y78_1 = g;
|
|
1136
|
+
this.z78_1 = b;
|
|
1137
|
+
this.a79_1 = rectangularComponentInfo('RGB');
|
|
1138
|
+
this.b79_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.v78_1, this.x78_1, this.y78_1, this.z78_1));
|
|
1139
|
+
this.c79_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.b79_1)));
|
|
1056
1140
|
}
|
|
1057
|
-
protoOf(RGBColorSpaceImpl).
|
|
1058
|
-
return this.
|
|
1141
|
+
protoOf(RGBColorSpaceImpl).w76 = function () {
|
|
1142
|
+
return this.v78_1;
|
|
1059
1143
|
};
|
|
1060
|
-
protoOf(RGBColorSpaceImpl).
|
|
1061
|
-
return this.
|
|
1144
|
+
protoOf(RGBColorSpaceImpl).t76 = function () {
|
|
1145
|
+
return this.w78_1;
|
|
1062
1146
|
};
|
|
1063
|
-
protoOf(RGBColorSpaceImpl).
|
|
1064
|
-
return this.
|
|
1147
|
+
protoOf(RGBColorSpaceImpl).u76 = function () {
|
|
1148
|
+
return this.b79_1;
|
|
1065
1149
|
};
|
|
1066
|
-
protoOf(RGBColorSpaceImpl).
|
|
1067
|
-
return this.
|
|
1150
|
+
protoOf(RGBColorSpaceImpl).v76 = function () {
|
|
1151
|
+
return this.c79_1;
|
|
1068
1152
|
};
|
|
1069
1153
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1070
|
-
return this.
|
|
1154
|
+
return this.u78_1;
|
|
1071
1155
|
};
|
|
1072
|
-
protoOf(RGBColorSpaceImpl).
|
|
1156
|
+
protoOf(RGBColorSpaceImpl).g76 = function (r, g, b, alpha) {
|
|
1073
1157
|
return new RGB(r, g, b, alpha, this);
|
|
1074
1158
|
};
|
|
1075
1159
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1076
|
-
var result = getStringHashCode(this.
|
|
1077
|
-
result = imul(result, 31) + this.
|
|
1078
|
-
result = imul(result, 31) + hashCode(this.
|
|
1079
|
-
result = imul(result, 31) + this.
|
|
1080
|
-
result = imul(result, 31) + this.
|
|
1081
|
-
result = imul(result, 31) + this.
|
|
1160
|
+
var result = getStringHashCode(this.u78_1);
|
|
1161
|
+
result = imul(result, 31) + this.v78_1.hashCode() | 0;
|
|
1162
|
+
result = imul(result, 31) + hashCode(this.w78_1) | 0;
|
|
1163
|
+
result = imul(result, 31) + this.x78_1.hashCode() | 0;
|
|
1164
|
+
result = imul(result, 31) + this.y78_1.hashCode() | 0;
|
|
1165
|
+
result = imul(result, 31) + this.z78_1.hashCode() | 0;
|
|
1082
1166
|
return result;
|
|
1083
1167
|
};
|
|
1084
1168
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1087,33 +1171,57 @@
|
|
|
1087
1171
|
if (!(other instanceof RGBColorSpaceImpl))
|
|
1088
1172
|
return false;
|
|
1089
1173
|
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE();
|
|
1090
|
-
if (!(this.
|
|
1174
|
+
if (!(this.u78_1 === tmp0_other_with_cast.u78_1))
|
|
1091
1175
|
return false;
|
|
1092
|
-
if (!this.
|
|
1176
|
+
if (!this.v78_1.equals(tmp0_other_with_cast.v78_1))
|
|
1093
1177
|
return false;
|
|
1094
|
-
if (!equals(this.
|
|
1178
|
+
if (!equals(this.w78_1, tmp0_other_with_cast.w78_1))
|
|
1095
1179
|
return false;
|
|
1096
|
-
if (!this.
|
|
1180
|
+
if (!this.x78_1.equals(tmp0_other_with_cast.x78_1))
|
|
1097
1181
|
return false;
|
|
1098
|
-
if (!this.
|
|
1182
|
+
if (!this.y78_1.equals(tmp0_other_with_cast.y78_1))
|
|
1099
1183
|
return false;
|
|
1100
|
-
if (!this.
|
|
1184
|
+
if (!this.z78_1.equals(tmp0_other_with_cast.z78_1))
|
|
1101
1185
|
return false;
|
|
1102
1186
|
return true;
|
|
1103
1187
|
};
|
|
1104
1188
|
function BT2020TransferFunctions() {
|
|
1105
1189
|
BT2020TransferFunctions_instance = this;
|
|
1106
|
-
this.
|
|
1107
|
-
this.
|
|
1190
|
+
this.d79_1 = 1.0993;
|
|
1191
|
+
this.e79_1 = 0.0181;
|
|
1108
1192
|
var tmp = this;
|
|
1193
|
+
BT2020TransferFunctions_getInstance();
|
|
1109
1194
|
// Inline function 'kotlin.math.pow' call
|
|
1110
|
-
|
|
1195
|
+
BT2020TransferFunctions_getInstance();
|
|
1196
|
+
var tmp_0 = 1.0993 * Math.pow(0.0181, 0.45);
|
|
1197
|
+
BT2020TransferFunctions_getInstance();
|
|
1198
|
+
tmp.f79_1 = tmp_0 - (1.0993 - 1);
|
|
1111
1199
|
}
|
|
1112
|
-
protoOf(BT2020TransferFunctions).
|
|
1113
|
-
|
|
1200
|
+
protoOf(BT2020TransferFunctions).o76 = function (x) {
|
|
1201
|
+
var tmp;
|
|
1202
|
+
if (x < this.f79_1) {
|
|
1203
|
+
tmp = x / 4.5;
|
|
1204
|
+
} else {
|
|
1205
|
+
BT2020TransferFunctions_getInstance();
|
|
1206
|
+
var tmp_0 = x + (1.0993 - 1);
|
|
1207
|
+
BT2020TransferFunctions_getInstance();
|
|
1208
|
+
tmp = spow_0(tmp_0 / 1.0993, 1 / 0.45);
|
|
1209
|
+
}
|
|
1210
|
+
return numberToDouble(tmp);
|
|
1114
1211
|
};
|
|
1115
|
-
protoOf(BT2020TransferFunctions).
|
|
1116
|
-
|
|
1212
|
+
protoOf(BT2020TransferFunctions).p76 = function (x) {
|
|
1213
|
+
var tmp;
|
|
1214
|
+
var tmp_0 = x;
|
|
1215
|
+
BT2020TransferFunctions_getInstance();
|
|
1216
|
+
if (tmp_0 < 0.0181) {
|
|
1217
|
+
tmp = 4.5 * x;
|
|
1218
|
+
} else {
|
|
1219
|
+
BT2020TransferFunctions_getInstance();
|
|
1220
|
+
var tmp_1 = 1.0993 * spow(x, 0.45);
|
|
1221
|
+
BT2020TransferFunctions_getInstance();
|
|
1222
|
+
tmp = tmp_1 - (1.0993 - 1);
|
|
1223
|
+
}
|
|
1224
|
+
return tmp;
|
|
1117
1225
|
};
|
|
1118
1226
|
var BT2020TransferFunctions_instance;
|
|
1119
1227
|
function BT2020TransferFunctions_getInstance() {
|
|
@@ -1139,13 +1247,13 @@
|
|
|
1139
1247
|
}
|
|
1140
1248
|
function Companion_3() {
|
|
1141
1249
|
Companion_instance_3 = this;
|
|
1142
|
-
this.
|
|
1250
|
+
this.g79_1 = XYZColorSpaces_getInstance().h79_1;
|
|
1143
1251
|
}
|
|
1144
|
-
protoOf(Companion_3).
|
|
1145
|
-
return this.
|
|
1252
|
+
protoOf(Companion_3).w76 = function () {
|
|
1253
|
+
return this.g79_1.w76();
|
|
1146
1254
|
};
|
|
1147
|
-
protoOf(Companion_3).
|
|
1148
|
-
return this.
|
|
1255
|
+
protoOf(Companion_3).g76 = function (x, y, z, alpha) {
|
|
1256
|
+
return this.g79_1.g76(x, y, z, alpha);
|
|
1149
1257
|
};
|
|
1150
1258
|
var Companion_instance_3;
|
|
1151
1259
|
function Companion_getInstance_3() {
|
|
@@ -1154,65 +1262,65 @@
|
|
|
1154
1262
|
return Companion_instance_3;
|
|
1155
1263
|
}
|
|
1156
1264
|
function adaptToM($this, space, m, mi) {
|
|
1157
|
-
if (space.
|
|
1265
|
+
if (space.w76().equals($this.s77_1.w76()))
|
|
1158
1266
|
return $this;
|
|
1159
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1267
|
+
var transform = chromaticAdaptationMatrix(space, $this.s77_1.w76().b75_1, m, mi);
|
|
1160
1268
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1161
|
-
var v0 = $this.
|
|
1162
|
-
var v1 = $this.
|
|
1163
|
-
var v2 = $this.
|
|
1269
|
+
var v0 = $this.o77_1;
|
|
1270
|
+
var v1 = $this.p77_1;
|
|
1271
|
+
var v2 = $this.q77_1;
|
|
1164
1272
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1165
1273
|
var xx = Matrix__get_impl_xogbpk(transform, 0, 0) * v0 + Matrix__get_impl_xogbpk(transform, 1, 0) * v1 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1166
1274
|
var yy = Matrix__get_impl_xogbpk(transform, 0, 1) * v0 + Matrix__get_impl_xogbpk(transform, 1, 1) * v1 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1167
1275
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * v0 + Matrix__get_impl_xogbpk(transform, 1, 2) * v1 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1168
|
-
return space.
|
|
1276
|
+
return space.g76(xx, yy, zz, $this.r77_1);
|
|
1169
1277
|
}
|
|
1170
1278
|
function XYZ(x, y, z, alpha, space) {
|
|
1171
1279
|
Companion_getInstance_3();
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
this.
|
|
1280
|
+
this.o77_1 = x;
|
|
1281
|
+
this.p77_1 = y;
|
|
1282
|
+
this.q77_1 = z;
|
|
1283
|
+
this.r77_1 = alpha;
|
|
1284
|
+
this.s77_1 = space;
|
|
1177
1285
|
}
|
|
1178
|
-
protoOf(XYZ).
|
|
1286
|
+
protoOf(XYZ).j79 = function (space) {
|
|
1179
1287
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1180
1288
|
};
|
|
1181
|
-
protoOf(XYZ).
|
|
1182
|
-
var tmp0_container = this.
|
|
1183
|
-
var x = tmp0_container.
|
|
1184
|
-
var y = tmp0_container.
|
|
1185
|
-
var z = tmp0_container.
|
|
1186
|
-
var f = space.
|
|
1289
|
+
protoOf(XYZ).t77 = function (space) {
|
|
1290
|
+
var tmp0_container = this.j79(XYZColorSpace(space.w76()));
|
|
1291
|
+
var x = tmp0_container.xf();
|
|
1292
|
+
var y = tmp0_container.yf();
|
|
1293
|
+
var z = tmp0_container.ok();
|
|
1294
|
+
var f = space.t76();
|
|
1187
1295
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1188
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1296
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.v76());
|
|
1189
1297
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1190
1298
|
var r = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
1191
1299
|
var g = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
1192
1300
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
1193
|
-
return space.
|
|
1301
|
+
return space.g76(f.p76(r), f.p76(g), f.p76(b), this.r77_1);
|
|
1194
1302
|
};
|
|
1195
|
-
protoOf(XYZ).
|
|
1196
|
-
return this.
|
|
1303
|
+
protoOf(XYZ).o75 = function () {
|
|
1304
|
+
return this.t77(RGBColorSpaces_getInstance().x76_1);
|
|
1197
1305
|
};
|
|
1198
|
-
protoOf(XYZ).
|
|
1199
|
-
return this.
|
|
1306
|
+
protoOf(XYZ).xf = function () {
|
|
1307
|
+
return this.o77_1;
|
|
1200
1308
|
};
|
|
1201
|
-
protoOf(XYZ).
|
|
1202
|
-
return this.
|
|
1309
|
+
protoOf(XYZ).yf = function () {
|
|
1310
|
+
return this.p77_1;
|
|
1203
1311
|
};
|
|
1204
|
-
protoOf(XYZ).
|
|
1205
|
-
return this.
|
|
1312
|
+
protoOf(XYZ).ok = function () {
|
|
1313
|
+
return this.q77_1;
|
|
1206
1314
|
};
|
|
1207
1315
|
protoOf(XYZ).toString = function () {
|
|
1208
|
-
return 'XYZ(x=' + this.
|
|
1316
|
+
return 'XYZ(x=' + this.o77_1 + ', y=' + this.p77_1 + ', z=' + this.q77_1 + ', alpha=' + this.r77_1 + ', space=' + toString_0(this.s77_1) + ')';
|
|
1209
1317
|
};
|
|
1210
1318
|
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.
|
|
1319
|
+
var result = getNumberHashCode(this.o77_1);
|
|
1320
|
+
result = imul(result, 31) + getNumberHashCode(this.p77_1) | 0;
|
|
1321
|
+
result = imul(result, 31) + getNumberHashCode(this.q77_1) | 0;
|
|
1322
|
+
result = imul(result, 31) + getNumberHashCode(this.r77_1) | 0;
|
|
1323
|
+
result = imul(result, 31) + hashCode(this.s77_1) | 0;
|
|
1216
1324
|
return result;
|
|
1217
1325
|
};
|
|
1218
1326
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1221,25 +1329,25 @@
|
|
|
1221
1329
|
if (!(other instanceof XYZ))
|
|
1222
1330
|
return false;
|
|
1223
1331
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1224
|
-
if (!equals(this.
|
|
1332
|
+
if (!equals(this.o77_1, tmp0_other_with_cast.o77_1))
|
|
1225
1333
|
return false;
|
|
1226
|
-
if (!equals(this.
|
|
1334
|
+
if (!equals(this.p77_1, tmp0_other_with_cast.p77_1))
|
|
1227
1335
|
return false;
|
|
1228
|
-
if (!equals(this.
|
|
1336
|
+
if (!equals(this.q77_1, tmp0_other_with_cast.q77_1))
|
|
1229
1337
|
return false;
|
|
1230
|
-
if (!equals(this.
|
|
1338
|
+
if (!equals(this.r77_1, tmp0_other_with_cast.r77_1))
|
|
1231
1339
|
return false;
|
|
1232
|
-
if (!equals(this.
|
|
1340
|
+
if (!equals(this.s77_1, tmp0_other_with_cast.s77_1))
|
|
1233
1341
|
return false;
|
|
1234
1342
|
return true;
|
|
1235
1343
|
};
|
|
1236
1344
|
function XYZColorSpace(whitePoint) {
|
|
1237
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1345
|
+
return whitePoint.equals(Illuminant_getInstance().h75_1) ? XYZColorSpaces_getInstance().h79_1 : whitePoint.equals(Illuminant_getInstance().f75_1) ? XYZColorSpaces_getInstance().i79_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1238
1346
|
}
|
|
1239
1347
|
function XYZColorSpaces() {
|
|
1240
1348
|
XYZColorSpaces_instance = this;
|
|
1241
|
-
this.
|
|
1242
|
-
this.
|
|
1349
|
+
this.h79_1 = new XYZColorSpaceImpl(Illuminant_getInstance().h75_1);
|
|
1350
|
+
this.i79_1 = new XYZColorSpaceImpl(Illuminant_getInstance().f75_1);
|
|
1243
1351
|
}
|
|
1244
1352
|
var XYZColorSpaces_instance;
|
|
1245
1353
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1250,26 +1358,26 @@
|
|
|
1250
1358
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1251
1359
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1252
1360
|
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.
|
|
1361
|
+
var dstWp = _this__u8e3s4.w76().b75_1;
|
|
1362
|
+
var src = dot_0(xyzToLms, srcWp.s78(), srcWp.q78_1, srcWp.t78());
|
|
1363
|
+
var dst = dot_0(xyzToLms, dstWp.s78(), dstWp.q78_1, dstWp.t78());
|
|
1256
1364
|
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms);
|
|
1257
1365
|
}
|
|
1258
1366
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1367
|
+
this.k79_1 = whitePoint;
|
|
1368
|
+
this.l79_1 = rectangularComponentInfo('XYZ');
|
|
1261
1369
|
}
|
|
1262
|
-
protoOf(XYZColorSpaceImpl).
|
|
1263
|
-
return this.
|
|
1370
|
+
protoOf(XYZColorSpaceImpl).w76 = function () {
|
|
1371
|
+
return this.k79_1;
|
|
1264
1372
|
};
|
|
1265
1373
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1266
|
-
return 'XYZColorSpace(' + this.
|
|
1374
|
+
return 'XYZColorSpace(' + this.k79_1.toString() + ')';
|
|
1267
1375
|
};
|
|
1268
|
-
protoOf(XYZColorSpaceImpl).
|
|
1376
|
+
protoOf(XYZColorSpaceImpl).g76 = function (x, y, z, alpha) {
|
|
1269
1377
|
return new XYZ(x, y, z, alpha, this);
|
|
1270
1378
|
};
|
|
1271
1379
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1272
|
-
return this.
|
|
1380
|
+
return this.k79_1.hashCode();
|
|
1273
1381
|
};
|
|
1274
1382
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1275
1383
|
if (this === other)
|
|
@@ -1277,7 +1385,7 @@
|
|
|
1277
1385
|
if (!(other instanceof XYZColorSpaceImpl))
|
|
1278
1386
|
return false;
|
|
1279
1387
|
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE();
|
|
1280
|
-
if (!this.
|
|
1388
|
+
if (!this.k79_1.equals(tmp0_other_with_cast.k79_1))
|
|
1281
1389
|
return false;
|
|
1282
1390
|
return true;
|
|
1283
1391
|
};
|
|
@@ -1291,26 +1399,26 @@
|
|
|
1291
1399
|
}
|
|
1292
1400
|
function xyY(x, y, Y) {
|
|
1293
1401
|
Y = Y === VOID ? 1.0 : Y;
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1402
|
+
this.o78_1 = x;
|
|
1403
|
+
this.p78_1 = y;
|
|
1404
|
+
this.q78_1 = Y;
|
|
1297
1405
|
}
|
|
1298
|
-
protoOf(xyY).
|
|
1299
|
-
return 1 - this.
|
|
1406
|
+
protoOf(xyY).r78 = function () {
|
|
1407
|
+
return 1 - this.o78_1 - this.p78_1;
|
|
1300
1408
|
};
|
|
1301
|
-
protoOf(xyY).
|
|
1302
|
-
return this.
|
|
1409
|
+
protoOf(xyY).s78 = function () {
|
|
1410
|
+
return this.o78_1 * this.q78_1 / this.p78_1;
|
|
1303
1411
|
};
|
|
1304
|
-
protoOf(xyY).
|
|
1305
|
-
return (1 - this.
|
|
1412
|
+
protoOf(xyY).t78 = function () {
|
|
1413
|
+
return (1 - this.o78_1 - this.p78_1) * this.q78_1 / this.p78_1;
|
|
1306
1414
|
};
|
|
1307
1415
|
protoOf(xyY).toString = function () {
|
|
1308
|
-
return 'xyY(x=' + this.
|
|
1416
|
+
return 'xyY(x=' + this.o78_1 + ', y=' + this.p78_1 + ', Y=' + this.q78_1 + ')';
|
|
1309
1417
|
};
|
|
1310
1418
|
protoOf(xyY).hashCode = function () {
|
|
1311
|
-
var result = getNumberHashCode(this.
|
|
1312
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1313
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1419
|
+
var result = getNumberHashCode(this.o78_1);
|
|
1420
|
+
result = imul(result, 31) + getNumberHashCode(this.p78_1) | 0;
|
|
1421
|
+
result = imul(result, 31) + getNumberHashCode(this.q78_1) | 0;
|
|
1314
1422
|
return result;
|
|
1315
1423
|
};
|
|
1316
1424
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1319,36 +1427,36 @@
|
|
|
1319
1427
|
if (!(other instanceof xyY))
|
|
1320
1428
|
return false;
|
|
1321
1429
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1322
|
-
if (!equals(this.
|
|
1430
|
+
if (!equals(this.o78_1, tmp0_other_with_cast.o78_1))
|
|
1323
1431
|
return false;
|
|
1324
|
-
if (!equals(this.
|
|
1432
|
+
if (!equals(this.p78_1, tmp0_other_with_cast.p78_1))
|
|
1325
1433
|
return false;
|
|
1326
|
-
if (!equals(this.
|
|
1434
|
+
if (!equals(this.q78_1, tmp0_other_with_cast.q78_1))
|
|
1327
1435
|
return false;
|
|
1328
1436
|
return true;
|
|
1329
1437
|
};
|
|
1330
1438
|
//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).
|
|
1439
|
+
protoOf(Companion_2).q75 = from255$default;
|
|
1440
|
+
protoOf(Companion_2).p75 = invoke$default;
|
|
1441
|
+
protoOf(Companion_2).u75 = invoke$default_0;
|
|
1442
|
+
protoOf(SRGB).p75 = invoke$default;
|
|
1443
|
+
protoOf(SRGB).q76 = invoke;
|
|
1444
|
+
protoOf(SRGB).u75 = invoke$default_0;
|
|
1445
|
+
protoOf(SRGB).s76 = invoke_0;
|
|
1446
|
+
protoOf(SRGB).r76 = from255;
|
|
1447
|
+
protoOf(SRGB).q75 = from255$default;
|
|
1448
|
+
protoOf(BT2020Space).p75 = invoke$default;
|
|
1449
|
+
protoOf(BT2020Space).q76 = invoke;
|
|
1450
|
+
protoOf(BT2020Space).u75 = invoke$default_0;
|
|
1451
|
+
protoOf(BT2020Space).s76 = invoke_0;
|
|
1452
|
+
protoOf(BT2020Space).r76 = from255;
|
|
1453
|
+
protoOf(BT2020Space).q75 = from255$default;
|
|
1454
|
+
protoOf(RGBColorSpaceImpl).p75 = invoke$default;
|
|
1455
|
+
protoOf(RGBColorSpaceImpl).q76 = invoke;
|
|
1456
|
+
protoOf(RGBColorSpaceImpl).u75 = invoke$default_0;
|
|
1457
|
+
protoOf(RGBColorSpaceImpl).s76 = invoke_0;
|
|
1458
|
+
protoOf(RGBColorSpaceImpl).r76 = from255;
|
|
1459
|
+
protoOf(RGBColorSpaceImpl).q75 = from255$default;
|
|
1352
1460
|
//endregion
|
|
1353
1461
|
//region block: init
|
|
1354
1462
|
LinearTransferFunctions_instance = new LinearTransferFunctions();
|