MCPcopy
hub / github.com/KilledByAPixel/LittleJS / copy

Method copy

src/engineMath.js:929–929  ·  view source on GitHub ↗

Returns a new color that is a copy of this * @return {Color}

()

Source from the content-addressed store, hash-verified

927 /** Returns a new color that is a copy of this
928 * @return {Color} */
929 copy() { return new Color(this.r, this.g, this.b, this.a); }
930
931 /** Returns a copy of this color plus the color passed in
932 * @param {Color} c - other color

Callers 15

math.test.mjsFile · 0.45
debugRectFunction · 0.45
debugPolyFunction · 0.45
debugCircleFunction · 0.45
debugTextFunction · 0.45
updateCanvasFunction · 0.45
constructorMethod · 0.45
setFullImageMethod · 0.45
tileCollisionRaycastFunction · 0.45
constructorMethod · 0.45
setCameraPosFunction · 0.45
setCanvasClearColorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected