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 '_'))
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
Everything in black is population.
Everything in black is population.


Note: Some border lines may be completely obscured by populations (especially India's borders with Bangladesh, Pakistan, and Bhutan). Still better than the opposite (letting the border lines obscure the populations).
'''Note:''' Some border lines may be completely obscured by populations (especially India's borders with Bangladesh, Pakistan, and Bhutan). Still better than the opposite (letting the border lines obscure the populations).
 
'''Note:''' Be careful not to confuse small blue dots (lakes) for small black dots (population). In the next version I'll try to make the blue parts lighter (or erase small bodies of water) so this doesn't happen.
<!--
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: 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]]?
-->


==Methodology==
==Methodology==
Line 17: 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