(r, g, b, alpha)
| 759 | return { |
| 760 | instance: color, |
| 761 | reset(r, g, b, alpha) { |
| 762 | if (arguments.length === 0) { |
| 763 | color.setColor(); |
| 764 | } else { |
| 765 | if (typeof r === "number") { |
| 766 | color.setColor(r, g, b, alpha); |
| 767 | } else { |
| 768 | color.copy(r as Color | string); |
| 769 | } |
| 770 | } |
| 771 | }, |
| 772 | }; |
| 773 | }); |
no test coverage detected