Info_edupage/UI/Objects/nr_objects/Circle.py

18 lines
417 B
Python
Raw Normal View History

2021-09-01 17:32:53 +02:00
import pygame.draw
class Circle:
2021-09-06 18:32:02 +02:00
object_type = "nr"
2021-09-01 17:32:53 +02:00
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_)