ЕЕЛоН
 
 
gg
Currently Offline
Recent Activity
1,671 hrs on record
last played on 3 Feb
0.8 hrs on record
last played on 3 Feb
73 hrs on record
last played on 2 Feb
2/23 MENTALITY 11 Dec, 2024 @ 6:23am 
-rep
ЕЕЛоН 28 Jun, 2023 @ 9:30pm 
Дарья Среда
Estriper 21 Jun, 2023 @ 8:27am 
Александр Вторник?
are you ready to play bitch?? 15 Jun, 2023 @ 9:28pm 
мусор ♥♥♥♥♥♥, мамке скажи чтобы вынесла тебя
PROSTOE8LAN 15 Jun, 2023 @ 12:26am 
import numpy as np
from graphics import *
from math import *
def dlina(x1,y1,x2,y2):
return (sqrt(((x1-x2))**2 + (y1-y2)**2))
def serp(x0,y0, r, n):
if n == 0:
return
bebra = 2*np.pi/n
x1 = x0 + r*cos(0*bebra)
y1 = y0 + r*sin(0*bebra)
x2 = x0 + r * cos(1*bebra)
y2 = y0 + r * sin(1*bebra)
x3 = x0 + r * cos(2*bebra)
y3 = y0 + r * sin(2*bebra)
f = Line(Point(x0, y0), Point((x0 + x2) / 2, (y0 + y2) / 2))
f.setOutline("blue")
f.draw(win)
f = Line(Point(x0,y0), Point((x0+x1)/2, (y0+y1)/2))
f.setOutline("blue")
f.draw(win)
f = Line(Point((x0+x1)/2, (y0+y1)/2), Point((x0 + x3) / 2, (y0 + y3) / 2))
f.setOutline("blue")
f.draw(win)
f = Line(Point(x0, y0), Point((x0 + x3) / 2, (y0 + y3) / 2))
f.setOutline("blue")
f.draw(win)




r /= 2

if r < 5:
return
x4 = (x0 + x1) / 2
x5 = (x0 + x2) / 2
x6 = (x0 + x3) / 2
y4 = (y0 + y1) / 2
y5 = (y0 + y2) / 2
y6 = (y0 + y3) / 2
PROSTOE8LAN 15 Jun, 2023 @ 12:26am 
serp(x4, y4, r, n)
serp(x5, y5, r, n)
serp(x6, y6, r, n)





winWidth = 800
winHeight = 600
win = GraphWin("Квадраты", winWidth, winHeight)
win.setBackground("white")
x0 = 400
y0 = 300
f = Point(x0,y0)
f.setOutline("red")
f.draw(win)

n = 3
serp(x0,y0, 200, n)



win.getMouse()
win.close()