Skip to main content
Public

Share visualization

Loading preview…

Pinwheel Driver

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Viewing a saved revision (read-only)

Q6YqjUlwFN_Wc7KD_pnyq

Pinwheel Driver

0 stars3
CCurran Kelleher
Last edited Nov 30, 2026
Created on Nov 30, 2026
View stargazers

SVG pinwheel of overlapping colored circles that adapts to light and dark themes, starting from the Overlapping Circles Claude artifact.

Pinwheel Road

A canvas-based open-world driving toy: hills, roads, water and a changing time of day, with pinwheels to collect. Drive with arrow keys / WASD (Up/W accelerates, Down/S brakes and reverses), or let autopilot take the wheel. On touch, hold the left or right side to steer, hold the bottom to brake.

Structure

  • index.html – entry point and HUD markup
  • index.js – main loop wiring update and render
  • view.js – shared screen geometry and resize
  • camera.js – chase camera and world-to-screen projection
  • config.js – world, camera and vehicle constants
  • util.js – small math helpers
  • heightfield.js – procedural terrain and water
  • roads.js – infinite procedural road grid
  • world.js – pinwheel placement and biome labels
  • sky.js – day/night cycle and sky rendering
  • terrain.js – voxel-space terrain renderer
  • sprites.js – pinwheel sprites with occlusion
  • particles.js – pickup effects
  • input.js – keyboard and touch input
  • player.js – vehicle physics and autopilot
  • hud.js – HUD updates

References