-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlauncher.py
25 lines (21 loc) · 933 Bytes
/
launcher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from source.utils import print_info, success, rgb
from source.pixelarray import PixelArray
from source.matrix import Matrix
from source.dict import Dict
matrix_dict = Dict()
matrix_matrix = Matrix()
matrix_pixelarray = PixelArray()
if __name__ == '__main__':
print_info()
print("\nset_pixels funksiyalari sinovdan o'tkazilmoqda...")
matrix_dict.set_pixels(rgb(0, 128, 255))
matrix_matrix.set_pixels(rgb(128, 0, 255))
matrix_pixelarray.set_pixels(rgb(128, 192, 255))
print("\nkonvertatsiya funksiyalari sinovdan o'tkazilayapti...")
matrix_dict.from_matrix(matrix_matrix.get_pixels())
matrix_dict.from_pixelarray(matrix_pixelarray.get_pixels())
matrix_matrix.from_dict(matrix_dict.get_pixels())
matrix_matrix.from_pixelarray(matrix_pixelarray.get_pixels())
matrix_pixelarray.from_dict(matrix_dict.get_pixels())
matrix_pixelarray.from_matrix(matrix_matrix.get_pixels())
success()