Recolor desert farm Stommel with colorblind-safe earth tones#28
Merged
Conversation
ENERGY_COLORS palette swapped for a muted earth-tone palette tuned for deuteranopia/protanopia separation by luminance: Chemical #0F793D (forest green) -> #7A8C5C (olive, L≈129) Radiative #FFCC33 (gold) -> #E5C16E (warm sand, L≈194) Thermal #CC3333 (red) -> #7B3F3F (deep rust, L≈81) Mechanical #336699 (steel blue) -> #4F6B82 (slate, L≈101) All pairwise luminance gaps >=20 -> distinguishable in grayscale and under all three CVD types. Footer link color updated to match. Regenerated docs/desert_farm_stommel.html.
This was referenced Apr 29, 2026
madsCodeBuddy
added a commit
that referenced
this pull request
Apr 29, 2026
The merge of PR #30 (refactor) resolved its conflict with PR #28 (earth tones) by taking the refactor branch's old ENERGY_COLORS values (#0F793D / #FFCC33 / #CC3333 / #336699), reverting #28's earth-tone palette in the dict. The CSS footer link color was preserved as #7A8C5C, leaving the file in an inconsistent state where the legend swatches and ellipse fills used the old palette while the page accent used the new one. Restoring the earth-tone palette and regenerating the HTML: Chemical #0F793D -> #7A8C5C (olive) Radiative #FFCC33 -> #E5C16E (warm sand) Thermal #CC3333 -> #7B3F3F (deep rust) Mechanical #336699 -> #4F6B82 (slate) Same palette and same colorblind-safety reasoning as PR #28.
madsCodeBuddy
added a commit
that referenced
this pull request
Apr 29, 2026
* fix: restore earth-tone palette in ENERGY_COLORS after PR #30 merge The merge of PR #30 (refactor) resolved its conflict with PR #28 (earth tones) by taking the refactor branch's old ENERGY_COLORS values (#0F793D / #FFCC33 / #CC3333 / #336699), reverting #28's earth-tone palette in the dict. The CSS footer link color was preserved as #7A8C5C, leaving the file in an inconsistent state where the legend swatches and ellipse fills used the old palette while the page accent used the new one. Restoring the earth-tone palette and regenerating the HTML: Chemical #0F793D -> #7A8C5C (olive) Radiative #FFCC33 -> #E5C16E (warm sand) Thermal #CC3333 -> #7B3F3F (deep rust) Mechanical #336699 -> #4F6B82 (slate) Same palette and same colorblind-safety reasoning as PR #28. * Update header description to match earth-tone palette The page header had 'chemical (green), radiative (gold), thermal (red), mechanical (blue)' baked into the prose. After the palette change to olive/sand/rust/slate, that text would describe colors that no longer match the rendered ellipses.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace
ENERGY_COLORSpalette indocs/build_desert_farm.pywith a colorblind-safe earth-tone palette and regenerate the rendered HTML.Palette change
#0F793Dforest green#7A8C5Colive#FFCC33gold#E5C16Ewarm sand#CC3333red#7B3F3Fdeep rust#336699steel blue#4F6B82slateAll six pairwise luminance gaps are ≥20, so the four colors remain distinguishable in grayscale and under all three CVD types (protanopia, deuteranopia, tritanopia) — verified by Machado et al. (2009) CVD simulation.
The CSS footer link color (
docs/build_desert_farm.pyL332) was also updated to the new Chemical/olive value to keep the page accent consistent.Files changed
docs/build_desert_farm.py— palette dict + footer CSSdocs/desert_farm_stommel.html— regenerated output (size unchanged: 216,861 B)Out of scope
data/datasets/desert_farm_leverage_points.csv) — itsColorcolumn (#013333/#006666/#FF9900) is already colorblind-safe (verified pairwise luminance gaps 35.5/94.6/130.0). No change.add_legendplacement — separate PR.