mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-05 12:21:54 +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
|
||||
------------
|
||||
|
||||
### 3D buildings ###
|
||||
|
||||
Simple shapes for walls, shade, and roof.
|
||||
|
||||

|
||||
|
||||
### Trees ###
|
||||
|
||||
Tree leaf types, leaf cycles, and genes.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue