From 33aad92c9cec0a2133c142f4846d5104ec3512ae Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 29 Jun 2023 09:11:58 -0400 Subject: [PATCH] Color: Let set() accept RGB values. --- types/three/src/math/Color.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/three/src/math/Color.d.ts b/types/three/src/math/Color.d.ts index 28668f352..4c40a4dda 100644 --- a/types/three/src/math/Color.d.ts +++ b/types/three/src/math/Color.d.ts @@ -204,7 +204,8 @@ export class Color { */ b: number; - set(color: ColorRepresentation): Color; + set(color: ColorRepresentation): this; + set(r: number, g: number, b: number): this; /** * Sets this color's {@link r}, {@link g} and {@link b} components from the x, y, and z components of the specified