Pygame dibujar línea

Ejemplos de código

13
0

pygame dibujar círculo

window = pygame.display.set_mode(300, 300)
colour = (0,0,255) #green
circle_x_&_y = (150, 50)
circle_radius = 12
border_width = 0 #0 = filled circle

pygame.draw.circle(window, colour, circle_x_&_y, circle_radius, border_width)
7
0

pygame circle

circle(surface, color, center, radius)
6
0

pygame dibujar línea

pygame.draw.line(SURFACE, COLOR, START_POS, END_POS, WIDTH)
3
0

sintaxis de pygame draw rect

pygame.draw.rect(SURFACE, RGB_COLOR, (X, Y, WIDTH, HEIGHT))
2
0

dibujar una línea pygame

pygame.draw.line(surface, color, start_pos, end_pos, width)
1
0

pygame.dibujar.rect()

gameDisplay = pygame.display.set_mode((width,height))
bright_blue =(0,255,255)

# draw rectangle 
pygame.draw.rect(gameDisplay, bright_blue ,(611,473,100,50))

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................