]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/blob - displayio/shape.py
Add pre-commit support.
[hackapet/Adafruit_Blinka_Displayio.git] / displayio / shape.py
1 # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams for Adafruit Industries
2 #
3 # SPDX-License-Identifier: MIT
4
5
6 """
7 `displayio.shape`
8 ================================================================================
9
10 displayio for Blinka
11
12 **Software and Dependencies:**
13
14 * Adafruit Blinka:
15   https://github.com/adafruit/Adafruit_Blinka/releases
16
17 * Author(s): Melissa LeBlanc-Williams
18
19 """
20
21 from displayio.bitmap import Bitmap
22
23 __version__ = "0.0.0-auto.0"
24 __repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
25
26
27 class Shape(Bitmap):
28     """Create a Shape object with the given fixed size. Each pixel is one bit and is stored
29     by the column boundaries of the shape on each row. Each row’s boundary defaults to the
30     full row.
31     """
32
33     def __init__(self, width, height, *, mirror_x=False, mirror_y=False):
34         # pylint: disable=unused-argument
35         """Create a Shape object with the given fixed size. Each pixel is one bit and is
36         stored by the column boundaries of the shape on each row. Each row’s boundary
37         defaults to the full row.
38         """
39         super().__init__(width, height, 2)
40
41     def set_boundary(self, y, start_x, end_x):
42         # pylint: disable=unnecessary-pass
43         """Loads pre-packed data into the given row."""
44         pass