syphon.types

 1from typing import Any, Tuple
 2
 3Texture = Any
 4Region = Tuple[int, int, int, int]
 5Size = Tuple[int, int]
 6
 7"""
 8Custom types for representing textures, regions, and sizes.
 9
10Attributes:
11- Texture (Any): A type representing a texture.
12- Region (Tuple[int, int, int, int]): A tuple representing a region with (x, y, width, height).
13- Size (Tuple[int, int]): A tuple representing a size with (width, height).
14"""
Texture = typing.Any
Region = typing.Tuple[int, int, int, int]
Size = typing.Tuple[int, int]

Custom types for representing textures, regions, and sizes.

Attributes:

  • Texture (Any): A type representing a texture.
  • Region (Tuple[int, int, int, int]): A tuple representing a region with (x, y, width, height).
  • Size (Tuple[int, int]): A tuple representing a size with (width, height).