use nicer color names in renderer
This commit is contained in:
parent
c9b9c8b38d
commit
d6fa4fce23
1 changed files with 2 additions and 1 deletions
|
@ -96,8 +96,9 @@ class MapRenderer:
|
||||||
if access_restriction in access_permissions)
|
if access_restriction in access_permissions)
|
||||||
if areas:
|
if areas:
|
||||||
j += 1
|
j += 1
|
||||||
|
hexcolor = ''.join(hex(int(i*255))[2:].zfill(2) for i in engine.color_to_rgb(color)).upper()
|
||||||
engine.add_geometry(hybrid_union(areas), fill=FillAttribs(color),
|
engine.add_geometry(hybrid_union(areas), fill=FillAttribs(color),
|
||||||
category='groundcolor%s' % j, item=j)
|
category='groundcolor_%s' % hexcolor, item=j)
|
||||||
|
|
||||||
for height, obstacle in altitudearea.obstacles.items():
|
for height, obstacle in altitudearea.obstacles.items():
|
||||||
engine.add_geometry(obstacle, fill=FillAttribs('#cccccc'), category='obstacles')
|
engine.add_geometry(obstacle, fill=FillAttribs('#cccccc'), category='obstacles')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue