mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-07 05:11:53 +02:00
Add 3D buildings to readme.
This commit is contained in:
parent
b4fa7dd0e2
commit
25a61f5a14
3 changed files with 11 additions and 6 deletions
BIN
doc/buildings.png
Normal file
BIN
doc/buildings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 197 KiB |
|
@ -99,6 +99,12 @@ Some icons can be combined into new icons.
|
||||||
Map elements
|
Map elements
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
### 3D buildings ###
|
||||||
|
|
||||||
|
Simple shapes for walls, shade, and roof.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Trees ###
|
### Trees ###
|
||||||
|
|
||||||
Tree leaf types, leaf cycles, and genes.
|
Tree leaf types, leaf cycles, and genes.
|
||||||
|
|
|
@ -973,12 +973,11 @@ class Painter:
|
||||||
node.tags["natural"] == "tree" and
|
node.tags["natural"] == "tree" and
|
||||||
"diameter_crown" in node.tags):
|
"diameter_crown" in node.tags):
|
||||||
continue
|
continue
|
||||||
for i in range(8):
|
|
||||||
self.output_file.circle(
|
self.output_file.circle(
|
||||||
float(node.x) + (random.random() - 0.5) * 10,
|
float(node.x) + (random.random() - 0.5) * 10,
|
||||||
float(node.y) + (random.random() - 0.5) * 10,
|
float(node.y) + (random.random() - 0.5) * 10,
|
||||||
float(node.tags["diameter_crown"]) * 1.5,
|
float(node.tags["diameter_crown"]) * 1.2,
|
||||||
color='688C44', fill='688C44', opacity=0.2)
|
color='688C44', fill='688C44', opacity=0.3)
|
||||||
|
|
||||||
# All other nodes
|
# All other nodes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue