bugfix: corrected comment content

This commit is contained in:
waltem01 2024-02-15 09:31:34 +01:00
parent 10d61d17ee
commit 0ff0f2ecad

View File

@ -293,7 +293,7 @@ class Matrix(SampleBase):
def set_image(self, url: str):
self.image = Image.open(requests.get(url, stream=True).raw)
# display rectangle at position with dimensions in current color
# display image at position with dimensions in current color
def display_image(self, x: int, y: int, w: int|None = None, h: int|None = None):
# resize image to specified or max size
self.image.resize((w or self.matrix.width, h or self.matrix.height), Image.ANTIALIAS)