Canvas#
- class easy_pil.canvas.Canvas(size: Tuple[int, int] | None = None, width: int = 0, height: int = 0, color: int | str | Tuple[int, int, int] | Tuple[int, int, int, int] = 0)#
Canvas class
- Parameters:
size (Tuple[int, int], optional) – Size of image, by default None
width (int, optional) – Width of image, by default None
height (int, optional) – Height of image, by default None
color (Color, optional) – Color of image, by default None
- Raises:
ValueError – When either
size
orwidth and height
is not a provided