rect-mix
Interpolate 2 rectangles.
rectMix([ 10, 10, 800, 600 ], [ 100, 100, 80, 60 ], 0.3);
// [ 37, 37, 584, 438 ]
Interpolate 2 rectangles
Homepage npm JavaScript Download
npm install rect-mix@0.0.0
Interpolate 2 rectangles.
rectMix([ 10, 10, 800, 600 ], [ 100, 100, 80, 60 ], 0.3);
// [ 37, 37, 584, 438 ]