@flock/wirespec 0.9.23 → 0.9.24
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/arrow-arrow-annotations.js +1 -1
- package/arrow-arrow-atomic.js +17 -18
- package/arrow-arrow-atomic.js.map +1 -1
- package/arrow-arrow-continuations.js +4 -4
- package/arrow-arrow-core.js +96 -99
- package/arrow-arrow-core.js.map +1 -1
- package/clikt-clikt.js +2045 -2060
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +552 -444
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +7794 -7837
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/{kotlin-kotlin-test-kotlin-test-js-ir.js → kotlin-kotlin-test.js} +3 -3
- package/kotlin-openapi-bindings.js +5331 -5326
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +2051 -2052
- package/kotlin-rgxgen.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +2151 -2187
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1571 -1731
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
- package/markdown.js +2308 -2317
- package/markdown.js.map +1 -1
- package/mordant-mordant.js +2405 -2492
- package/mordant-mordant.js.map +1 -1
- package/package.json +2 -2
- package/resources-library.js +1 -1
- package/wirespec-src-compiler-core.js +2578 -2457
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +706 -600
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +1494 -1477
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +127 -124
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +236 -231
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.d.ts +24 -7
- package/wirespec-src-plugin-npm.js +71 -71
- package/wirespec-src-plugin-npm.js.map +1 -1
- package/wirespec-src-tools-generator.js +176 -181
- package/wirespec-src-tools-generator.js.map +1 -1
- /package/{kotlin-kotlin-test-kotlin-test-js-ir.js.map → kotlin-kotlin-test.js.map} +0 -0
|
@@ -9,17 +9,16 @@
|
|
|
9
9
|
}
|
|
10
10
|
root['colormath-root-colormath'] = factory(typeof this['colormath-root-colormath'] === 'undefined' ? {} : this['colormath-root-colormath'], this['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(globalThis, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var log2 = Math.log2;
|
|
17
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var objectMeta = kotlin_kotlin.$_$.pa;
|
|
17
|
+
var protoOf = kotlin_kotlin.$_$.ta;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.u9;
|
|
19
|
+
var getStringHashCode = kotlin_kotlin.$_$.s9;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.af;
|
|
21
|
+
var initMetadataForObject = kotlin_kotlin.$_$.z9;
|
|
23
22
|
var charSequenceLength = kotlin_kotlin.$_$.j9;
|
|
24
23
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
25
24
|
var charSequenceGet = kotlin_kotlin.$_$.i9;
|
|
@@ -32,56 +31,60 @@
|
|
|
32
31
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.h5;
|
|
33
32
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
34
33
|
var listOf = kotlin_kotlin.$_$.f7;
|
|
35
|
-
var withSign = kotlin_kotlin.$_$.
|
|
34
|
+
var withSign = kotlin_kotlin.$_$.za;
|
|
35
|
+
var trimMargin = kotlin_kotlin.$_$.ee;
|
|
36
|
+
var hashCode = kotlin_kotlin.$_$.t9;
|
|
37
|
+
var equals = kotlin_kotlin.$_$.n9;
|
|
36
38
|
var VOID = kotlin_kotlin.$_$.g;
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
39
|
+
var toString_0 = kotlin_kotlin.$_$.xa;
|
|
40
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.v9;
|
|
41
|
+
var coerceAtLeast = kotlin_kotlin.$_$.cb;
|
|
42
|
+
var getNumberHashCode = kotlin_kotlin.$_$.q9;
|
|
43
|
+
var numberToDouble = kotlin_kotlin.$_$.qa;
|
|
44
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.x9;
|
|
45
|
+
var roundToInt = kotlin_kotlin.$_$.ya;
|
|
46
|
+
var coerceIn = kotlin_kotlin.$_$.gb;
|
|
44
47
|
var DoubleCompanionObject_instance = kotlin_kotlin.$_$.s3;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var slice = kotlin_kotlin.$_$.ed;
|
|
50
|
-
var toString_0 = kotlin_kotlin.$_$.va;
|
|
48
|
+
var Char = kotlin_kotlin.$_$.ke;
|
|
49
|
+
var toInt = kotlin_kotlin.$_$.ud;
|
|
50
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.oa;
|
|
51
|
+
var slice = kotlin_kotlin.$_$.gd;
|
|
51
52
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
52
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
53
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
54
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
53
|
+
var startsWith = kotlin_kotlin.$_$.jd;
|
|
54
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.eb;
|
|
55
|
+
var objectCreate = kotlin_kotlin.$_$.sa;
|
|
55
56
|
//endregion
|
|
56
57
|
//region block: pre-declaration
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
59
|
+
initMetadataForClass(WhitePoint, 'WhitePoint');
|
|
60
|
+
initMetadataForObject(Illuminant, 'Illuminant');
|
|
61
|
+
initMetadataForClass(Matrix, 'Matrix');
|
|
62
|
+
initMetadataForClass(Vector, 'Vector');
|
|
63
|
+
initMetadataForCompanion(Companion);
|
|
64
|
+
initMetadataForClass(Ansi16, 'Ansi16');
|
|
65
|
+
initMetadataForCompanion(Companion_0);
|
|
66
|
+
initMetadataForClass(Ansi256, 'Ansi256');
|
|
67
|
+
initMetadataForCompanion(Companion_1);
|
|
68
|
+
initMetadataForClass(HSV, 'HSV');
|
|
69
|
+
initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
|
|
70
|
+
initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
|
|
68
71
|
function invoke$default(r, g, b, alpha, $super) {
|
|
69
72
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
70
|
-
return $super === VOID ? this.
|
|
73
|
+
return $super === VOID ? this.c35(r, g, b, alpha) : $super.c35.call(this, r, g, b, alpha);
|
|
71
74
|
}
|
|
72
75
|
function invoke(r, g, b, alpha) {
|
|
73
|
-
return this.
|
|
76
|
+
return this.c35(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
74
77
|
}
|
|
75
78
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
76
79
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
77
|
-
return $super === VOID ? this.
|
|
80
|
+
return $super === VOID ? this.m35(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
78
81
|
}
|
|
79
82
|
function from255(r, g, b, alpha) {
|
|
80
|
-
return this.
|
|
83
|
+
return this.c35(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
81
84
|
}
|
|
82
85
|
function from255$default(r, g, b, alpha, $super) {
|
|
83
86
|
alpha = alpha === VOID ? 255 : alpha;
|
|
84
|
-
return $super === VOID ? this.
|
|
87
|
+
return $super === VOID ? this.n35(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
85
88
|
}
|
|
86
89
|
function invoke_0(hex) {
|
|
87
90
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -92,46 +95,46 @@
|
|
|
92
95
|
// Inline function 'kotlin.contracts.contract' call
|
|
93
96
|
// Inline function 'com.github.ajalt.colormath.model.RGBColorSpace.invoke.<anonymous>' call
|
|
94
97
|
var it = get_hexLength(hex);
|
|
95
|
-
if (it === 4
|
|
98
|
+
if (it === 4 || it === 8) {
|
|
96
99
|
tmp_2 = parseHex(hex, 3);
|
|
97
100
|
} else {
|
|
98
101
|
tmp_2 = 255;
|
|
99
102
|
}
|
|
100
|
-
return this.
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
103
|
+
return this.n35(tmp, tmp_0, tmp_1, tmp_2);
|
|
104
|
+
}
|
|
105
|
+
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
106
|
+
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
107
|
+
initMetadataForClass(RGB, 'RGB');
|
|
108
|
+
initMetadataForObject(RGBColorSpaces, 'RGBColorSpaces');
|
|
109
|
+
initMetadataForObject(SRGB, 'SRGB', VOID, VOID, [RGBColorSpace]);
|
|
110
|
+
initMetadataForObject(ACESccTransferFunctions, 'ACESccTransferFunctions');
|
|
111
|
+
initMetadataForObject(ACEScctTransferFunctions, 'ACEScctTransferFunctions');
|
|
112
|
+
initMetadataForObject(BT2020Space, 'BT2020Space', VOID, VOID, [RGBColorSpace]);
|
|
113
|
+
initMetadataForObject(BT709TransferFunctions, 'BT709TransferFunctions');
|
|
114
|
+
initMetadataForObject(SRGBTransferFunctions, 'SRGBTransferFunctions');
|
|
115
|
+
initMetadataForObject(ROMMTransferFunctions, 'ROMMTransferFunctions');
|
|
116
|
+
initMetadataForClass(RGBColorSpaceImpl, 'RGBColorSpaceImpl', VOID, VOID, [RGBColorSpace]);
|
|
117
|
+
initMetadataForObject(BT2020TransferFunctions, 'BT2020TransferFunctions');
|
|
118
|
+
initMetadataForCompanion(Companion_3);
|
|
119
|
+
initMetadataForClass(XYZ, 'XYZ');
|
|
120
|
+
initMetadataForObject(XYZColorSpaces, 'XYZColorSpaces');
|
|
121
|
+
initMetadataForClass(XYZColorSpaceImpl, 'XYZColorSpaceImpl');
|
|
122
|
+
initMetadataForClass(xyY, 'xyY');
|
|
120
123
|
//endregion
|
|
121
124
|
function ColorComponentInfo(name, isPolar) {
|
|
122
|
-
this.
|
|
123
|
-
this.
|
|
125
|
+
this.u33_1 = name;
|
|
126
|
+
this.v33_1 = isPolar;
|
|
124
127
|
}
|
|
125
128
|
function WhitePoint(name, chromaticity) {
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
129
|
+
this.w33_1 = name;
|
|
130
|
+
this.x33_1 = chromaticity;
|
|
128
131
|
}
|
|
129
132
|
protoOf(WhitePoint).toString = function () {
|
|
130
|
-
return this.
|
|
133
|
+
return this.w33_1;
|
|
131
134
|
};
|
|
132
135
|
protoOf(WhitePoint).hashCode = function () {
|
|
133
|
-
var result = getStringHashCode(this.
|
|
134
|
-
result = imul(result, 31) + this.
|
|
136
|
+
var result = getStringHashCode(this.w33_1);
|
|
137
|
+
result = imul(result, 31) + this.x33_1.hashCode() | 0;
|
|
135
138
|
return result;
|
|
136
139
|
};
|
|
137
140
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -140,22 +143,22 @@
|
|
|
140
143
|
if (!(other instanceof WhitePoint))
|
|
141
144
|
return false;
|
|
142
145
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
143
|
-
if (!(this.
|
|
146
|
+
if (!(this.w33_1 === tmp0_other_with_cast.w33_1))
|
|
144
147
|
return false;
|
|
145
|
-
if (!this.
|
|
148
|
+
if (!this.x33_1.equals(tmp0_other_with_cast.x33_1))
|
|
146
149
|
return false;
|
|
147
150
|
return true;
|
|
148
151
|
};
|
|
149
152
|
function Illuminant() {
|
|
150
153
|
Illuminant_instance = this;
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
154
|
+
this.y33_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
155
|
+
this.z33_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
156
|
+
this.a34_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
157
|
+
this.b34_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
158
|
+
this.c34_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
159
|
+
this.d34_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
160
|
+
this.e34_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
161
|
+
this.f34_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
159
162
|
}
|
|
160
163
|
var Illuminant_instance;
|
|
161
164
|
function Illuminant_getInstance() {
|
|
@@ -174,7 +177,7 @@
|
|
|
174
177
|
inductionVariable = inductionVariable + 1 | 0;
|
|
175
178
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
176
179
|
var tmp$ret$0 = toString(item);
|
|
177
|
-
destination.
|
|
180
|
+
destination.e(tmp$ret$0);
|
|
178
181
|
}
|
|
179
182
|
var tmp$ret$3 = copyToArray(destination);
|
|
180
183
|
return rectangularComponentInfo_0(tmp$ret$3.slice());
|
|
@@ -189,7 +192,7 @@
|
|
|
189
192
|
inductionVariable = inductionVariable + 1 | 0;
|
|
190
193
|
// Inline function 'com.github.ajalt.colormath.internal.polarComponentInfo.<anonymous>' call
|
|
191
194
|
var tmp$ret$0 = new ColorComponentInfo(toString(item), item === _Char___init__impl__6a9atx(72));
|
|
192
|
-
destination.
|
|
195
|
+
destination.e(tmp$ret$0);
|
|
193
196
|
}
|
|
194
197
|
return plus(destination, new ColorComponentInfo('alpha', false));
|
|
195
198
|
}
|
|
@@ -198,12 +201,12 @@
|
|
|
198
201
|
var this_0 = plus(asList(names), 'alpha');
|
|
199
202
|
// Inline function 'kotlin.collections.mapTo' call
|
|
200
203
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
201
|
-
var tmp0_iterator = this_0.
|
|
202
|
-
while (tmp0_iterator.
|
|
203
|
-
var item = tmp0_iterator.
|
|
204
|
+
var tmp0_iterator = this_0.g();
|
|
205
|
+
while (tmp0_iterator.h()) {
|
|
206
|
+
var item = tmp0_iterator.i();
|
|
204
207
|
// Inline function 'com.github.ajalt.colormath.internal.rectangularComponentInfo.<anonymous>' call
|
|
205
208
|
var tmp$ret$0 = new ColorComponentInfo(item, false);
|
|
206
|
-
destination.
|
|
209
|
+
destination.e(tmp$ret$0);
|
|
207
210
|
}
|
|
208
211
|
return destination;
|
|
209
212
|
}
|
|
@@ -270,6 +273,32 @@
|
|
|
270
273
|
function Matrix__set_impl_s2l54c_0($this, x, y, value) {
|
|
271
274
|
return Matrix__set_impl_s2l54c($this, x, y, value);
|
|
272
275
|
}
|
|
276
|
+
function Matrix__toString_impl_l0abk0($this) {
|
|
277
|
+
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 ');
|
|
278
|
+
}
|
|
279
|
+
function Matrix__hashCode_impl_s9ntm9($this) {
|
|
280
|
+
return hashCode($this);
|
|
281
|
+
}
|
|
282
|
+
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
283
|
+
if (!(other instanceof Matrix))
|
|
284
|
+
return false;
|
|
285
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.g34_1 : THROW_CCE();
|
|
286
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
287
|
+
return false;
|
|
288
|
+
return true;
|
|
289
|
+
}
|
|
290
|
+
function Matrix(rowMajor) {
|
|
291
|
+
this.g34_1 = rowMajor;
|
|
292
|
+
}
|
|
293
|
+
protoOf(Matrix).toString = function () {
|
|
294
|
+
return Matrix__toString_impl_l0abk0(this.g34_1);
|
|
295
|
+
};
|
|
296
|
+
protoOf(Matrix).hashCode = function () {
|
|
297
|
+
return Matrix__hashCode_impl_s9ntm9(this.g34_1);
|
|
298
|
+
};
|
|
299
|
+
protoOf(Matrix).equals = function (other) {
|
|
300
|
+
return Matrix__equals_impl_g5p8p9(this.g34_1, other);
|
|
301
|
+
};
|
|
273
302
|
function inverse(_this__u8e3s4, inPlace) {
|
|
274
303
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
275
304
|
var a = Matrix__get_impl_xogbpk(_this__u8e3s4, 0, 0);
|
|
@@ -323,6 +352,32 @@
|
|
|
323
352
|
function _Vector___get_s__impl__pzuljk($this) {
|
|
324
353
|
return _Vector___get_values__impl__3gdbp5($this)[2];
|
|
325
354
|
}
|
|
355
|
+
function Vector__toString_impl_hn2ybi($this) {
|
|
356
|
+
return 'Vector(values=' + toString_0($this) + ')';
|
|
357
|
+
}
|
|
358
|
+
function Vector__hashCode_impl_442yhd($this) {
|
|
359
|
+
return hashCode($this);
|
|
360
|
+
}
|
|
361
|
+
function Vector__equals_impl_hy6igl($this, other) {
|
|
362
|
+
if (!(other instanceof Vector))
|
|
363
|
+
return false;
|
|
364
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.h34_1 : THROW_CCE();
|
|
365
|
+
if (!equals($this, tmp0_other_with_cast))
|
|
366
|
+
return false;
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
function Vector(values) {
|
|
370
|
+
this.h34_1 = values;
|
|
371
|
+
}
|
|
372
|
+
protoOf(Vector).toString = function () {
|
|
373
|
+
return Vector__toString_impl_hn2ybi(this.h34_1);
|
|
374
|
+
};
|
|
375
|
+
protoOf(Vector).hashCode = function () {
|
|
376
|
+
return Vector__hashCode_impl_442yhd(this.h34_1);
|
|
377
|
+
};
|
|
378
|
+
protoOf(Vector).equals = function (other) {
|
|
379
|
+
return Vector__equals_impl_hy6igl(this.h34_1, other);
|
|
380
|
+
};
|
|
326
381
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
327
382
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
328
383
|
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);
|
|
@@ -332,7 +387,7 @@
|
|
|
332
387
|
}
|
|
333
388
|
function Companion() {
|
|
334
389
|
Companion_instance = this;
|
|
335
|
-
this.
|
|
390
|
+
this.i34_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
336
391
|
}
|
|
337
392
|
var Companion_instance;
|
|
338
393
|
function Companion_getInstance() {
|
|
@@ -342,35 +397,35 @@
|
|
|
342
397
|
}
|
|
343
398
|
function Ansi16(code) {
|
|
344
399
|
Companion_getInstance();
|
|
345
|
-
this.
|
|
400
|
+
this.j34_1 = code;
|
|
346
401
|
}
|
|
347
|
-
protoOf(Ansi16).
|
|
348
|
-
switch (this.
|
|
402
|
+
protoOf(Ansi16).k34 = function () {
|
|
403
|
+
switch (this.j34_1) {
|
|
349
404
|
case 30:
|
|
350
405
|
case 40:
|
|
351
|
-
return Companion_getInstance_2().
|
|
406
|
+
return Companion_getInstance_2().l34(0.0, 0.0, 0.0);
|
|
352
407
|
case 90:
|
|
353
408
|
case 100:
|
|
354
|
-
return Companion_getInstance_2().
|
|
409
|
+
return Companion_getInstance_2().m34(128, 128, 128);
|
|
355
410
|
case 37:
|
|
356
411
|
case 47:
|
|
357
|
-
return Companion_getInstance_2().
|
|
412
|
+
return Companion_getInstance_2().m34(192, 192, 192);
|
|
358
413
|
case 97:
|
|
359
414
|
case 107:
|
|
360
|
-
return Companion_getInstance_2().
|
|
415
|
+
return Companion_getInstance_2().l34(1.0, 1.0, 1.0);
|
|
361
416
|
}
|
|
362
|
-
var color = this.
|
|
363
|
-
var mul = this.
|
|
417
|
+
var color = this.j34_1 % 10 | 0;
|
|
418
|
+
var mul = this.j34_1 > 50 ? 1.0 : 0.5;
|
|
364
419
|
var r = (color % 2 | 0) * mul;
|
|
365
420
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
366
421
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
367
|
-
return Companion_getInstance_2().
|
|
422
|
+
return Companion_getInstance_2().l34(r, g, b);
|
|
368
423
|
};
|
|
369
424
|
protoOf(Ansi16).toString = function () {
|
|
370
|
-
return 'Ansi16(code=' + this.
|
|
425
|
+
return 'Ansi16(code=' + this.j34_1 + ')';
|
|
371
426
|
};
|
|
372
427
|
protoOf(Ansi16).hashCode = function () {
|
|
373
|
-
return this.
|
|
428
|
+
return this.j34_1;
|
|
374
429
|
};
|
|
375
430
|
protoOf(Ansi16).equals = function (other) {
|
|
376
431
|
if (this === other)
|
|
@@ -378,13 +433,13 @@
|
|
|
378
433
|
if (!(other instanceof Ansi16))
|
|
379
434
|
return false;
|
|
380
435
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
381
|
-
if (!(this.
|
|
436
|
+
if (!(this.j34_1 === tmp0_other_with_cast.j34_1))
|
|
382
437
|
return false;
|
|
383
438
|
return true;
|
|
384
439
|
};
|
|
385
440
|
function Companion_0() {
|
|
386
441
|
Companion_instance_0 = this;
|
|
387
|
-
this.
|
|
442
|
+
this.n34_1 = componentInfoList([new ColorComponentInfo('code', false)]);
|
|
388
443
|
}
|
|
389
444
|
var Companion_instance_0;
|
|
390
445
|
function Companion_getInstance_0() {
|
|
@@ -394,16 +449,16 @@
|
|
|
394
449
|
}
|
|
395
450
|
function Ansi256(code) {
|
|
396
451
|
Companion_getInstance_0();
|
|
397
|
-
this.
|
|
398
|
-
}
|
|
399
|
-
protoOf(Ansi256).
|
|
400
|
-
if (this.
|
|
401
|
-
return this.
|
|
402
|
-
if (this.
|
|
403
|
-
var c = imul(this.
|
|
404
|
-
return Companion_getInstance_2().
|
|
452
|
+
this.o34_1 = code;
|
|
453
|
+
}
|
|
454
|
+
protoOf(Ansi256).k34 = function () {
|
|
455
|
+
if (this.o34_1 < 16)
|
|
456
|
+
return this.p34().k34();
|
|
457
|
+
if (this.o34_1 >= 232) {
|
|
458
|
+
var c = imul(this.o34_1 - 232 | 0, 10) + 8 | 0;
|
|
459
|
+
return Companion_getInstance_2().m34(c, c, c);
|
|
405
460
|
}
|
|
406
|
-
var c_0 = this.
|
|
461
|
+
var c_0 = this.o34_1 - 16 | 0;
|
|
407
462
|
var rem = c_0 % 36 | 0;
|
|
408
463
|
// Inline function 'kotlin.math.floor' call
|
|
409
464
|
var x = c_0 / 36.0;
|
|
@@ -412,16 +467,16 @@
|
|
|
412
467
|
var x_0 = rem / 6.0;
|
|
413
468
|
var g = Math.floor(x_0) / 5.0;
|
|
414
469
|
var b = (rem % 6 | 0) / 5.0;
|
|
415
|
-
return Companion_getInstance_2().
|
|
470
|
+
return Companion_getInstance_2().q34(r, g, b);
|
|
416
471
|
};
|
|
417
|
-
protoOf(Ansi256).
|
|
418
|
-
return this.
|
|
472
|
+
protoOf(Ansi256).p34 = function () {
|
|
473
|
+
return this.o34_1 < 8 ? new Ansi16(this.o34_1 + 30 | 0) : this.o34_1 < 16 ? new Ansi16((this.o34_1 - 8 | 0) + 90 | 0) : this.k34().p34();
|
|
419
474
|
};
|
|
420
475
|
protoOf(Ansi256).toString = function () {
|
|
421
|
-
return 'Ansi256(code=' + this.
|
|
476
|
+
return 'Ansi256(code=' + this.o34_1 + ')';
|
|
422
477
|
};
|
|
423
478
|
protoOf(Ansi256).hashCode = function () {
|
|
424
|
-
return this.
|
|
479
|
+
return this.o34_1;
|
|
425
480
|
};
|
|
426
481
|
protoOf(Ansi256).equals = function (other) {
|
|
427
482
|
if (this === other)
|
|
@@ -429,13 +484,13 @@
|
|
|
429
484
|
if (!(other instanceof Ansi256))
|
|
430
485
|
return false;
|
|
431
486
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
432
|
-
if (!(this.
|
|
487
|
+
if (!(this.o34_1 === tmp0_other_with_cast.o34_1))
|
|
433
488
|
return false;
|
|
434
489
|
return true;
|
|
435
490
|
};
|
|
436
491
|
function Companion_1() {
|
|
437
492
|
Companion_instance_1 = this;
|
|
438
|
-
this.
|
|
493
|
+
this.w34_1 = polarComponentInfo('HSV');
|
|
439
494
|
}
|
|
440
495
|
var Companion_instance_1;
|
|
441
496
|
function Companion_getInstance_1() {
|
|
@@ -454,27 +509,27 @@
|
|
|
454
509
|
function HSV(h, s, v, alpha) {
|
|
455
510
|
Companion_getInstance_1();
|
|
456
511
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
457
|
-
this.
|
|
458
|
-
this.
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
}
|
|
462
|
-
protoOf(HSV).
|
|
463
|
-
if (this.
|
|
464
|
-
return Companion_getInstance_2().
|
|
465
|
-
var v = this.
|
|
466
|
-
var h = normalizeDeg_0(this.
|
|
467
|
-
var s = this.
|
|
468
|
-
return SRGB_getInstance().
|
|
512
|
+
this.x34_1 = h;
|
|
513
|
+
this.y34_1 = s;
|
|
514
|
+
this.z34_1 = v;
|
|
515
|
+
this.a35_1 = alpha;
|
|
516
|
+
}
|
|
517
|
+
protoOf(HSV).k34 = function () {
|
|
518
|
+
if (this.y34_1 < 1.0E-7)
|
|
519
|
+
return Companion_getInstance_2().c35(this.z34_1, this.z34_1, this.z34_1, this.a35_1);
|
|
520
|
+
var v = this.z34_1;
|
|
521
|
+
var h = normalizeDeg_0(this.x34_1) / 60.0;
|
|
522
|
+
var s = this.y34_1;
|
|
523
|
+
return SRGB_getInstance().c35(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.a35_1);
|
|
469
524
|
};
|
|
470
525
|
protoOf(HSV).toString = function () {
|
|
471
|
-
return 'HSV(h=' + this.
|
|
526
|
+
return 'HSV(h=' + this.x34_1 + ', s=' + this.y34_1 + ', v=' + this.z34_1 + ', alpha=' + this.a35_1 + ')';
|
|
472
527
|
};
|
|
473
528
|
protoOf(HSV).hashCode = function () {
|
|
474
|
-
var result = getNumberHashCode(this.
|
|
475
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
476
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
477
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
529
|
+
var result = getNumberHashCode(this.x34_1);
|
|
530
|
+
result = imul(result, 31) + getNumberHashCode(this.y34_1) | 0;
|
|
531
|
+
result = imul(result, 31) + getNumberHashCode(this.z34_1) | 0;
|
|
532
|
+
result = imul(result, 31) + getNumberHashCode(this.a35_1) | 0;
|
|
478
533
|
return result;
|
|
479
534
|
};
|
|
480
535
|
protoOf(HSV).equals = function (other) {
|
|
@@ -483,30 +538,30 @@
|
|
|
483
538
|
if (!(other instanceof HSV))
|
|
484
539
|
return false;
|
|
485
540
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
486
|
-
if (!equals(this.
|
|
541
|
+
if (!equals(this.x34_1, tmp0_other_with_cast.x34_1))
|
|
487
542
|
return false;
|
|
488
|
-
if (!equals(this.
|
|
543
|
+
if (!equals(this.y34_1, tmp0_other_with_cast.y34_1))
|
|
489
544
|
return false;
|
|
490
|
-
if (!equals(this.
|
|
545
|
+
if (!equals(this.z34_1, tmp0_other_with_cast.z34_1))
|
|
491
546
|
return false;
|
|
492
|
-
if (!equals(this.
|
|
547
|
+
if (!equals(this.a35_1, tmp0_other_with_cast.a35_1))
|
|
493
548
|
return false;
|
|
494
549
|
return true;
|
|
495
550
|
};
|
|
496
551
|
function GammaTransferFunctions(gamma) {
|
|
497
|
-
this.
|
|
552
|
+
this.j35_1 = gamma;
|
|
498
553
|
}
|
|
499
|
-
protoOf(GammaTransferFunctions).
|
|
500
|
-
return spow(x, this.
|
|
554
|
+
protoOf(GammaTransferFunctions).k35 = function (x) {
|
|
555
|
+
return spow(x, this.j35_1);
|
|
501
556
|
};
|
|
502
|
-
protoOf(GammaTransferFunctions).
|
|
503
|
-
return spow(x, 1.0 / this.
|
|
557
|
+
protoOf(GammaTransferFunctions).l35 = function (x) {
|
|
558
|
+
return spow(x, 1.0 / this.j35_1);
|
|
504
559
|
};
|
|
505
560
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
506
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
561
|
+
return 'GammaTransferFunctions(gamma=' + this.j35_1 + ')';
|
|
507
562
|
};
|
|
508
563
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
509
|
-
return getNumberHashCode(this.
|
|
564
|
+
return getNumberHashCode(this.j35_1);
|
|
510
565
|
};
|
|
511
566
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
512
567
|
if (this === other)
|
|
@@ -514,16 +569,16 @@
|
|
|
514
569
|
if (!(other instanceof GammaTransferFunctions))
|
|
515
570
|
return false;
|
|
516
571
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
517
|
-
if (!equals(this.
|
|
572
|
+
if (!equals(this.j35_1, tmp0_other_with_cast.j35_1))
|
|
518
573
|
return false;
|
|
519
574
|
return true;
|
|
520
575
|
};
|
|
521
576
|
function LinearTransferFunctions() {
|
|
522
577
|
}
|
|
523
|
-
protoOf(LinearTransferFunctions).
|
|
578
|
+
protoOf(LinearTransferFunctions).k35 = function (x) {
|
|
524
579
|
return x;
|
|
525
580
|
};
|
|
526
|
-
protoOf(LinearTransferFunctions).
|
|
581
|
+
protoOf(LinearTransferFunctions).l35 = function (x) {
|
|
527
582
|
return x;
|
|
528
583
|
};
|
|
529
584
|
var LinearTransferFunctions_instance;
|
|
@@ -534,31 +589,31 @@
|
|
|
534
589
|
}
|
|
535
590
|
function Companion_2() {
|
|
536
591
|
Companion_instance_2 = this;
|
|
537
|
-
this.
|
|
592
|
+
this.b35_1 = RGBColorSpaces_getInstance().s35_1;
|
|
538
593
|
}
|
|
539
|
-
protoOf(Companion_2).
|
|
540
|
-
return this.
|
|
594
|
+
protoOf(Companion_2).q35 = function () {
|
|
595
|
+
return this.b35_1.q35();
|
|
541
596
|
};
|
|
542
|
-
protoOf(Companion_2).
|
|
543
|
-
return this.
|
|
597
|
+
protoOf(Companion_2).p35 = function () {
|
|
598
|
+
return this.b35_1.p35();
|
|
544
599
|
};
|
|
545
|
-
protoOf(Companion_2).
|
|
546
|
-
return this.
|
|
600
|
+
protoOf(Companion_2).o35 = function () {
|
|
601
|
+
return this.b35_1.o35();
|
|
547
602
|
};
|
|
548
|
-
protoOf(Companion_2).
|
|
549
|
-
return this.
|
|
603
|
+
protoOf(Companion_2).r35 = function () {
|
|
604
|
+
return this.b35_1.r35();
|
|
550
605
|
};
|
|
551
|
-
protoOf(Companion_2).
|
|
552
|
-
return this.
|
|
606
|
+
protoOf(Companion_2).n35 = function (r, g, b, alpha) {
|
|
607
|
+
return this.b35_1.n35(r, g, b, alpha);
|
|
553
608
|
};
|
|
554
|
-
protoOf(Companion_2).
|
|
555
|
-
return this.
|
|
609
|
+
protoOf(Companion_2).c35 = function (r, g, b, alpha) {
|
|
610
|
+
return this.b35_1.c35(r, g, b, alpha);
|
|
556
611
|
};
|
|
557
|
-
protoOf(Companion_2).
|
|
558
|
-
return this.
|
|
612
|
+
protoOf(Companion_2).m35 = function (r, g, b, alpha) {
|
|
613
|
+
return this.b35_1.m35(r, g, b, alpha);
|
|
559
614
|
};
|
|
560
|
-
protoOf(Companion_2).
|
|
561
|
-
return this.
|
|
615
|
+
protoOf(Companion_2).q29 = function (hex) {
|
|
616
|
+
return this.b35_1.q29(hex);
|
|
562
617
|
};
|
|
563
618
|
var Companion_instance_2;
|
|
564
619
|
function Companion_getInstance_2() {
|
|
@@ -568,43 +623,43 @@
|
|
|
568
623
|
}
|
|
569
624
|
function RGB(r, g, b, alpha, space) {
|
|
570
625
|
Companion_getInstance_2();
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
626
|
+
this.r34_1 = r;
|
|
627
|
+
this.s34_1 = g;
|
|
628
|
+
this.t34_1 = b;
|
|
629
|
+
this.u34_1 = alpha;
|
|
630
|
+
this.v34_1 = space;
|
|
576
631
|
}
|
|
577
|
-
protoOf(RGB).
|
|
632
|
+
protoOf(RGB).e36 = function () {
|
|
578
633
|
// Inline function 'kotlin.math.roundToInt' call
|
|
579
|
-
var this_0 = this.
|
|
634
|
+
var this_0 = this.r34_1 * 255;
|
|
580
635
|
return roundToInt(this_0);
|
|
581
636
|
};
|
|
582
|
-
protoOf(RGB).
|
|
637
|
+
protoOf(RGB).f36 = function () {
|
|
583
638
|
// Inline function 'kotlin.math.roundToInt' call
|
|
584
|
-
var this_0 = this.
|
|
639
|
+
var this_0 = this.s34_1 * 255;
|
|
585
640
|
return roundToInt(this_0);
|
|
586
641
|
};
|
|
587
|
-
protoOf(RGB).
|
|
642
|
+
protoOf(RGB).g36 = function () {
|
|
588
643
|
// Inline function 'kotlin.math.roundToInt' call
|
|
589
|
-
var this_0 = this.
|
|
644
|
+
var this_0 = this.t34_1 * 255;
|
|
590
645
|
return roundToInt(this_0);
|
|
591
646
|
};
|
|
592
|
-
protoOf(RGB).
|
|
593
|
-
var f = SRGB_getInstance().
|
|
594
|
-
return equals(this.
|
|
647
|
+
protoOf(RGB).h36 = function (space) {
|
|
648
|
+
var f = SRGB_getInstance().g35_1;
|
|
649
|
+
return equals(this.v34_1, space) ? this : equals(this.v34_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().t35_1) ? space.c35(f.k35(this.r34_1), f.k35(this.s34_1), f.k35(this.t34_1), this.u34_1) : equals(this.v34_1, RGBColorSpaces_getInstance().t35_1) && equals(space, SRGB_getInstance()) ? space.c35(f.l35(this.r34_1), f.l35(this.s34_1), f.l35(this.t34_1), this.u34_1) : this.i36().o36(space);
|
|
595
650
|
};
|
|
596
|
-
protoOf(RGB).
|
|
597
|
-
return this.
|
|
651
|
+
protoOf(RGB).p36 = function () {
|
|
652
|
+
return this.q36(coerceIn(this.r34_1, 0.0, 1.0), coerceIn(this.s34_1, 0.0, 1.0), coerceIn(this.t34_1, 0.0, 1.0), coerceIn(this.u34_1, 0.0, 1.0));
|
|
598
653
|
};
|
|
599
|
-
protoOf(RGB).
|
|
654
|
+
protoOf(RGB).r36 = function () {
|
|
600
655
|
var tmp$ret$3;
|
|
601
656
|
$l$block: {
|
|
602
657
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
603
658
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
604
|
-
var $this$toSRGB = this.
|
|
605
|
-
var r = $this$toSRGB.
|
|
606
|
-
var g = $this$toSRGB.
|
|
607
|
-
var b = $this$toSRGB.
|
|
659
|
+
var $this$toSRGB = this.h36(SRGB_getInstance());
|
|
660
|
+
var r = $this$toSRGB.r34_1;
|
|
661
|
+
var g = $this$toSRGB.s34_1;
|
|
662
|
+
var b = $this$toSRGB.t34_1;
|
|
608
663
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
609
664
|
var min = Math.min(r, g, b);
|
|
610
665
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -626,94 +681,94 @@
|
|
|
626
681
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toHSV.<anonymous>' call
|
|
627
682
|
var h_0 = normalizeDeg(h);
|
|
628
683
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
629
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
684
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.u34_1);
|
|
630
685
|
break $l$block;
|
|
631
686
|
}
|
|
632
687
|
return tmp$ret$3;
|
|
633
688
|
};
|
|
634
|
-
protoOf(RGB).
|
|
635
|
-
var f = this.
|
|
689
|
+
protoOf(RGB).i36 = function () {
|
|
690
|
+
var f = this.v34_1.o35();
|
|
636
691
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
637
|
-
var this_0 = _Matrix___init__impl__q3kp4w(this.
|
|
638
|
-
var v0 = f.
|
|
639
|
-
var v1 = f.
|
|
640
|
-
var v2 = f.
|
|
692
|
+
var this_0 = _Matrix___init__impl__q3kp4w(this.v34_1.p35());
|
|
693
|
+
var v0 = f.k35(this.r34_1);
|
|
694
|
+
var v1 = f.k35(this.s34_1);
|
|
695
|
+
var v2 = f.k35(this.t34_1);
|
|
641
696
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call
|
|
642
697
|
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;
|
|
643
698
|
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;
|
|
644
699
|
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;
|
|
645
|
-
return XYZColorSpace(this.
|
|
700
|
+
return XYZColorSpace(this.v34_1.r35()).c35(x, y, z, this.u34_1);
|
|
646
701
|
};
|
|
647
|
-
protoOf(RGB).
|
|
702
|
+
protoOf(RGB).p34 = function () {
|
|
648
703
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
649
|
-
var $this$toSRGB = this.
|
|
704
|
+
var $this$toSRGB = this.h36(SRGB_getInstance());
|
|
650
705
|
// Inline function 'kotlin.math.roundToInt' call
|
|
651
|
-
var this_0 = $this$toSRGB.
|
|
706
|
+
var this_0 = $this$toSRGB.r36().z34_1 * 100;
|
|
652
707
|
var value = roundToInt(this_0);
|
|
653
708
|
if (value === 30)
|
|
654
709
|
return new Ansi16(30);
|
|
655
710
|
var v = value / 50 | 0;
|
|
656
711
|
// Inline function 'kotlin.math.roundToInt' call
|
|
657
|
-
var this_1 = $this$toSRGB.
|
|
712
|
+
var this_1 = $this$toSRGB.t34_1;
|
|
658
713
|
var tmp$ret$1 = roundToInt(this_1);
|
|
659
714
|
var tmp = imul(tmp$ret$1, 4);
|
|
660
715
|
// Inline function 'kotlin.math.roundToInt' call
|
|
661
|
-
var this_2 = $this$toSRGB.
|
|
716
|
+
var this_2 = $this$toSRGB.s34_1;
|
|
662
717
|
var tmp$ret$2 = roundToInt(this_2);
|
|
663
718
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
664
719
|
// Inline function 'kotlin.math.roundToInt' call
|
|
665
|
-
var this_3 = $this$toSRGB.
|
|
720
|
+
var this_3 = $this$toSRGB.r34_1;
|
|
666
721
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
667
722
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
668
723
|
};
|
|
669
|
-
protoOf(RGB).
|
|
724
|
+
protoOf(RGB).s36 = function () {
|
|
670
725
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
671
|
-
var $this$toSRGB = this.
|
|
672
|
-
var ri = $this$toSRGB.
|
|
673
|
-
var gi = $this$toSRGB.
|
|
674
|
-
var bi = $this$toSRGB.
|
|
726
|
+
var $this$toSRGB = this.h36(SRGB_getInstance());
|
|
727
|
+
var ri = $this$toSRGB.e36();
|
|
728
|
+
var gi = $this$toSRGB.f36();
|
|
729
|
+
var bi = $this$toSRGB.g36();
|
|
675
730
|
var tmp;
|
|
676
|
-
if (ri === gi
|
|
731
|
+
if (ri === gi && gi === bi) {
|
|
677
732
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
678
733
|
} else {
|
|
679
734
|
// Inline function 'kotlin.math.roundToInt' call
|
|
680
|
-
var this_0 = $this$toSRGB.
|
|
735
|
+
var this_0 = $this$toSRGB.r34_1 * 5;
|
|
681
736
|
var tmp$ret$0 = roundToInt(this_0);
|
|
682
737
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
683
738
|
// Inline function 'kotlin.math.roundToInt' call
|
|
684
|
-
var this_1 = $this$toSRGB.
|
|
739
|
+
var this_1 = $this$toSRGB.s34_1 * 5;
|
|
685
740
|
var tmp$ret$1 = roundToInt(this_1);
|
|
686
741
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
687
742
|
// Inline function 'kotlin.math.roundToInt' call
|
|
688
|
-
var this_2 = $this$toSRGB.
|
|
743
|
+
var this_2 = $this$toSRGB.t34_1 * 5;
|
|
689
744
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
690
745
|
}
|
|
691
746
|
var code = tmp;
|
|
692
747
|
return new Ansi256(code);
|
|
693
748
|
};
|
|
694
|
-
protoOf(RGB).
|
|
695
|
-
return this.
|
|
749
|
+
protoOf(RGB).k34 = function () {
|
|
750
|
+
return this.h36(RGBColorSpaces_getInstance().s35_1);
|
|
696
751
|
};
|
|
697
|
-
protoOf(RGB).
|
|
752
|
+
protoOf(RGB).t36 = function (r, g, b, alpha, space) {
|
|
698
753
|
return new RGB(r, g, b, alpha, space);
|
|
699
754
|
};
|
|
700
|
-
protoOf(RGB).
|
|
701
|
-
r = r === VOID ? this.
|
|
702
|
-
g = g === VOID ? this.
|
|
703
|
-
b = b === VOID ? this.
|
|
704
|
-
alpha = alpha === VOID ? this.
|
|
705
|
-
space = space === VOID ? this.
|
|
706
|
-
return $super === VOID ? this.
|
|
755
|
+
protoOf(RGB).q36 = function (r, g, b, alpha, space, $super) {
|
|
756
|
+
r = r === VOID ? this.r34_1 : r;
|
|
757
|
+
g = g === VOID ? this.s34_1 : g;
|
|
758
|
+
b = b === VOID ? this.t34_1 : b;
|
|
759
|
+
alpha = alpha === VOID ? this.u34_1 : alpha;
|
|
760
|
+
space = space === VOID ? this.v34_1 : space;
|
|
761
|
+
return $super === VOID ? this.t36(r, g, b, alpha, space) : $super.t36.call(this, r, g, b, alpha, space);
|
|
707
762
|
};
|
|
708
763
|
protoOf(RGB).toString = function () {
|
|
709
|
-
return 'RGB(r=' + this.
|
|
764
|
+
return 'RGB(r=' + this.r34_1 + ', g=' + this.s34_1 + ', b=' + this.t34_1 + ', alpha=' + this.u34_1 + ', space=' + toString_0(this.v34_1) + ')';
|
|
710
765
|
};
|
|
711
766
|
protoOf(RGB).hashCode = function () {
|
|
712
|
-
var result = getNumberHashCode(this.
|
|
713
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
714
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
715
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
716
|
-
result = imul(result, 31) + hashCode(this.
|
|
767
|
+
var result = getNumberHashCode(this.r34_1);
|
|
768
|
+
result = imul(result, 31) + getNumberHashCode(this.s34_1) | 0;
|
|
769
|
+
result = imul(result, 31) + getNumberHashCode(this.t34_1) | 0;
|
|
770
|
+
result = imul(result, 31) + getNumberHashCode(this.u34_1) | 0;
|
|
771
|
+
result = imul(result, 31) + hashCode(this.v34_1) | 0;
|
|
717
772
|
return result;
|
|
718
773
|
};
|
|
719
774
|
protoOf(RGB).equals = function (other) {
|
|
@@ -722,15 +777,15 @@
|
|
|
722
777
|
if (!(other instanceof RGB))
|
|
723
778
|
return false;
|
|
724
779
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
725
|
-
if (!equals(this.
|
|
780
|
+
if (!equals(this.r34_1, tmp0_other_with_cast.r34_1))
|
|
726
781
|
return false;
|
|
727
|
-
if (!equals(this.
|
|
782
|
+
if (!equals(this.s34_1, tmp0_other_with_cast.s34_1))
|
|
728
783
|
return false;
|
|
729
|
-
if (!equals(this.
|
|
784
|
+
if (!equals(this.t34_1, tmp0_other_with_cast.t34_1))
|
|
730
785
|
return false;
|
|
731
|
-
if (!equals(this.
|
|
786
|
+
if (!equals(this.u34_1, tmp0_other_with_cast.u34_1))
|
|
732
787
|
return false;
|
|
733
|
-
if (!equals(this.
|
|
788
|
+
if (!equals(this.v34_1, tmp0_other_with_cast.v34_1))
|
|
734
789
|
return false;
|
|
735
790
|
return true;
|
|
736
791
|
};
|
|
@@ -832,18 +887,18 @@
|
|
|
832
887
|
var ACES_AP1_B;
|
|
833
888
|
function RGBColorSpaces() {
|
|
834
889
|
RGBColorSpaces_instance = this;
|
|
835
|
-
this.
|
|
836
|
-
this.
|
|
837
|
-
this.
|
|
838
|
-
this.
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
843
|
-
this.
|
|
844
|
-
this.
|
|
845
|
-
this.
|
|
846
|
-
this.
|
|
890
|
+
this.s35_1 = SRGB_getInstance();
|
|
891
|
+
this.t35_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().d34_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
892
|
+
this.u35_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
893
|
+
this.v35_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
894
|
+
this.w35_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
895
|
+
this.x35_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
896
|
+
this.y35_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().d34_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));
|
|
897
|
+
this.z35_1 = BT2020Space_getInstance();
|
|
898
|
+
this.a36_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().d34_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
899
|
+
this.b36_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));
|
|
900
|
+
this.c36_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().d34_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
901
|
+
this.d36_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().b34_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));
|
|
847
902
|
}
|
|
848
903
|
var RGBColorSpaces_instance;
|
|
849
904
|
function RGBColorSpaces_getInstance() {
|
|
@@ -853,29 +908,29 @@
|
|
|
853
908
|
}
|
|
854
909
|
function SRGB() {
|
|
855
910
|
SRGB_instance = this;
|
|
856
|
-
this.
|
|
857
|
-
this.
|
|
858
|
-
this.
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
861
|
-
this.
|
|
911
|
+
this.d35_1 = 'sRGB';
|
|
912
|
+
this.e35_1 = rectangularComponentInfo('RGB');
|
|
913
|
+
this.f35_1 = Illuminant_getInstance().d34_1;
|
|
914
|
+
this.g35_1 = SRGBTransferFunctions_instance;
|
|
915
|
+
this.h35_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.f35_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B()));
|
|
916
|
+
this.i35_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.h35_1)));
|
|
862
917
|
}
|
|
863
|
-
protoOf(SRGB).
|
|
864
|
-
return this.
|
|
918
|
+
protoOf(SRGB).r35 = function () {
|
|
919
|
+
return this.f35_1;
|
|
865
920
|
};
|
|
866
|
-
protoOf(SRGB).
|
|
867
|
-
return this.
|
|
921
|
+
protoOf(SRGB).o35 = function () {
|
|
922
|
+
return this.g35_1;
|
|
868
923
|
};
|
|
869
|
-
protoOf(SRGB).
|
|
870
|
-
return this.
|
|
924
|
+
protoOf(SRGB).p35 = function () {
|
|
925
|
+
return this.h35_1;
|
|
871
926
|
};
|
|
872
|
-
protoOf(SRGB).
|
|
873
|
-
return this.
|
|
927
|
+
protoOf(SRGB).q35 = function () {
|
|
928
|
+
return this.i35_1;
|
|
874
929
|
};
|
|
875
930
|
protoOf(SRGB).toString = function () {
|
|
876
|
-
return this.
|
|
931
|
+
return this.d35_1;
|
|
877
932
|
};
|
|
878
|
-
protoOf(SRGB).
|
|
933
|
+
protoOf(SRGB).c35 = function (r, g, b, alpha) {
|
|
879
934
|
return new RGB(r, g, b, alpha, this);
|
|
880
935
|
};
|
|
881
936
|
var SRGB_instance;
|
|
@@ -890,30 +945,39 @@
|
|
|
890
945
|
}
|
|
891
946
|
function ACESccTransferFunctions() {
|
|
892
947
|
ACESccTransferFunctions_instance = this;
|
|
893
|
-
this.
|
|
894
|
-
this.
|
|
895
|
-
this.
|
|
948
|
+
this.u36_1 = 3.0517578125E-5;
|
|
949
|
+
this.v36_1 = 1.52587890625E-5;
|
|
950
|
+
this.w36_1 = -0.3013698630136986;
|
|
896
951
|
var tmp = this;
|
|
897
952
|
// Inline function 'kotlin.math.log2' call
|
|
898
|
-
tmp.
|
|
953
|
+
tmp.x36_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
899
954
|
}
|
|
900
|
-
protoOf(ACESccTransferFunctions).
|
|
955
|
+
protoOf(ACESccTransferFunctions).k35 = function (x) {
|
|
901
956
|
var tmp;
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
tmp =
|
|
957
|
+
var tmp_0 = x;
|
|
958
|
+
ACESccTransferFunctions_getInstance();
|
|
959
|
+
if (tmp_0 <= -0.3013698630136986) {
|
|
960
|
+
var tmp_1 = spow_0(2.0, x * 17.52 - 9.72);
|
|
961
|
+
ACESccTransferFunctions_getInstance();
|
|
962
|
+
tmp = (tmp_1 - 1.52587890625E-5) * 2.0;
|
|
908
963
|
} else {
|
|
909
|
-
|
|
964
|
+
if (x < this.x36_1) {
|
|
965
|
+
// Inline function 'kotlin.math.pow' call
|
|
966
|
+
var x_0 = x * 17.52 - 9.72;
|
|
967
|
+
tmp = Math.pow(2.0, x_0);
|
|
968
|
+
} else {
|
|
969
|
+
tmp = 65504.0;
|
|
970
|
+
}
|
|
910
971
|
}
|
|
911
972
|
return tmp;
|
|
912
973
|
};
|
|
913
|
-
protoOf(ACESccTransferFunctions).
|
|
974
|
+
protoOf(ACESccTransferFunctions).l35 = function (x) {
|
|
914
975
|
var tmp;
|
|
915
|
-
|
|
976
|
+
var tmp_0 = x;
|
|
977
|
+
ACESccTransferFunctions_getInstance();
|
|
978
|
+
if (tmp_0 < 3.0517578125E-5) {
|
|
916
979
|
// Inline function 'kotlin.math.log2' call
|
|
980
|
+
ACESccTransferFunctions_getInstance();
|
|
917
981
|
var x_0 = 1.52587890625E-5 + coerceAtLeast_0(x, 0.0) / 2.0;
|
|
918
982
|
tmp = (log2(x_0) + 9.72) / 17.52;
|
|
919
983
|
} else {
|
|
@@ -930,17 +994,20 @@
|
|
|
930
994
|
}
|
|
931
995
|
function ACEScctTransferFunctions() {
|
|
932
996
|
ACEScctTransferFunctions_instance = this;
|
|
933
|
-
this.
|
|
934
|
-
this.
|
|
997
|
+
this.y36_1 = 10.5402377416545;
|
|
998
|
+
this.z36_1 = 0.0729055341958355;
|
|
935
999
|
var tmp = this;
|
|
936
1000
|
// Inline function 'kotlin.math.log2' call
|
|
937
|
-
tmp.
|
|
1001
|
+
tmp.a37_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
938
1002
|
}
|
|
939
|
-
protoOf(ACEScctTransferFunctions).
|
|
1003
|
+
protoOf(ACEScctTransferFunctions).k35 = function (x) {
|
|
940
1004
|
var tmp;
|
|
941
1005
|
if (x <= 0.155251141552511) {
|
|
942
|
-
|
|
943
|
-
|
|
1006
|
+
ACEScctTransferFunctions_getInstance();
|
|
1007
|
+
var tmp_0 = x - 0.0729055341958355;
|
|
1008
|
+
ACEScctTransferFunctions_getInstance();
|
|
1009
|
+
tmp = tmp_0 / 10.5402377416545;
|
|
1010
|
+
} else if (x < this.a37_1) {
|
|
944
1011
|
// Inline function 'kotlin.math.pow' call
|
|
945
1012
|
var x_0 = x * 17.52 - 9.72;
|
|
946
1013
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -949,10 +1016,13 @@
|
|
|
949
1016
|
}
|
|
950
1017
|
return tmp;
|
|
951
1018
|
};
|
|
952
|
-
protoOf(ACEScctTransferFunctions).
|
|
1019
|
+
protoOf(ACEScctTransferFunctions).l35 = function (x) {
|
|
953
1020
|
var tmp;
|
|
954
1021
|
if (x < 0.0078125) {
|
|
955
|
-
|
|
1022
|
+
ACEScctTransferFunctions_getInstance();
|
|
1023
|
+
var tmp_0 = 10.5402377416545 * x;
|
|
1024
|
+
ACEScctTransferFunctions_getInstance();
|
|
1025
|
+
tmp = tmp_0 + 0.0729055341958355;
|
|
956
1026
|
} else {
|
|
957
1027
|
// Inline function 'kotlin.math.log2' call
|
|
958
1028
|
tmp = (log2(x) + 9.72) / 17.52;
|
|
@@ -967,30 +1037,30 @@
|
|
|
967
1037
|
}
|
|
968
1038
|
function BT2020Space() {
|
|
969
1039
|
BT2020Space_instance = this;
|
|
970
|
-
this.
|
|
971
|
-
this.
|
|
972
|
-
this.
|
|
973
|
-
this.
|
|
974
|
-
this.
|
|
975
|
-
this.
|
|
1040
|
+
this.b37_1 = 'BT.2020';
|
|
1041
|
+
this.c37_1 = rectangularComponentInfo('RGB');
|
|
1042
|
+
this.d37_1 = Illuminant_getInstance().d34_1;
|
|
1043
|
+
this.e37_1 = BT2020TransferFunctions_getInstance();
|
|
1044
|
+
this.f37_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.d37_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046)));
|
|
1045
|
+
this.g37_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.f37_1)));
|
|
976
1046
|
}
|
|
977
|
-
protoOf(BT2020Space).
|
|
978
|
-
return this.
|
|
1047
|
+
protoOf(BT2020Space).r35 = function () {
|
|
1048
|
+
return this.d37_1;
|
|
979
1049
|
};
|
|
980
|
-
protoOf(BT2020Space).
|
|
981
|
-
return this.
|
|
1050
|
+
protoOf(BT2020Space).o35 = function () {
|
|
1051
|
+
return this.e37_1;
|
|
982
1052
|
};
|
|
983
|
-
protoOf(BT2020Space).
|
|
1053
|
+
protoOf(BT2020Space).c35 = function (r, g, b, alpha) {
|
|
984
1054
|
return new RGB(r, g, b, alpha, this);
|
|
985
1055
|
};
|
|
986
|
-
protoOf(BT2020Space).
|
|
987
|
-
return this.
|
|
1056
|
+
protoOf(BT2020Space).p35 = function () {
|
|
1057
|
+
return this.f37_1;
|
|
988
1058
|
};
|
|
989
|
-
protoOf(BT2020Space).
|
|
990
|
-
return this.
|
|
1059
|
+
protoOf(BT2020Space).q35 = function () {
|
|
1060
|
+
return this.g37_1;
|
|
991
1061
|
};
|
|
992
1062
|
protoOf(BT2020Space).toString = function () {
|
|
993
|
-
return this.
|
|
1063
|
+
return this.b37_1;
|
|
994
1064
|
};
|
|
995
1065
|
var BT2020Space_instance;
|
|
996
1066
|
function BT2020Space_getInstance() {
|
|
@@ -1000,12 +1070,12 @@
|
|
|
1000
1070
|
}
|
|
1001
1071
|
function BT709TransferFunctions() {
|
|
1002
1072
|
BT709TransferFunctions_instance = this;
|
|
1003
|
-
this.
|
|
1073
|
+
this.h37_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1004
1074
|
}
|
|
1005
|
-
protoOf(BT709TransferFunctions).
|
|
1006
|
-
return numberToDouble(x < this.
|
|
1075
|
+
protoOf(BT709TransferFunctions).k35 = function (x) {
|
|
1076
|
+
return numberToDouble(x < this.h37_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1007
1077
|
};
|
|
1008
|
-
protoOf(BT709TransferFunctions).
|
|
1078
|
+
protoOf(BT709TransferFunctions).l35 = function (x) {
|
|
1009
1079
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1010
1080
|
};
|
|
1011
1081
|
var BT709TransferFunctions_instance;
|
|
@@ -1016,10 +1086,10 @@
|
|
|
1016
1086
|
}
|
|
1017
1087
|
function SRGBTransferFunctions() {
|
|
1018
1088
|
}
|
|
1019
|
-
protoOf(SRGBTransferFunctions).
|
|
1020
|
-
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x,
|
|
1089
|
+
protoOf(SRGBTransferFunctions).l35 = function (x) {
|
|
1090
|
+
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1021
1091
|
};
|
|
1022
|
-
protoOf(SRGBTransferFunctions).
|
|
1092
|
+
protoOf(SRGBTransferFunctions).k35 = function (x) {
|
|
1023
1093
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1024
1094
|
};
|
|
1025
1095
|
var SRGBTransferFunctions_instance;
|
|
@@ -1027,13 +1097,27 @@
|
|
|
1027
1097
|
return SRGBTransferFunctions_instance;
|
|
1028
1098
|
}
|
|
1029
1099
|
function ROMMTransferFunctions() {
|
|
1030
|
-
this.
|
|
1100
|
+
this.i37_1 = 0.001953;
|
|
1031
1101
|
}
|
|
1032
|
-
protoOf(ROMMTransferFunctions).
|
|
1033
|
-
|
|
1102
|
+
protoOf(ROMMTransferFunctions).k35 = function (x) {
|
|
1103
|
+
var tmp;
|
|
1104
|
+
var tmp_0 = x;
|
|
1105
|
+
if (tmp_0 < 16 * 0.001953) {
|
|
1106
|
+
tmp = x / 16.0;
|
|
1107
|
+
} else {
|
|
1108
|
+
tmp = spow(x, 1.8);
|
|
1109
|
+
}
|
|
1110
|
+
return tmp;
|
|
1034
1111
|
};
|
|
1035
|
-
protoOf(ROMMTransferFunctions).
|
|
1036
|
-
|
|
1112
|
+
protoOf(ROMMTransferFunctions).l35 = function (x) {
|
|
1113
|
+
var tmp;
|
|
1114
|
+
var tmp_0 = x;
|
|
1115
|
+
if (tmp_0 < 0.001953) {
|
|
1116
|
+
tmp = x * 16.0;
|
|
1117
|
+
} else {
|
|
1118
|
+
tmp = spow(x, 1.0 / 1.8);
|
|
1119
|
+
}
|
|
1120
|
+
return tmp;
|
|
1037
1121
|
};
|
|
1038
1122
|
var ROMMTransferFunctions_instance;
|
|
1039
1123
|
function ROMMTransferFunctions_getInstance() {
|
|
@@ -1041,13 +1125,13 @@
|
|
|
1041
1125
|
}
|
|
1042
1126
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1043
1127
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1044
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1045
|
-
var wp = whitePoint.
|
|
1128
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.j37_1, g.j37_1, b.j37_1, r.k37_1, g.k37_1, b.k37_1, r.m37(), g.m37(), b.m37());
|
|
1129
|
+
var wp = whitePoint.x33_1;
|
|
1046
1130
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1047
1131
|
var this_0 = inverse(primaries);
|
|
1048
|
-
var v0 = wp.
|
|
1049
|
-
var v1 = wp.
|
|
1050
|
-
var v2 = wp.
|
|
1132
|
+
var v0 = wp.n37();
|
|
1133
|
+
var v1 = wp.l37_1;
|
|
1134
|
+
var v2 = wp.o37();
|
|
1051
1135
|
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call
|
|
1052
1136
|
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;
|
|
1053
1137
|
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;
|
|
@@ -1055,41 +1139,41 @@
|
|
|
1055
1139
|
return dotDiagonal(primaries, x, y, z);
|
|
1056
1140
|
}
|
|
1057
1141
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b) {
|
|
1058
|
-
this.
|
|
1059
|
-
this.
|
|
1060
|
-
this.
|
|
1061
|
-
this.
|
|
1062
|
-
this.
|
|
1063
|
-
this.
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1066
|
-
this.
|
|
1142
|
+
this.p37_1 = name;
|
|
1143
|
+
this.q37_1 = whitePoint;
|
|
1144
|
+
this.r37_1 = transferFunctions;
|
|
1145
|
+
this.s37_1 = r;
|
|
1146
|
+
this.t37_1 = g;
|
|
1147
|
+
this.u37_1 = b;
|
|
1148
|
+
this.v37_1 = rectangularComponentInfo('RGB');
|
|
1149
|
+
this.w37_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.q37_1, this.s37_1, this.t37_1, this.u37_1));
|
|
1150
|
+
this.x37_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.w37_1)));
|
|
1067
1151
|
}
|
|
1068
|
-
protoOf(RGBColorSpaceImpl).
|
|
1069
|
-
return this.
|
|
1152
|
+
protoOf(RGBColorSpaceImpl).r35 = function () {
|
|
1153
|
+
return this.q37_1;
|
|
1070
1154
|
};
|
|
1071
|
-
protoOf(RGBColorSpaceImpl).
|
|
1072
|
-
return this.
|
|
1155
|
+
protoOf(RGBColorSpaceImpl).o35 = function () {
|
|
1156
|
+
return this.r37_1;
|
|
1073
1157
|
};
|
|
1074
|
-
protoOf(RGBColorSpaceImpl).
|
|
1075
|
-
return this.
|
|
1158
|
+
protoOf(RGBColorSpaceImpl).p35 = function () {
|
|
1159
|
+
return this.w37_1;
|
|
1076
1160
|
};
|
|
1077
|
-
protoOf(RGBColorSpaceImpl).
|
|
1078
|
-
return this.
|
|
1161
|
+
protoOf(RGBColorSpaceImpl).q35 = function () {
|
|
1162
|
+
return this.x37_1;
|
|
1079
1163
|
};
|
|
1080
1164
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1081
|
-
return this.
|
|
1165
|
+
return this.p37_1;
|
|
1082
1166
|
};
|
|
1083
|
-
protoOf(RGBColorSpaceImpl).
|
|
1167
|
+
protoOf(RGBColorSpaceImpl).c35 = function (r, g, b, alpha) {
|
|
1084
1168
|
return new RGB(r, g, b, alpha, this);
|
|
1085
1169
|
};
|
|
1086
1170
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1087
|
-
var result = getStringHashCode(this.
|
|
1088
|
-
result = imul(result, 31) + this.
|
|
1089
|
-
result = imul(result, 31) + hashCode(this.
|
|
1090
|
-
result = imul(result, 31) + this.
|
|
1091
|
-
result = imul(result, 31) + this.
|
|
1092
|
-
result = imul(result, 31) + this.
|
|
1171
|
+
var result = getStringHashCode(this.p37_1);
|
|
1172
|
+
result = imul(result, 31) + this.q37_1.hashCode() | 0;
|
|
1173
|
+
result = imul(result, 31) + hashCode(this.r37_1) | 0;
|
|
1174
|
+
result = imul(result, 31) + this.s37_1.hashCode() | 0;
|
|
1175
|
+
result = imul(result, 31) + this.t37_1.hashCode() | 0;
|
|
1176
|
+
result = imul(result, 31) + this.u37_1.hashCode() | 0;
|
|
1093
1177
|
return result;
|
|
1094
1178
|
};
|
|
1095
1179
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1098,33 +1182,57 @@
|
|
|
1098
1182
|
if (!(other instanceof RGBColorSpaceImpl))
|
|
1099
1183
|
return false;
|
|
1100
1184
|
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE();
|
|
1101
|
-
if (!(this.
|
|
1185
|
+
if (!(this.p37_1 === tmp0_other_with_cast.p37_1))
|
|
1102
1186
|
return false;
|
|
1103
|
-
if (!this.
|
|
1187
|
+
if (!this.q37_1.equals(tmp0_other_with_cast.q37_1))
|
|
1104
1188
|
return false;
|
|
1105
|
-
if (!equals(this.
|
|
1189
|
+
if (!equals(this.r37_1, tmp0_other_with_cast.r37_1))
|
|
1106
1190
|
return false;
|
|
1107
|
-
if (!this.
|
|
1191
|
+
if (!this.s37_1.equals(tmp0_other_with_cast.s37_1))
|
|
1108
1192
|
return false;
|
|
1109
|
-
if (!this.
|
|
1193
|
+
if (!this.t37_1.equals(tmp0_other_with_cast.t37_1))
|
|
1110
1194
|
return false;
|
|
1111
|
-
if (!this.
|
|
1195
|
+
if (!this.u37_1.equals(tmp0_other_with_cast.u37_1))
|
|
1112
1196
|
return false;
|
|
1113
1197
|
return true;
|
|
1114
1198
|
};
|
|
1115
1199
|
function BT2020TransferFunctions() {
|
|
1116
1200
|
BT2020TransferFunctions_instance = this;
|
|
1117
|
-
this.
|
|
1118
|
-
this.
|
|
1201
|
+
this.y37_1 = 1.0993;
|
|
1202
|
+
this.z37_1 = 0.0181;
|
|
1119
1203
|
var tmp = this;
|
|
1204
|
+
BT2020TransferFunctions_getInstance();
|
|
1120
1205
|
// Inline function 'kotlin.math.pow' call
|
|
1121
|
-
|
|
1206
|
+
BT2020TransferFunctions_getInstance();
|
|
1207
|
+
var tmp_0 = 1.0993 * Math.pow(0.0181, 0.45);
|
|
1208
|
+
BT2020TransferFunctions_getInstance();
|
|
1209
|
+
tmp.a38_1 = tmp_0 - (1.0993 - 1);
|
|
1122
1210
|
}
|
|
1123
|
-
protoOf(BT2020TransferFunctions).
|
|
1124
|
-
|
|
1211
|
+
protoOf(BT2020TransferFunctions).k35 = function (x) {
|
|
1212
|
+
var tmp;
|
|
1213
|
+
if (x < this.a38_1) {
|
|
1214
|
+
tmp = x / 4.5;
|
|
1215
|
+
} else {
|
|
1216
|
+
BT2020TransferFunctions_getInstance();
|
|
1217
|
+
var tmp_0 = x + (1.0993 - 1);
|
|
1218
|
+
BT2020TransferFunctions_getInstance();
|
|
1219
|
+
tmp = spow_0(tmp_0 / 1.0993, 1 / 0.45);
|
|
1220
|
+
}
|
|
1221
|
+
return numberToDouble(tmp);
|
|
1125
1222
|
};
|
|
1126
|
-
protoOf(BT2020TransferFunctions).
|
|
1127
|
-
|
|
1223
|
+
protoOf(BT2020TransferFunctions).l35 = function (x) {
|
|
1224
|
+
var tmp;
|
|
1225
|
+
var tmp_0 = x;
|
|
1226
|
+
BT2020TransferFunctions_getInstance();
|
|
1227
|
+
if (tmp_0 < 0.0181) {
|
|
1228
|
+
tmp = 4.5 * x;
|
|
1229
|
+
} else {
|
|
1230
|
+
BT2020TransferFunctions_getInstance();
|
|
1231
|
+
var tmp_1 = 1.0993 * spow(x, 0.45);
|
|
1232
|
+
BT2020TransferFunctions_getInstance();
|
|
1233
|
+
tmp = tmp_1 - (1.0993 - 1);
|
|
1234
|
+
}
|
|
1235
|
+
return tmp;
|
|
1128
1236
|
};
|
|
1129
1237
|
var BT2020TransferFunctions_instance;
|
|
1130
1238
|
function BT2020TransferFunctions_getInstance() {
|
|
@@ -1150,13 +1258,13 @@
|
|
|
1150
1258
|
}
|
|
1151
1259
|
function Companion_3() {
|
|
1152
1260
|
Companion_instance_3 = this;
|
|
1153
|
-
this.
|
|
1261
|
+
this.b38_1 = XYZColorSpaces_getInstance().c38_1;
|
|
1154
1262
|
}
|
|
1155
|
-
protoOf(Companion_3).
|
|
1156
|
-
return this.
|
|
1263
|
+
protoOf(Companion_3).r35 = function () {
|
|
1264
|
+
return this.b38_1.r35();
|
|
1157
1265
|
};
|
|
1158
|
-
protoOf(Companion_3).
|
|
1159
|
-
return this.
|
|
1266
|
+
protoOf(Companion_3).c35 = function (x, y, z, alpha) {
|
|
1267
|
+
return this.b38_1.c35(x, y, z, alpha);
|
|
1160
1268
|
};
|
|
1161
1269
|
var Companion_instance_3;
|
|
1162
1270
|
function Companion_getInstance_3() {
|
|
@@ -1165,65 +1273,65 @@
|
|
|
1165
1273
|
return Companion_instance_3;
|
|
1166
1274
|
}
|
|
1167
1275
|
function adaptToM($this, space, m, mi) {
|
|
1168
|
-
if (space.
|
|
1276
|
+
if (space.r35().equals($this.n36_1.r35()))
|
|
1169
1277
|
return $this;
|
|
1170
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1278
|
+
var transform = chromaticAdaptationMatrix(space, $this.n36_1.r35().x33_1, m, mi);
|
|
1171
1279
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1172
|
-
var v0 = $this.
|
|
1173
|
-
var v1 = $this.
|
|
1174
|
-
var v2 = $this.
|
|
1280
|
+
var v0 = $this.j36_1;
|
|
1281
|
+
var v1 = $this.k36_1;
|
|
1282
|
+
var v2 = $this.l36_1;
|
|
1175
1283
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call
|
|
1176
1284
|
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;
|
|
1177
1285
|
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;
|
|
1178
1286
|
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;
|
|
1179
|
-
return space.
|
|
1287
|
+
return space.c35(xx, yy, zz, $this.m36_1);
|
|
1180
1288
|
}
|
|
1181
1289
|
function XYZ(x, y, z, alpha, space) {
|
|
1182
1290
|
Companion_getInstance_3();
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1291
|
+
this.j36_1 = x;
|
|
1292
|
+
this.k36_1 = y;
|
|
1293
|
+
this.l36_1 = z;
|
|
1294
|
+
this.m36_1 = alpha;
|
|
1295
|
+
this.n36_1 = space;
|
|
1188
1296
|
}
|
|
1189
|
-
protoOf(XYZ).
|
|
1297
|
+
protoOf(XYZ).e38 = function (space) {
|
|
1190
1298
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1191
1299
|
};
|
|
1192
|
-
protoOf(XYZ).
|
|
1193
|
-
var tmp0_container = this.
|
|
1194
|
-
var x = tmp0_container.
|
|
1195
|
-
var y = tmp0_container.
|
|
1196
|
-
var z = tmp0_container.
|
|
1197
|
-
var f = space.
|
|
1300
|
+
protoOf(XYZ).o36 = function (space) {
|
|
1301
|
+
var tmp0_container = this.e38(XYZColorSpace(space.r35()));
|
|
1302
|
+
var x = tmp0_container.nd();
|
|
1303
|
+
var y = tmp0_container.od();
|
|
1304
|
+
var z = tmp0_container.hh();
|
|
1305
|
+
var f = space.o35();
|
|
1198
1306
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1199
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1307
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.q35());
|
|
1200
1308
|
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call
|
|
1201
1309
|
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;
|
|
1202
1310
|
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;
|
|
1203
1311
|
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;
|
|
1204
|
-
return space.
|
|
1312
|
+
return space.c35(f.l35(r), f.l35(g), f.l35(b), this.m36_1);
|
|
1205
1313
|
};
|
|
1206
|
-
protoOf(XYZ).
|
|
1207
|
-
return this.
|
|
1314
|
+
protoOf(XYZ).k34 = function () {
|
|
1315
|
+
return this.o36(RGBColorSpaces_getInstance().s35_1);
|
|
1208
1316
|
};
|
|
1209
|
-
protoOf(XYZ).
|
|
1210
|
-
return this.
|
|
1317
|
+
protoOf(XYZ).nd = function () {
|
|
1318
|
+
return this.j36_1;
|
|
1211
1319
|
};
|
|
1212
|
-
protoOf(XYZ).
|
|
1213
|
-
return this.
|
|
1320
|
+
protoOf(XYZ).od = function () {
|
|
1321
|
+
return this.k36_1;
|
|
1214
1322
|
};
|
|
1215
|
-
protoOf(XYZ).
|
|
1216
|
-
return this.
|
|
1323
|
+
protoOf(XYZ).hh = function () {
|
|
1324
|
+
return this.l36_1;
|
|
1217
1325
|
};
|
|
1218
1326
|
protoOf(XYZ).toString = function () {
|
|
1219
|
-
return 'XYZ(x=' + this.
|
|
1327
|
+
return 'XYZ(x=' + this.j36_1 + ', y=' + this.k36_1 + ', z=' + this.l36_1 + ', alpha=' + this.m36_1 + ', space=' + toString_0(this.n36_1) + ')';
|
|
1220
1328
|
};
|
|
1221
1329
|
protoOf(XYZ).hashCode = function () {
|
|
1222
|
-
var result = getNumberHashCode(this.
|
|
1223
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1224
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1225
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1226
|
-
result = imul(result, 31) + hashCode(this.
|
|
1330
|
+
var result = getNumberHashCode(this.j36_1);
|
|
1331
|
+
result = imul(result, 31) + getNumberHashCode(this.k36_1) | 0;
|
|
1332
|
+
result = imul(result, 31) + getNumberHashCode(this.l36_1) | 0;
|
|
1333
|
+
result = imul(result, 31) + getNumberHashCode(this.m36_1) | 0;
|
|
1334
|
+
result = imul(result, 31) + hashCode(this.n36_1) | 0;
|
|
1227
1335
|
return result;
|
|
1228
1336
|
};
|
|
1229
1337
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1232,25 +1340,25 @@
|
|
|
1232
1340
|
if (!(other instanceof XYZ))
|
|
1233
1341
|
return false;
|
|
1234
1342
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1235
|
-
if (!equals(this.
|
|
1343
|
+
if (!equals(this.j36_1, tmp0_other_with_cast.j36_1))
|
|
1236
1344
|
return false;
|
|
1237
|
-
if (!equals(this.
|
|
1345
|
+
if (!equals(this.k36_1, tmp0_other_with_cast.k36_1))
|
|
1238
1346
|
return false;
|
|
1239
|
-
if (!equals(this.
|
|
1347
|
+
if (!equals(this.l36_1, tmp0_other_with_cast.l36_1))
|
|
1240
1348
|
return false;
|
|
1241
|
-
if (!equals(this.
|
|
1349
|
+
if (!equals(this.m36_1, tmp0_other_with_cast.m36_1))
|
|
1242
1350
|
return false;
|
|
1243
|
-
if (!equals(this.
|
|
1351
|
+
if (!equals(this.n36_1, tmp0_other_with_cast.n36_1))
|
|
1244
1352
|
return false;
|
|
1245
1353
|
return true;
|
|
1246
1354
|
};
|
|
1247
1355
|
function XYZColorSpace(whitePoint) {
|
|
1248
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1356
|
+
return whitePoint.equals(Illuminant_getInstance().d34_1) ? XYZColorSpaces_getInstance().c38_1 : whitePoint.equals(Illuminant_getInstance().b34_1) ? XYZColorSpaces_getInstance().d38_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1249
1357
|
}
|
|
1250
1358
|
function XYZColorSpaces() {
|
|
1251
1359
|
XYZColorSpaces_instance = this;
|
|
1252
|
-
this.
|
|
1253
|
-
this.
|
|
1360
|
+
this.c38_1 = new XYZColorSpaceImpl(Illuminant_getInstance().d34_1);
|
|
1361
|
+
this.d38_1 = new XYZColorSpaceImpl(Illuminant_getInstance().b34_1);
|
|
1254
1362
|
}
|
|
1255
1363
|
var XYZColorSpaces_instance;
|
|
1256
1364
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1261,26 +1369,26 @@
|
|
|
1261
1369
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1262
1370
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1263
1371
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1264
|
-
var dstWp = _this__u8e3s4.
|
|
1265
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1266
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1372
|
+
var dstWp = _this__u8e3s4.r35().x33_1;
|
|
1373
|
+
var src = dot_0(xyzToLms, srcWp.n37(), srcWp.l37_1, srcWp.o37());
|
|
1374
|
+
var dst = dot_0(xyzToLms, dstWp.n37(), dstWp.l37_1, dstWp.o37());
|
|
1267
1375
|
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);
|
|
1268
1376
|
}
|
|
1269
1377
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1378
|
+
this.f38_1 = whitePoint;
|
|
1379
|
+
this.g38_1 = rectangularComponentInfo('XYZ');
|
|
1272
1380
|
}
|
|
1273
|
-
protoOf(XYZColorSpaceImpl).
|
|
1274
|
-
return this.
|
|
1381
|
+
protoOf(XYZColorSpaceImpl).r35 = function () {
|
|
1382
|
+
return this.f38_1;
|
|
1275
1383
|
};
|
|
1276
1384
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1277
|
-
return 'XYZColorSpace(' + this.
|
|
1385
|
+
return 'XYZColorSpace(' + this.f38_1.toString() + ')';
|
|
1278
1386
|
};
|
|
1279
|
-
protoOf(XYZColorSpaceImpl).
|
|
1387
|
+
protoOf(XYZColorSpaceImpl).c35 = function (x, y, z, alpha) {
|
|
1280
1388
|
return new XYZ(x, y, z, alpha, this);
|
|
1281
1389
|
};
|
|
1282
1390
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1283
|
-
return this.
|
|
1391
|
+
return this.f38_1.hashCode();
|
|
1284
1392
|
};
|
|
1285
1393
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1286
1394
|
if (this === other)
|
|
@@ -1288,7 +1396,7 @@
|
|
|
1288
1396
|
if (!(other instanceof XYZColorSpaceImpl))
|
|
1289
1397
|
return false;
|
|
1290
1398
|
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE();
|
|
1291
|
-
if (!this.
|
|
1399
|
+
if (!this.f38_1.equals(tmp0_other_with_cast.f38_1))
|
|
1292
1400
|
return false;
|
|
1293
1401
|
return true;
|
|
1294
1402
|
};
|
|
@@ -1302,26 +1410,26 @@
|
|
|
1302
1410
|
}
|
|
1303
1411
|
function xyY(x, y, Y) {
|
|
1304
1412
|
Y = Y === VOID ? 1.0 : Y;
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1413
|
+
this.j37_1 = x;
|
|
1414
|
+
this.k37_1 = y;
|
|
1415
|
+
this.l37_1 = Y;
|
|
1308
1416
|
}
|
|
1309
|
-
protoOf(xyY).
|
|
1310
|
-
return 1 - this.
|
|
1417
|
+
protoOf(xyY).m37 = function () {
|
|
1418
|
+
return 1 - this.j37_1 - this.k37_1;
|
|
1311
1419
|
};
|
|
1312
|
-
protoOf(xyY).
|
|
1313
|
-
return this.
|
|
1420
|
+
protoOf(xyY).n37 = function () {
|
|
1421
|
+
return this.j37_1 * this.l37_1 / this.k37_1;
|
|
1314
1422
|
};
|
|
1315
|
-
protoOf(xyY).
|
|
1316
|
-
return (1 - this.
|
|
1423
|
+
protoOf(xyY).o37 = function () {
|
|
1424
|
+
return (1 - this.j37_1 - this.k37_1) * this.l37_1 / this.k37_1;
|
|
1317
1425
|
};
|
|
1318
1426
|
protoOf(xyY).toString = function () {
|
|
1319
|
-
return 'xyY(x=' + this.
|
|
1427
|
+
return 'xyY(x=' + this.j37_1 + ', y=' + this.k37_1 + ', Y=' + this.l37_1 + ')';
|
|
1320
1428
|
};
|
|
1321
1429
|
protoOf(xyY).hashCode = function () {
|
|
1322
|
-
var result = getNumberHashCode(this.
|
|
1323
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1324
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1430
|
+
var result = getNumberHashCode(this.j37_1);
|
|
1431
|
+
result = imul(result, 31) + getNumberHashCode(this.k37_1) | 0;
|
|
1432
|
+
result = imul(result, 31) + getNumberHashCode(this.l37_1) | 0;
|
|
1325
1433
|
return result;
|
|
1326
1434
|
};
|
|
1327
1435
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1330,36 +1438,36 @@
|
|
|
1330
1438
|
if (!(other instanceof xyY))
|
|
1331
1439
|
return false;
|
|
1332
1440
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1333
|
-
if (!equals(this.
|
|
1441
|
+
if (!equals(this.j37_1, tmp0_other_with_cast.j37_1))
|
|
1334
1442
|
return false;
|
|
1335
|
-
if (!equals(this.
|
|
1443
|
+
if (!equals(this.k37_1, tmp0_other_with_cast.k37_1))
|
|
1336
1444
|
return false;
|
|
1337
|
-
if (!equals(this.
|
|
1445
|
+
if (!equals(this.l37_1, tmp0_other_with_cast.l37_1))
|
|
1338
1446
|
return false;
|
|
1339
1447
|
return true;
|
|
1340
1448
|
};
|
|
1341
1449
|
//region block: post-declaration
|
|
1342
|
-
protoOf(Companion_2).
|
|
1343
|
-
protoOf(Companion_2).
|
|
1344
|
-
protoOf(Companion_2).
|
|
1345
|
-
protoOf(SRGB).
|
|
1346
|
-
protoOf(SRGB).
|
|
1347
|
-
protoOf(SRGB).
|
|
1348
|
-
protoOf(SRGB).
|
|
1349
|
-
protoOf(SRGB).
|
|
1350
|
-
protoOf(SRGB).
|
|
1351
|
-
protoOf(BT2020Space).
|
|
1352
|
-
protoOf(BT2020Space).
|
|
1353
|
-
protoOf(BT2020Space).
|
|
1354
|
-
protoOf(BT2020Space).
|
|
1355
|
-
protoOf(BT2020Space).
|
|
1356
|
-
protoOf(BT2020Space).
|
|
1357
|
-
protoOf(RGBColorSpaceImpl).
|
|
1358
|
-
protoOf(RGBColorSpaceImpl).
|
|
1359
|
-
protoOf(RGBColorSpaceImpl).
|
|
1360
|
-
protoOf(RGBColorSpaceImpl).
|
|
1361
|
-
protoOf(RGBColorSpaceImpl).
|
|
1362
|
-
protoOf(RGBColorSpaceImpl).
|
|
1450
|
+
protoOf(Companion_2).m34 = from255$default;
|
|
1451
|
+
protoOf(Companion_2).l34 = invoke$default;
|
|
1452
|
+
protoOf(Companion_2).q34 = invoke$default_0;
|
|
1453
|
+
protoOf(SRGB).l34 = invoke$default;
|
|
1454
|
+
protoOf(SRGB).m35 = invoke;
|
|
1455
|
+
protoOf(SRGB).q34 = invoke$default_0;
|
|
1456
|
+
protoOf(SRGB).q29 = invoke_0;
|
|
1457
|
+
protoOf(SRGB).n35 = from255;
|
|
1458
|
+
protoOf(SRGB).m34 = from255$default;
|
|
1459
|
+
protoOf(BT2020Space).l34 = invoke$default;
|
|
1460
|
+
protoOf(BT2020Space).m35 = invoke;
|
|
1461
|
+
protoOf(BT2020Space).q34 = invoke$default_0;
|
|
1462
|
+
protoOf(BT2020Space).q29 = invoke_0;
|
|
1463
|
+
protoOf(BT2020Space).n35 = from255;
|
|
1464
|
+
protoOf(BT2020Space).m34 = from255$default;
|
|
1465
|
+
protoOf(RGBColorSpaceImpl).l34 = invoke$default;
|
|
1466
|
+
protoOf(RGBColorSpaceImpl).m35 = invoke;
|
|
1467
|
+
protoOf(RGBColorSpaceImpl).q34 = invoke$default_0;
|
|
1468
|
+
protoOf(RGBColorSpaceImpl).q29 = invoke_0;
|
|
1469
|
+
protoOf(RGBColorSpaceImpl).n35 = from255;
|
|
1470
|
+
protoOf(RGBColorSpaceImpl).m34 = from255$default;
|
|
1363
1471
|
//endregion
|
|
1364
1472
|
//region block: init
|
|
1365
1473
|
LinearTransferFunctions_instance = new LinearTransferFunctions();
|