Skip to content

Commit

Permalink
Moved function overloads from Color.set to rest types (#615)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Bierema <[email protected]>
  • Loading branch information
grischaerbe and Methuselah96 committed Sep 28, 2023
1 parent 415f91e commit 54f4edc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/three/src/math/Color.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ export class Color {
*/
b: number;

set(r: number, g: number, b: number): this;
set(color: ColorRepresentation): this;
set(...args: [color: ColorRepresentation] | [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
Expand Down

0 comments on commit 54f4edc

Please sign in to comment.