[Mandelbrot-Coloring] Add smooth (continuous) colouring and palette controls

Aperta
#394 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

Start with Mandlebrot/Mandelbrot-Coloring/src/Mandelbrot.cpp:11-45 to trace how calculate() returns the iteration count and color() maps it to hue. Read the README controls table and inspect the HUD and input handling to find where palette controls and the current palette display belong. Done means smooth colouring can be toggled, at least three palettes can be selected at runtime, and the README controls table is updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: mandelbrot good first issue priority: P3 size: S type: enhancement

Summary

The project is named "Coloring", but colouring is a plain hue = iterations % 360 with fixed saturation, which gives visible bands. Smooth (normalised) iteration count and a few selectable palettes would match the name and make zoomed images look much better.

Location

  • Mandlebrot/Mandelbrot-Coloring/src/Mandelbrot.cpp:11-45

Evidence

calculate() returns an integer iteration count and color() maps it with iterations % 360 (lines 14 and 21), so neighbouring pixels with different counts jump by one hue degree.

Expected

Optional continuous colouring: nu = n + 1 - log2(log|z_n|), escape radius >= 2^8 for accuracy, mapped through a selectable palette (HSV wheel, cosine palette, histogram equalisation).

Proposed fix

Return |z| together with the count from calculate, compute nu, add keys (e.g. C to cycle palettes, H for histogram colouring), and show the current palette in the HUD.

Acceptance criteria

  • Toggleable smooth colouring with no visible banding at the default view
  • At least 3 palettes selectable at runtime
  • README controls table updated

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref fractals-equations-016


Generated by Claude Code

Lingua principale
C++
Stelle
2
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ibra-kdbra/Math-Problems

Tutte le issue di ibra-kdbra/Math-Problems

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.