top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Oct 9, 2025
  • 1 min read
import pygame, math
pygame.init()
screen = pygame.display.set_mode((600,600))
clock = pygame.time.Clock()
angle = 0
running = True
while running:
	screen.fill((60,0,0))
	for e in pygame.event.get():
		if e.type == pygame.QUIT: running = False
	pygame.draw.circle(screen, (0,255,0),(250,250),100,2)
	x = 250 + 100*math.cos(angle)
	y = 250 + 100*math.sin(angle)
	pygame.draw.line(screen, (240,180,160),(250,250),(x,y),2)
	angle += 0.02
	pygame.display.flip()
	pygame.draw.rect(screen, (255,20,60), [280,300,15,10], 0)
	pygame.display.update()
	clock.tick(60)
pygame.quit()

#Python #PythonCoding #VSC










 
 
 

Recent Posts

See All

1 Comment


Guest
Oct 09, 2025

Try to run it.

Like
bottom of page