39 lines
557 B
Python
39 lines
557 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Created on Wed Oct 25 16:27:24 2023
|
|
|
|
@author: Lukas
|
|
"""
|
|
import drawsvg as draw
|
|
|
|
length = 1000
|
|
height = 1000
|
|
|
|
x1= 10
|
|
y1= 10
|
|
r= 10
|
|
ax= 60
|
|
ay= 60
|
|
versatz=30
|
|
v=1
|
|
g=1
|
|
|
|
d = draw.Drawing(length, height, origin=(0, 0))
|
|
# Draw a circle
|
|
|
|
#x =x1
|
|
y =y1
|
|
while y <= height:
|
|
x=x1+((versatz)*v)
|
|
while x <= length:
|
|
d.append(draw.Circle(x, y, r,
|
|
fill='red', stroke_width=0, stroke='black'))
|
|
x =x+ax
|
|
y =y+ay
|
|
v= -((1-g)/2)
|
|
g=-g
|
|
|
|
|
|
d.save_svg('example.svg')
|
|
|