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

Function rgb

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

* Create a color object with RGBA values, white by default * @param {number} [r=1] - red * @param {number} [g=1] - green * @param {number} [b=1] - blue * @param {number} [a=1] - alpha * @return {Color} * @memberof Math

(r, g, b, a)

Source from the content-addressed store, hash-verified

852 * @memberof Math
853 */
854function rgb(r, g, b, a) { return new Color(r, g, b, a); }
855
856/**
857 * Create a color object with HSLA values, white by default

Callers 15

util.test.mjsFile · 0.90
smoke.test.mjsFile · 0.90
tween.test.mjsFile · 0.90
math.test.mjsFile · 0.90
debugRenderFunction · 0.85
engineMath.jsFile · 0.85
renderDebugInfoMethod · 0.85
renderDebugInfoMethod · 0.85
setupDebugDrawFunction · 0.85
buildNodeDataMethod · 0.85
aStarSearchMethod · 0.85
smoothPathCornersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected