import { interval } from "rxjs";
import { map, take } from "rxjs/operators";
const bezier_stream = interval(350).pipe(
take(25),
map(bezier),
map(num => "~".repeat(Math.floor(num * 65)))
);