<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script>

//
// INK EQUATIONS
//

// Animation constants.
var globalSpeed = 1;
var waveOpacityDecayVelocity = 0.8 / globalSpeed;  // opacity per second.
var waveInitialOpacity = 0.25;
var waveLingerOnTouchUp = 0.2;
var waveMaxRadius = 150; 

// TODOs:
// - rather than max distance to corner, use hypotenuos(sp) (diag)
// - use quadratic for the fall off, move fast at the beginning, 
// - on cancel, immediately fade out, rever