Skip to main content
Public

Share visualization

Loading preview…

Shapes And Colors Game

vizhub.com

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

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 & exportHTML, source ZIP

Shapes And Colors Game

0 stars0Public
CCurran Kelleher
Last edited Nov 15, 2026
Created on Nov 15, 2026

An interactive learning experience for kids to learn shapes and colors.

Shapes & Colors

An interactive learning toy for young children (ages 3–7) to explore shapes and colors.

Features

  • Pick red, green, or blue from the left column.
  • Pick circle, square, or triangle from the bottom bar.
  • The large central shape updates with smooth D3 transitions and morphs between shapes.
  • Every selection is spoken aloud with the browser's Web Speech API (e.g. "blue circle").
  • The speaker button repeats the current combination.
  • Fully keyboard accessible, with visible focus rings and an accessible text description.
  • Respects prefers-reduced-motion.
  • Runs entirely client-side with no external assets besides D3.

Files

  • index.html — page shell and import map (D3 from a CDN).
  • main.js — state, D3 rendering, morph transitions, and speech.
  • styles.css — layout, touch targets, responsive rules.
  • README.md — this file.

Notes

  • Speech only starts after a user gesture, which is required for mobile Safari.
  • Repeated clicks call speechSynthesis.cancel() first, so audio never queues up.
  • If speech synthesis is unavailable, the interface still works normally.

References

This project was informed by the general ideas (color, shape, and size panels with a central preview) found in these visualizations:

Comments

Sign in to join the discussion.