Skip to content

Commit

Permalink
Color: Fix lint issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jan 31, 2022
1 parent 8297615 commit eece875
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/math/Color.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as MathUtils from './MathUtils.js';
import { ColorManagement, SRGBToLinear, LinearToSRGB } from './ColorManagement.js';
import { DisplayP3ColorSpace, sRGBColorSpace, LinearSRGBColorSpace } from '../constants.js';
import { DisplayP3ColorSpace, sRGBColorSpace } from '../constants.js';

const _colorKeywords = { 'aliceblue': 0xF0F8FF, 'antiquewhite': 0xFAEBD7, 'aqua': 0x00FFFF, 'aquamarine': 0x7FFFD4, 'azure': 0xF0FFFF,
'beige': 0xF5F5DC, 'bisque': 0xFFE4C4, 'black': 0x000000, 'blanchedalmond': 0xFFEBCD, 'blue': 0x0000FF, 'blueviolet': 0x8A2BE2,
Expand Down
36 changes: 18 additions & 18 deletions src/math/ColorManagement.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sRGBColorSpace, LinearSRGBColorSpace, DisplayP3ColorSpace, LinearACESCGColorSpace } from '../constants.js';
import { sRGBColorSpace, LinearSRGBColorSpace, DisplayP3ColorSpace, LinearACESCGColorSpace } from '../constants.js';
import { Matrix3 } from './Matrix3.js';
import { Vector3 } from './Vector3.js';

Expand All @@ -25,33 +25,33 @@ const FN = {
// CAT02[InputColorSpace][OutputColorSpace] 3x3 matrices computed by
// https://www.colour-science.org/apps/.
const CAT02 = {
[LinearACESCGColorSpace]: {
[sRGBColorSpace]: [
1.7048873310, -0.6241572745, -0.0808867739,
-0.1295209353, 1.1383993260, -0.0087792418,
-0.0241270599, -0.1246206123, 1.1488221099,
[ LinearACESCGColorSpace ]: {
[ sRGBColorSpace ]: [
1.7048873310, - 0.6241572745, - 0.0808867739,
- 0.1295209353, 1.1383993260, - 0.0087792418,
- 0.0241270599, - 0.1246206123, 1.1488221099,
],
[DisplayP3ColorSpace]: [
1.3793363837, -0.3112868172, -0.0680495665,
-0.0687964722, 1.0799570656, -0.0111605934,
-0.0022666792, -0.0417050150, 1.0439716942,
[ DisplayP3ColorSpace ]: [
1.3793363837, - 0.3112868172, - 0.0680495665,
- 0.0687964722, 1.0799570656, - 0.0111605934,
- 0.0022666792, - 0.0417050150, 1.0439716942,
],
},
[sRGBColorSpace]: {
[LinearACESCGColorSpace]: [
0.6131178129, 0.3411819959, 0.0457873443,
0.0699340823, 0.9181030375, 0.0119327755,
0.0204629926, 0.1067686634, 0.8727159106,
[ sRGBColorSpace ]: {
[ LinearACESCGColorSpace ]: [
0.6131178129, 0.3411819959, 0.0457873443,
0.0699340823, 0.9181030375, 0.0119327755,
0.0204629926, 0.1067686634, 0.8727159106,
],
},
[DisplayP3ColorSpace]: {
[LinearACESCGColorSpace]: [
[ DisplayP3ColorSpace ]: {
[ LinearACESCGColorSpace ]: [
0.7357429995, 0.2140109244, 0.0502460760,
0.0469048867, 0.9399887338, 0.0131063796,
0.0034712266, 0.0380157226, 0.9585130508,
],
},
}
};

const _matrix = /*@__PURE__*/new Matrix3();
const _vector = /*@__PURE__*/new Vector3();
Expand Down

0 comments on commit eece875

Please sign in to comment.