UNPKG

doevisualizations

Version:

Data Visualization Library based on RequireJS and D3.js (v4+)

12 lines (9 loc) 261 B
export function circleIn(t) { return 1 - Math.sqrt(1 - t * t); } export function circleOut(t) { return Math.sqrt(1 - --t * t); } export function circleInOut(t) { return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2; }