We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33ac95 commit f2552d8Copy full SHA for f2552d8
src/math/Color.js
@@ -56,6 +56,10 @@ class Color {
56
57
constructor( r, g, b ) {
58
59
+ this.r = 1;
60
+ this.g = 1;
61
+ this.b = 1;
62
+
63
if ( g === undefined && b === undefined ) {
64
65
// r is THREE.Color, hex or string
@@ -607,8 +611,5 @@ class Color {
607
611
Color.NAMES = _colorKeywords;
608
612
609
613
Color.prototype.isColor = true;
610
-Color.prototype.r = 1;
-Color.prototype.g = 1;
-Color.prototype.b = 1;
614
615
export { Color, SRGBToLinear };
0 commit comments