diff options
| author | Anson He <ansonhe1997@gmail.com> | 2020-07-28 17:03:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-28 17:03:10 +0800 |
| commit | c010cc2c414a98caa1aa510497666bf017c792ab (patch) | |
| tree | dac841881017719bae0654a64cbc52f35cf6977a /shared-bindings/vectorio/VectorShape.c | |
| parent | 36ef3476de945071da9c1274e5b4d8bcdcc13d13 (diff) | |
| parent | debbf1028adee2309ed991c90517c50d5eb13bfb (diff) | |
Merge pull request #1 from adafruit/main
Merged main to fork
Diffstat (limited to 'shared-bindings/vectorio/VectorShape.c')
| -rw-r--r-- | shared-bindings/vectorio/VectorShape.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared-bindings/vectorio/VectorShape.c b/shared-bindings/vectorio/VectorShape.c index c512bcd54..957e9dc08 100644 --- a/shared-bindings/vectorio/VectorShape.c +++ b/shared-bindings/vectorio/VectorShape.c @@ -20,7 +20,7 @@ //| class VectorShape: -//| def __init__(self, shape: vectorio.Polygon, pixel_shader: displayio.Palette, x: int=0, y: int=0): +//| def __init__(self, shape: Polygon, pixel_shader: displayio.Palette, x: int=0, y: int=0) -> None: //| """Binds a vector shape to a location and pixel color //| //| :param shape: The shape to draw. @@ -93,7 +93,7 @@ STATIC mp_obj_t vectorio_vector_shape_make_new(const mp_obj_type_t *type, size_t } -//| x: int = ... +//| x: int //| """X position of the center point of the shape in the parent.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_x(mp_obj_t self_in) { @@ -119,7 +119,7 @@ const mp_obj_property_t vectorio_vector_shape_x_obj = { }; -//| y: int = ... +//| y: int //| """Y position of the center point of the shape in the parent.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_y(mp_obj_t self_in) { @@ -145,7 +145,7 @@ const mp_obj_property_t vectorio_vector_shape_y_obj = { }; -//| pixel_shader: displayio.Palette = ... +//| pixel_shader: displayio.Palette //| """The pixel shader of the shape.""" //| STATIC mp_obj_t vectorio_vector_shape_obj_get_pixel_shader(mp_obj_t self_in) { |
