Canvas

class ez_pil.canvas.Canvas(size=None, width=0, height=0, color=0)

Canvas class.

Parameters:
  • size (tuple[int, int] | None) – Size of image, by default None.

  • width (int) – Width of image, by default None.

  • height (int) – Height of image, by default None.

  • color (int | str | tuple[int, int, int] | tuple[int, int, int, int]) – Color of image, by default None.

Raises:

ValueError – When either size or width and height is not a provided