Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

draw circle pygame

import pygame
pygame.init()
screen = pygame.display.set_mode((x, y)) #x and y are height and width

pygame.draw.circle(screen, (r,g,b), (x, y), R, w) #(r, g, b) is color, (x, y) is center, R is radius and w is the thickness of the circle border.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #draw #circle #pygame
ADD COMMENT
Topic
Name
4+6 =