MCPcopy Create free account
hub / github.com/melonjs/melonJS / reset

Function reset

packages/melonjs/src/math/color.ts:761–771  ·  view source on GitHub ↗
(r, g, b, alpha)

Source from the content-addressed store, hash-verified

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});

Callers 1

createPoolFunction · 0.50

Calls 2

setColorMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected