Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/ericdrowell/KineticJS
/ rgbDistance
Function
rgbDistance
kinetic.js:4710–4712 ·
view source on GitHub ↗
(p1, p2)
Source
from the content-addressed store, hash-verified
4708
}
4709
4710
function
rgbDistance(p1, p2) {
4711
return
Math.sqrt(Math.pow(p1[0] - p2[0], 2) + Math.pow(p1[1] - p2[1], 2) + Math.pow(p1[2] - p2[2], 2));
4712
}
4713
4714
function
rgbMean(pTab) {
4715
var
m = [0, 0, 0];
Callers
1
backgroundMask
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected