File:population-earth2.png
Size of this preview: 800 × 400 pixels. Other resolution: 2,160 × 1,080 pixels.
Original file (2,160 × 1,080 pixels, file size: 399 KB, MIME type: image/png)
Summary
An isochromic world population map.
Black ink represents people.
Map projection: Equirectangular (geographic) (with text covering where Antarctica would be).
Dependencies:
- File:population.data-float64-8640x4320
- File:continents-black-on-white.png
- File:borders-black-on-white.png
Image generator code:
## All input files are 8640x4320, which will be scaled down to 2160x1080
# load the base layer
main.r << data/continents-black-on-white.png
main.r @@ width/4
main.r @@ height/4
main.g := main.r
main.b := main.r
# adjust the color (make the continents yellow on blue)
main.r *= -0.4
main.r += 1
main.g *= -0.4
main.g += 1
main.b *= 0.4
main.b += 0.6
# add the borders
borders << data/borders-black-on-white.png
borders @@ negative
borders @@ _width/4
borders @@ _height/4
main.r >= borders
main.g >= borders
main.b >= borders
borders @@ delete
# add the population
pop << data/population.data-float64-8640x4320
pop @@ _width/4 # the '_' preserves the total population
pop @@ _height/4 # same
pop /= 440000 # max people per pixel
pop @@ spread
pop @@ negative
main.r <= pop
main.g <= pop
main.b <= pop
pop @@ delete
# save
main >> data/population-earth2.png
See also
- File:population-earth1.png - an older and slightly messier version.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 01:45, 1 March 2024 | 2,160 × 1,080 (399 KB) | Elie (talk | contribs) | An isochromic world population map. Equirectangular projection. '''Black ink represents people.''' Dependencies: * File:population.data-float64-8640x4320 * File:continents-black-on-white.png * File:borders-black-on-white.png Image generator code: <syntaxhighlight> ## All input files are 8640x4320, which will be scaled down to 2160x1080 # load the base layer main.r << data/continents-black-on-white.png main.r @@ width/4 main.r @@ height/4 main.g := ma... |
You cannot overwrite this file.
File usage
The following page uses this file: