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

Method add

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

Returns a copy of this color plus the color passed in * @param {Color} c - other color * @return {Color}

(c)

Source from the content-addressed store, hash-verified

932 * @param {Color} c - other color
933 * @return {Color} */
934 add(c) { return new Color(this.r+c.r, this.g+c.g, this.b+c.b, this.a+c.a); }
935
936 /** Returns a copy of this color minus the color passed in
937 * @param {Color} c - other color

Callers 15

math.test.mjsFile · 0.45
onMouseDownFunction · 0.45
onMouseMoveFunction · 0.45
handleTouchFunction · 0.45
touchGamepadRenderFunction · 0.45
debugLineFunction · 0.45
debugRenderFunction · 0.45
offsetMethod · 0.45
drawTileFunction · 0.45
drawTextureWrappedFunction · 0.45
drawLineFunction · 0.45
drawImageColorFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected