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] | Gradient = 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 | Gradient, optional) – Color or Gradient of image, by default None
- Raises:
ValueError – When either
sizeorwidth and heightis not a provided