Info_edupage/GUI/Objects/nr_objects/Circle.py
2021-09-13 20:21:11 +02:00

18 lines
417 B
Python

import pygame.draw
class Circle:
object_type = "nr"
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_)