INNER CODE UNIT · TypeScript

z

Bloom-Engine/engine · embed-perry/src/main.ts:61

    const z = Math.sin(a) * 4.0;
    const h = 1.2 + Math.sin(t * 2.0 + i) * 0.6;
    drawCube(
      vec3(x, h * 0.5, z),
      0.9, h, 0.9,
      { r: 120 + i * 14, g: 200 - i * 10, b: 240, a: 255 },
    );
  }

  drawSphere(vec3(0, 1.4, 0), 1.1, { r: 255, g: 210, b: 120, a: 255 });
  drawSphere(vec3(0, 1.4, 0), 1.6, { r: 255, g: 180, b: 90, a: 60 });

  endMode3D();
  endDrawing();
}, 16);

App({
  title: "Perry UI × Bloom",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…