Function toImage

  • Creates a p5.Image from an existing Tensor object.

    Parameters

    • t: Tensor

      the image as a tensor

    Returns Promise<Image>

    the image