Py5Image.width

Py5Image.width

The width of the image in units of pixels.

Examples

example picture for width
1
2
3
4
def setup():
    tiles = py5.load_image("tiles.jpg")
    py5.image(tiles, 20, 10)
    py5.rect(55, 10, tiles.width, tiles.height)

Description

The width of the image in units of pixels.

Underlying Processing field: PImage.width

Updated on November 12, 2021 11:30:58am UTC