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

Method subtract

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

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

(c)

Source from the content-addressed store, hash-verified

937 * @param {Color} c - other color
938 * @return {Color} */
939 subtract(c) { return new Color(this.r-c.r, this.g-c.g, this.b-c.b, this.a-c.a); }
940
941 /** Returns a copy of this color times the color passed in
942 * @param {Color} c - other color

Callers 15

math.test.mjsFile · 0.45
onMouseDownFunction · 0.45
onMouseMoveFunction · 0.45
handleTouchFunction · 0.45
handleTouchGamepadFunction · 0.45
touchGamepadButtonCenterFunction · 0.45
debugOverlapFunction · 0.45
debugRenderFunction · 0.45
glPreRenderFunction · 0.45
isIntersectingFunction · 0.45
drawTileMethod · 0.45
updatePhysicsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected