import sys
import time,sched
from threading import Timer
import datetime
import numpy as np
import pygame
from pygame import surface
from pygame._sprite import Group
import threading
import math
class lu:
def __init__(self):
self.x = self
self.y = self
self.z = self
self.x1 = self
self.y1 = self
self.color = self
self.screen = self
self.p = self
def zhuanhuan(self, x, y, z):
shiju = 300
self.x1 = shiju * x / z
self.y1 = shiju * y / z
# p3.append((self.x1, self.y1))
# pygame.draw.polygon(screen, (0, 244, 0), self.p)
# return (self.x1,self.y1)
pygame.init() # 初始化pygame
size = width, height = 1100, 900 # 设置窗口大小
screen = pygame.display.set_mode(size) # 显示窗口
color = (255, 255, 255)
f = False
fcclock = pygame.time.Clock()
# for i in range(6):
h1 = lu()
h1.x = 0
h1.y = 0
h1.width = 662
h1.height = 35
h1.screen = screen
p3 = []
z = [{
'x1': 114, 'y1': 140, 'z1': 150}, {
'x1': 594, 'y1': 11, 'z1': 350}, {
'x1': 700, 'y1': 280, 'z1': 450},
]
#ax=70
#ay=580
#bx=160
#by=300
#cx=200
#cy=580
image = pygame.image.load("1.png")
img=pygame.image.load("1.png").convert_alpha()
def huizhi(x, y, z):
shiju = 300
x1 = shiju * x / z
y1 = shiju * y / z
# p.append((x1,y1))
return x1, y1
zhuan=False
ax=0
ay=0
by=0
bx=0
cx=