From c05b7628dc27c844d61520050f4277090e64d818 Mon Sep 17 00:00:00 2001 From: LukasGro Date: Tue, 24 Oct 2023 15:09:53 +0000 Subject: [PATCH] Upload files to "" --- Form generator 1.0.py | 43 +++++++++++++++++++++++++++++++++++ Form generator 1.1.py | 53 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 Form generator 1.0.py create mode 100644 Form generator 1.1.py diff --git a/Form generator 1.0.py b/Form generator 1.0.py new file mode 100644 index 0000000..655c4f8 --- /dev/null +++ b/Form generator 1.0.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +""" +Created on Tue Oct 24 15:14:56 2023 + +@author: Lukas +""" +import matplotlib.pyplot as plt + +from PIL import Image +#from PIL.ExifTags import TAGS + +from PIL import Image, ImageDraw + +länge = 1000 +höhe = 1000 + +x1= 10 +y1= 10 +r= 25 +ax= 60 +ay= 60 + +im = Image.new('RGB', (länge, höhe), (128, 128, 128)) +draw = ImageDraw.Draw(im) + +#x =x1 +y =y1 +while y <= höhe: + x=x1 + while x <= länge: + draw.ellipse((x-r, y-r, x+r, y+r), fill=(255, 0, 0), outline=(0, 0, 0)) + x =x+ax + y =y+ay + + + + + + +#draw.rectangle((200, 100, 300, 200), fill=(0, 192, 192), outline=(255, 255, 255)) +# draw.line((350, 200, 450, 100), fill=(255, 255, 0), width=10) + +im.save("C:/Users/Lukas/Desktop/test.png") \ No newline at end of file diff --git a/Form generator 1.1.py b/Form generator 1.1.py new file mode 100644 index 0000000..366e722 --- /dev/null +++ b/Form generator 1.1.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +""" +Created on Tue Oct 24 16:25:05 2023 + +@author: Lukas +""" +# -*- coding: utf-8 -*- +""" +Created on Tue Oct 24 15:14:56 2023 + +@author: Lukas +""" +import matplotlib.pyplot as plt + +from PIL import Image +#from PIL.ExifTags import TAGS + +from PIL import Image, ImageDraw + +länge = 1000 +höhe = 1000 + +x1= 25 +y1= 25 +r= 25 +ax= 50 +ay= 60 +versatz= 25 +v=1 +g=1 +im = Image.new('RGB', (länge, höhe), (128, 128, 128)) +draw = ImageDraw.Draw(im) + +#x =x1 +y =y1 +while y <= höhe: + x=x1+((versatz)*v) + while x <= länge: + draw.ellipse((x-r, y-r, x+r, y+r), fill=(255, 0, 0), outline=(0, 0, 0)) + x =x+ax + y =y+ay + v= -((1-g)/2) + g=-g + + + + + + +#draw.rectangle((200, 100, 300, 200), fill=(0, 192, 192), outline=(255, 255, 255)) +# draw.line((350, 200, 450, 100), fill=(255, 255, 0), width=10) + +im.save("C:/Users/Lukas/Desktop/test.png") \ No newline at end of file