[Chaos_Dotter] Use requestAnimationFrame, batch points per frame, responsive canvas
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, html, javascript
- Domain
- frontend, performance
Research direction
Start with Math_Chaos/Chaos_Dotter/index.html at the listed lines and trace the timer callback, canvas setup, and colorCircle calls. Check how the page currently sizes and redraws the canvas before changing the animation loop. Done means a recognizable Sierpinski triangle appears within one second and the page is usable at 375 px width.
Written by the indexing model from the issue text.
Description
Summary
The demo plots one point per timer tick and redraws every polygon vertex each tick, so the fractal takes minutes to appear. The page also has min-width: 820px and a fixed 800x600 canvas, so it does not work well on phones.
Location
Math_Chaos/Chaos_Dotter/index.html:12-14Math_Chaos/Chaos_Dotter/index.html:48Math_Chaos/Chaos_Dotter/index.html:143-165
Evidence
One colorCircle(centerX, centerY, 1) per tick, plus N vertex circles redrawn per tick.
Expected
Thousands of points appear per frame, and vertices are drawn once. Optional extras: rules such as "no vertex twice in a row", a reset button, and PNG export.
Proposed fix
- Use
requestAnimationFrameand plot, for example, 2,000 points per frame into anImageDatabuffer. - Draw vertices once on restart.
- Make the canvas size follow the container (
devicePixelRatio-aware). - Add restricted-choice variants (e.g. “cannot pick the previous vertex”, which gives interesting patterns for n=4).
Acceptance criteria
- A Sierpinski triangle is recognizable within 1 s
- Page is usable at 375 px width
Repository audit, November 2026 · Phase 9 · New features · evidence: found by code reading · ref chaos-native-029
Generated by Claude Code
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
c++ easy first-contributor first-contributors good first issue help wanted up-for-grabs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
fork-commit-merge/fork-commit-merge#8709 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
ClickHouse/clickhouse-odbc#680 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ionut-mihalache/aqua#31 · 1 comment ·