rough tension

Will they ever realize it's me in there?

Log in to post a comment.

// You can find the Turtle API reference here: https://turtletoy.net/syntax
Canvas.setpenopacity(0.33);

// Global code will be evaluated once.
const turtle = new Turtle();
turtle.up();
const p = () => Math.random() * 200 - 100;
class Point {
	constructor() {
		this.cx = p();
		this.cy = p();
		this.tx = p();
		this.ty = p();
	}
	lerp() {
		this.cx += (this.tx - this.cx) * 0.02;
		this.cy += (this.ty - this.cy) * 0.02;
		turtle.goto(this.cx, this.cy);
    	turtle.down();
	}
}
const points = Array.from(
    { length: Math.random() * 6 + 4 }, 
    () => new Point()
);
// The walk function will be called until it returns false.
function walk(i) {
    points.forEach(p => p.lerp());
    turtle.up();
    return i < 60;
}