File:population-earth1.png: Difference between revisions

Updated the "preserve sums" syntax (it's '$' now, not '_')
(Updated the "preserve sums" syntax (it's '$' now, not '_'))
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
TODO: try making another [[:File:blue-marble-posterized.png]] where i blur it before posterizing, so small lakes don't appear at all. be sure to check that most of the coastlines would still align with [[:File:borders-black-on-white.png]]. we'll see how it turns out
TODO: try making another [[:File:blue-marble-posterized.png]] where i blur it before posterizing, so small lakes don't appear at all. be sure to check that most of the coastlines would still align with [[:File:borders-black-on-white.png]]. we'll see how it turns out
TODO: also try just changing the image generator code to lighten the blue parts (<code>r *= 1.1</code> and <code>g *= 1.1</code> perhaps - and if forests and deserts look less distinguishable from each other, so be it). Note this might still not be good enough as some image downscaling algorithms aren't gamma-corrected, so dark-ish edges between blue and (green or yellow) may still be enough to look like population. we'll see.
TODO: also try just changing the image generator code to lighten the blue parts (<code>r *= 1.1</code> and <code>g *= 1.1</code> perhaps - and if forests and deserts look less distinguishable from each other, so be it). Note this might still not be good enough as some image downscaling algorithms aren't gamma-corrected, so dark-ish edges between blue and (green or yellow) may still be enough to look like population. we'll see.
TODO: probably just gonna use [[File:continents-black-on-white.png]] instead of [[File:blue-marble-posterized.png]]. Not as aesthetic but still nice enough, and not as prone to misinterperetation. Maybe call it [[File:population-earth2.png]]? or even just [[File:population.png]]?
-->
-->


Line 23: Line 24:
   
   
  # resize things to fit the 'earth' background
  # resize things to fit the 'earth' background
  pop :: _earth.r # the '_' preserves the total population
  pop :: $earth.r # the '$' preserves the total population
  borders :: earth.r
  borders :: earth.r
  borders *= 6 # brighten the lines
  borders *= 6 # brighten the lines