This commit is contained in:
2021-09-13 20:32:50 +02:00
parent 5b86a84488
commit 657ab6f634
25 changed files with 31 additions and 31 deletions

View File

@@ -0,0 +1,17 @@
import pygame.draw
class Line:
object_type = "nr"
def __init__(self, a, b, width, color, scene):
self.a = a
self.b = b
self.width = width
self.color = color
self.scene = scene
def blit(self):
pygame.draw.line(self.scene.s, self.color, self.scene.matrix @ self.a, self.scene.matrix @ self.b,
max(1, int(self.width * self.scene.pd)))