fn ($i, $height) => $i / $height, static::WAVE => fn ($i, $height) => abs(($i / $height) - 0.5), }; } }