Skip to content

Commit

Permalink
Color: Let set() accept RGB values. (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jun 30, 2023
1 parent 29f9520 commit fba5fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/three/src/math/Color.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fba5fe1

Please sign in to comment.