Add 3D buildings to readme.

This commit is contained in:
Sergey Vartanov 2020-08-24 10:03:32 +03:00
parent b4fa7dd0e2
commit 25a61f5a14
3 changed files with 11 additions and 6 deletions

BIN
doc/buildings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

View file

@ -99,6 +99,12 @@ Some icons can be combined into new icons.
Map elements
------------
### 3D buildings ###
Simple shapes for walls, shade, and roof.
![3D buildings](doc/buildings.png)
### Trees ###
Tree leaf types, leaf cycles, and genes.

View file

@ -973,12 +973,11 @@ class Painter:
node.tags["natural"] == "tree" and
"diameter_crown" in node.tags):
continue
for i in range(8):
self.output_file.circle(
float(node.x) + (random.random() - 0.5) * 10,
float(node.y) + (random.random() - 0.5) * 10,
float(node.tags["diameter_crown"]) * 1.5,
color='688C44', fill='688C44', opacity=0.2)
self.output_file.circle(
float(node.x) + (random.random() - 0.5) * 10,
float(node.y) + (random.random() - 0.5) * 10,
float(node.tags["diameter_crown"]) * 1.2,
color='688C44', fill='688C44', opacity=0.3)
# All other nodes