Changes as requested for Bitmap docs.

This commit is contained in:
James Carr 2021-04-23 14:41:47 +01:00
parent 07059dd373
commit 0be610fd2b
No known key found for this signature in database
GPG Key ID: 14665603BA81F181

View File

@ -45,7 +45,7 @@
//| the bitmap data is packed into the memoryview with unspecified padding. //| the bitmap data is packed into the memoryview with unspecified padding.
//| //|
//| A Bitmap can be treated as a buffer, allowing its content to be //| A Bitmap can be treated as a buffer, allowing its content to be
//| viewed and modified using e.g., with `ulab.numpy.frombuffer`, //| viewed and modified using e.g., with ``ulab.numpy.frombuffer``,
//| but the `displayio.Bitmap.dirty` method must be used to inform //| but the `displayio.Bitmap.dirty` method must be used to inform
//| displayio when a bitmap was modified through the buffer interface. //| displayio when a bitmap was modified through the buffer interface.
//| //|
@ -125,7 +125,7 @@ const mp_obj_property_t displayio_bitmap_height_obj = {
//| def __getitem__(self, index: Union[Tuple[int, int], int]) -> int: //| def __getitem__(self, index: Union[Tuple[int, int], int]) -> int:
//| """Returns the value at the given index. The index can either be an x,y tuple or an int equal //| """Returns the value at the given index. The index can either be an x,y tuple or an int equal
//| to `y * width + x`. //| to ``y * width + x``.
//| //|
//| This allows you to:: //| This allows you to::
//| //|
@ -134,7 +134,7 @@ const mp_obj_property_t displayio_bitmap_height_obj = {
//| //|
//| def __setitem__(self, index: Union[Tuple[int, int], int], value: int) -> None: //| def __setitem__(self, index: Union[Tuple[int, int], int], value: int) -> None:
//| """Sets the value at the given index. The index can either be an x,y tuple or an int equal //| """Sets the value at the given index. The index can either be an x,y tuple or an int equal
//| to `y * width + x`. //| to ``y * width + x``.
//| //|
//| This allows you to:: //| This allows you to::
//| //|