reworked image generation

This commit is contained in:
weckyy702
2021-04-26 11:50:42 +02:00
parent 968bb53883
commit 4a8f3649c8
5 changed files with 69 additions and 18 deletions

View File

@@ -43,7 +43,8 @@ class NassiShneidermanDiagram:
height = scope.get_height()
with NSD_writer(output_path, width, height):
y = 0
for instruction in scope:
for instruction in scope:
print(instruction.instruction_text)
y = instruction.convert_to_image(0, y, width)
@staticmethod