Files
simplex-chat/apps
another-simple-pixel 19318576f3 docs: clarify formula derivation and dev-only state
Three documentation/marker additions surfaced by an engineer-v1 audit:

- ChatWallpaper.kt: the per-mode/per-element constants used by the theme
  color formula were a wall of magic numbers. Add a header explaining
  what each parameter controls and where the values came from
  (empirically tuned via the dev UI in Appearance.kt).
- Appearance.kt: surround the module-level FormulaDevTools state
  (formulaSavedParams, patternScaleDragging) with a prominent banner
  marking it dev-only. The dev UI is shipped in the current build but
  must be removed before reaching end users; the search-tag makes that
  trivial later.
- Color.kt: solveCubic had no docstring; the 1e-10f thresholds looked
  like magic. Document Cardano's method, the maxChromaForMatrix caller
  context, and the numerical-stability rationale for the thresholds.

Pure comment additions; no behavior change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-13 13:36:33 -07:00
..
2025-07-08 12:22:57 +01:00