fixed another mistake in code_to_image @weckyy702
This commit is contained in:
Binary file not shown.
@@ -102,7 +102,7 @@ def draw_while_loop_back(condition: str, x: int, y: int, xsize: int, ysize: int)
|
|||||||
|
|
||||||
def NSD_save(filename: str):
|
def NSD_save(filename: str):
|
||||||
"""Save the created file"""
|
"""Save the created file"""
|
||||||
img.save(filename + datei_endung ,".png")
|
img.save(filename + datei_endung ,"PNG")
|
||||||
|
|
||||||
#x_offset , y_offset, x_size, y_size = draw_while_loop("lol", 0, 0, 100, 200)
|
#x_offset , y_offset, x_size, y_size = draw_while_loop("lol", 0, 0, 100, 200)
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -6,3 +6,7 @@ def nassi(filepath:str, output_path: str):
|
|||||||
NSD = NassiShneidermanDiagram(False)
|
NSD = NassiShneidermanDiagram(False)
|
||||||
NSD.load_from_file(filepath)
|
NSD.load_from_file(filepath)
|
||||||
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)
|
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
"""Debugging"""
|
||||||
|
nassi("res/input/input.java", "res/output")
|
||||||
Reference in New Issue
Block a user