INNER CODE UNIT · JavaScript
lastFrameTime
mario-andreschak/FLUJO · githubpages/short/app.js:179
let lastFrameTime = -1;
function buildChaos() {
const container = $("#chaos-tools");
const paths = $("#chaos-paths");
TOOL_DATA.forEach((tool, index) => {
const card = document.createElement("div");
card.className = "tool-card";
card.dataset.index = String(index);
card.innerHTML = `
<span class="tool-logo" style="--tool-color:${tool.color}">${tool.icon}</span>
<span class="tool-copy"><b>${tool.name}</b><small>${tool.kind}</small></span>
`;
container.appendChild(card);
const cx = tool.x + 85;
const cy = tool.y + 29;
const controlX = lerp(cx, 800, .52) + ((index % 3) - 1) * 65;