Util module¶
Misc functions
-
center(area)¶ Returns center of area
Parameters: area (Tuple) – (x,y,width,height) rectangle Returns: Center of area Return type: Tuple
-
image_path_main(img_name)¶ Added path to image name from the main images folder
Parameters: img_name (str) – the image name without .something (.png is used) Returns: Path with the image name and .png Return type: str
-
image_path_module(img_name, module_name)¶ Added path to image name from the one of the modules images folder
- Args:s
- img_name (str): the image name without .something (.png is used) module_name (str): module folder name
Returns: Path with the image name and .png Return type: str