MCPcopy Create free account
hub / github.com/galacean/engine / fixColor

Function fixColor

tests/src/math/Color.test.ts:87–91  ·  view source on GitHub ↗
(color: Color)

Source from the content-addressed store, hash-verified

85
86 it("LinearAndGamma", () => {
87 const fixColor = (color: Color) => {
88 color.r = Math.floor(color.r * 1000) / 1000;
89 color.g = Math.floor(color.g * 1000) / 1000;
90 color.b = Math.floor(color.b * 1000) / 1000;
91 };
92
93 const colorLinear = new Color();
94 const colorSRGB = new Color();

Callers 1

Color.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected