|
|
@ -36,7 +36,7 @@ URL: https://github.com/Huddle/Resemble.js |
|
|
|
a: d2.a |
|
|
|
a: d2.a |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
flatWithDistanceBasedIntensity: function (d1, d2){ |
|
|
|
flatDifferenceIntensity: function (d1, d2){ |
|
|
|
return { |
|
|
|
return { |
|
|
|
r: errorPixelColor.red, |
|
|
|
r: errorPixelColor.red, |
|
|
|
g: errorPixelColor.green, |
|
|
|
g: errorPixelColor.green, |
|
|
@ -44,7 +44,7 @@ URL: https://github.com/Huddle/Resemble.js |
|
|
|
a: colorsDistance(d1, d2) |
|
|
|
a: colorsDistance(d1, d2) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
movementWithDistanceBasedIntensity: function (d1, d2){ |
|
|
|
movementDifferenceIntensity: function (d1, d2){ |
|
|
|
var ratio = colorsDistance(d1, d2)/255 * 0.8; |
|
|
|
var ratio = colorsDistance(d1, d2)/255 * 0.8; |
|
|
|
return { |
|
|
|
return { |
|
|
|
r: ((1-ratio)*(d2.r*(errorPixelColor.red/255)) + ratio*errorPixelColor.red), |
|
|
|
r: ((1-ratio)*(d2.r*(errorPixelColor.red/255)) + ratio*errorPixelColor.red), |
|
|
|