Skip to content

Sprite objects

Dr_Coomer edited this page Nov 11, 2024 · 1 revision

Sprite object methods and attributes

Methods and attributes of Line

Public attributes

x1:int #First value of the first ordered pair
y1:int #Second value of the first ordered pair
x2:int #First value of the second ordered pair
y2:int #Second value of the second ordered pair
color:int=[0,0,0] #Red, Green, Blue
width:int=2 #Width of the line
style:str="solid" #"solid" for a solid line, "dash" for a dashed line

Public methods

delete() #deletes the object

Methods and attributes of Rectangle

Public attributes

x:int
y:int
width:int
height:int
color:int=[0,0,0] #Red, Green, Blue
filled:bool=True
edge_width:int=2 #Only relevant when filled is False

Public methods

delete() #deletes the object