Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to create a rect with an image

import pygame
pygame.init()

image = pygame.image.load('an_image.png').convert() # or .convert_alpha()
image_rect = image.get_rect()
 
PREVIOUS NEXT
Tagged: #How #create #rect #image
ADD COMMENT
Topic
Name
1+7 =