Open this sketch in P5 Web Editor →
Click anywhere to start a trail that grows continuously since your click point.
The preposition "since" indicates the starting point of a time period that continues to the present moment. It establishes a reference point from which something has been ongoing or accumulating. In this visualization, a spiral trail grows continuously since the moment you click, demonstrating how something can build up over time from a specific starting point.
To represent "since" relationships through movement:
let startPoint = { x: 0, y: 0 };
let trail = [];
let isGrowing = false;
function mousePressed() {
startPoint.x = mouseX;
startPoint.y = mouseY;
trail = []; // Reset trail
isGrowing = true;
}
if (isGrowing && frameCount % 3 === 0) {
let radius = trailLength * 2;
let x = startPoint.x + cos(angle) * radius;
let y = startPoint.y + sin(angle) * radius;
trail.push({ x: x, y: y });
}
beginShape();
for (let i = 0; i < trail.length; i++) {
vertex(trail[i].x, trail[i].y);
}
endShape();