mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-17 11:06:23 +02:00
Icons rounding.
This commit is contained in:
parent
e9f422be84
commit
289327887c
4 changed files with 298 additions and 156 deletions
|
@ -18,6 +18,7 @@ sys.path.append('../lib')
|
|||
import svg
|
||||
|
||||
icons_file_name = '../icons/icons.svg'
|
||||
icon_grid_file_name = '../icon_grid.svg'
|
||||
|
||||
def draw_icon(icon):
|
||||
output_file.write('<path d="' + icon['path'] + '" ' + \
|
||||
|
@ -86,7 +87,7 @@ for icons_to_draw in to_draw:
|
|||
y += step
|
||||
height += step
|
||||
|
||||
output_file = svg.SVG(open('icon_grid.svg', 'w+'))
|
||||
output_file = svg.SVG(open(icon_grid_file_name, 'w+'))
|
||||
output_file.begin(width, height)
|
||||
|
||||
for icon in icons:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue