Skip to content

Commit

Permalink
Doument some variables in draw_satellite
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh authored and ftomassetti committed Nov 3, 2015
1 parent 7090012 commit aa76cc3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worldengine/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,22 @@ def draw_satellite(world, target):

noise_range = 10 # a random value between -noise_range and noise_range will be added to the rgb of each pixel

# These are arbitrarily-chosen elevation cutoffs for 4 different height levels.
# Some color modifiers will be applied at each level
high_mountain_elev = 215
mountain_elev = 175
high_hill_elev = 160
hill_elev = 145

# These are rgb color values which will be added to the noise, if the elevation is greater than the height specified
# These are not cumulative
high_mountain_noise_modifier = (10, 6, 10)
mountain_noise_modifier = (-4, -12, -4)
high_hill_noise_modifier = (-3, -10, -3)
hill_noise_modifier = (-2, -6, -2)

# This is the base "mountain color". Elevations above this size will have their colors interpolated with this
# color in order to give a more mountainous appearance
mountain_color = (50, 57, 28)

## Second loop - this sets each pixel's color based on colors defined in _biome_satellite_colors
Expand Down

0 comments on commit aa76cc3

Please sign in to comment.