saturate.ts 72 B

1
  1. export const saturate = (x: number) => Math.min(Math.max(x, 0.0), 1.0);