factorcircles
✓ Published0🌍 Public
Aaknauft
Last edited Nov 2, 2017
Created on Nov 2, 2017
This visualization represents a positive integer as nested circles, where each factor of the number determines how many smaller circles are arranged around the circumference of a parent circle. The recursive algorithm draws one level per prime factor, with the circle radius shrinking according to the factor’s value. Users can input a custom number, toggle outlines, highlight prime numbers with red fills, or reverse the nesting order. Built with p5.js, it uses the canvas API for drawing and the `createInput` and `createButton` DOM elements for controls.
AI-generated description