mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api/media.ev3dev.Image: Add default args for empty()
Implementation has been changed so that omitting args gives an empty image the same size as the screen.
This commit is contained in:
@@ -190,8 +190,10 @@ class Image:
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def empty(width, height):
|
||||
"""Creates a new empty :class:`Image` object.
|
||||
def empty(width=178, height=128):
|
||||
"""empty(width=<screen width>, height=<screen height>)
|
||||
|
||||
Creates a new empty :class:`Image` object.
|
||||
|
||||
Arguments:
|
||||
width (int):
|
||||
|
||||
Reference in New Issue
Block a user