Skip to content

Add Ulam Prime Spiral demo under public/cool with standalone HTML#216

Open
tomadowley wants to merge 1 commit intomasterfrom
cosine/add-cool-feature
Open

Add Ulam Prime Spiral demo under public/cool with standalone HTML#216
tomadowley wants to merge 1 commit intomasterfrom
cosine/add-cool-feature

Conversation

@tomadowley
Copy link
Owner

This PR introduces a new standalone, zero-dependency Ulam Prime Spiral demo under public/cool/ulam-spiral.html. It can be served alongside the app without touching the existing TS/React build.

What’s added:

  • COOL.md describing the feature and usage
  • public/cool/ulam-spiral.html with a full-screen canvas visualization, a small UI, and no external libraries

Key features:

  • Adjustable points count, step size, and color customization for prime and composite points
  • Animate or instant render modes
  • Self-contained: no build changes, works with standard React/TS setups or any static server
  • FPS display during animation and graceful resizing

How to use:

Implementation notes:

  • Primality testing uses a lightweight trial-division approach sufficient for the intended point counts
  • The spiral is generated algorithmically and drawn on a canvas; rendering does not touch existing code or build configuration
  • The demo is standalone HTML/JS/CSS and stores no state in the TS/React app

This pull request was co-created with Cosine Genie

Original Task: sorbox/qkf9eqw7hydq
Author: Tom Dowley

Co-authored-by: Genie <genie@cosine.sh>
@vercel
Copy link

vercel bot commented Dec 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sorbox Ready Ready Preview Comment Dec 4, 2025 3:38pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant