_
This commit is contained in:
14
UI/Objects/nr_objects/Circle.py
Normal file
14
UI/Objects/nr_objects/Circle.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pygame.draw
|
||||
|
||||
|
||||
class Circle:
|
||||
def __init__(self, center, radius, color, scene):
|
||||
self.center = center
|
||||
self.radius = radius
|
||||
self.color = color
|
||||
self.scene = scene
|
||||
|
||||
def blit(self):
|
||||
pygame.draw.circle(self.scene.s, self.color,
|
||||
self.scene.matrix @ self.center,
|
||||
self.radius * self.scene.pd_)
|
Reference in New Issue
Block a user