You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 pairy1:int#Second value of the first ordered pairx2:int#First value of the second ordered pairy2:int#Second value of the second ordered paircolor:int=[0,0,0] #Red, Green, Bluewidth:int=2#Width of the linestyle: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:inty:intwidth:intheight:intcolor:int=[0,0,0] #Red, Green, Bluefilled:bool=Trueedge_width:int=2#Only relevant when filled is False