main
size s1 = 0, 0
size s2 = 10, 50
size s3 = screen.get size
print s3.get width // LOG: 240
print s3.get height // LOG: 320
Size represents an area in two dimensional space. Its members are width and height, which are non-negative integers.
main
size s1 = 0, 0
size s2 = 10, 50
size s3 = screen.get size
print s3.get width // LOG: 240
print s3.get height // LOG: 320
Creates a new size that is an exact copy of sourceSize.
main
size s1 = 10,20
size s2 = s1.copy // Size having width 10 and height 20
Creates a new size with the given width and height.
main
size s = 10,20 // Size having width 10 and height 20
Comparision
main
size s1 = 10,20
size s2 = 20,10
bool result = s1 == s2 // result == false
Comparision
main
size s1 = 10,20
size s2 = 20,10
bool result = s1 != s2 // result == true
Get the value of the width.
main
size s = 10,20
int width = s.get width // width == 10
Get the value of the height.
main
size s = 10,20
int height = s.get height // height == 20
Assing a new value for the width.
main
size s = 10,20
s.set width to 100 // s == 100, 20
Assing a new value for the height.
main
size s = 10,20
s.set height to 100 // s == 10, 100