INNER CODE UNIT · JavaScript

cx

mario-andreschak/FLUJO · githubpages/short/app.js:194

      const cx = tool.x + 85;
      const cy = tool.y + 29;
      const controlX = lerp(cx, 800, .52) + ((index % 3) - 1) * 65;
      const controlY = lerp(cy, 450, .52) + ((index % 4) - 1.5) * 45;
      const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
      path.setAttribute("d", `M${cx} ${cy} Q${controlX} ${controlY} 800 450`);
      path.dataset.index = String(index);
      paths.appendChild(path);
    });
  }

  function buildVoicePicker() {
    voiceSelect.replaceChildren();
    Object.entries(VOICE_VARIANTS).forEach(([key, voice]) => {
      const option = document.createElement("option");
      option.value = key;
      const language = STUDIO_CONTENT.languages?.[voice.language]?.name;
      option.textContent = language ? `${voice.name} · ${language}` : voice.name;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…