Wykres commitów

33 Commity (patch-img-open_file)

Autor SHA1 Wiadomość Data
Phil Howard 0df3095b06 PicoVector: Fix bug in polygon iterator.
list(Polygon) should return a list of points, but crashed with non-empty polygons.

We were advancing to the next path and then retriving an invalid point count for building the tuple.

Save the point count before advancing to the next path.
2025-01-16 16:32:34 +00:00
Phil Howard 3a0b049447 PicoVector: Add arbitrary matrix transform. 2025-01-16 16:32:34 +00:00
Phil Howard 09a06bd0a2 PicoVector: Fix bug in Polygon.regular. 2025-01-16 16:32:34 +00:00
Phil Howard 796e7cf338 PicoGraphics: Check for out of range layers. 2025-01-16 16:32:34 +00:00
Phil Howard ff1917c2f6 PicoVector: MPY bindings for line and arc. 2025-01-16 16:32:34 +00:00
Mike Bell 6942bc7329 PicoVector: Add optional text max width and max height. 2025-01-16 16:32:34 +00:00
Phil Howard 234ea41f40 PicoVector: Runtime buffer allocation. 2025-01-16 16:32:34 +00:00
Phil Howard e04e6efea6 PicoVector: Remove (ifdef guard) debug functions. 2025-01-16 16:32:34 +00:00
Phil Howard 230d9facab PicoVector: Refactor text multiline support.
Drop dependence on null terminated strings, and for a final linebreak.

Bound all text processing using the text length.
2025-01-16 16:32:34 +00:00
Phil Howard 9989135926 PicoVector: Improve text rendering and control. 2025-01-16 16:32:34 +00:00
Phil Howard d4e0d660b9 PicoVector: Big refactor, ppp primitives.
* Remove Polygon types in favour of primitives .circle, .rectangle etc
* Add a new Transform type for building up transformation matrices
* Add support to set/clear transform on drawing
2025-01-16 16:32:34 +00:00
Phil Howard 34cd133cd1 PicoVector: Rewrite around new linked-lists poly. 2025-01-16 16:32:34 +00:00
Phil Howard 5c03d8e30a PicoVector: Use tile renderer for all pens. 2025-01-16 16:32:34 +00:00
Phil Howard 80c52183fc PicoVector: Support float types in MicroPython bindings. 2025-01-16 16:32:34 +00:00
Phil Howard 8212fb715b PicoVector: Remove malloc from MicroPython bindings. 2025-01-16 16:32:34 +00:00
Phil Howard 5ce870fd3f PicoVector: Remove alright_fonts.cpp from cmake. 2025-01-16 16:32:34 +00:00
Phil Howard 29ee929d14 PicoVector: Break things until they work. 2025-01-16 16:32:34 +00:00
Phil Howard dc251a42bf PicoVector: alright-fonts bringup. 2025-01-16 16:32:34 +00:00
Phil Howard 6a8a7c4a0c PicoVector: Suppress errors.
Ignore sign compare and narrowing conversion errors in pretty-poly.h.
2025-01-16 16:32:34 +00:00
Phil Howard d479923133 PicoVector: Rewrite MicroPython bindings. 2025-01-16 16:32:34 +00:00
Phil Howard 517f8ae1cd global: Remove the STATIC macro.
Reflect the changes proposed in micropython/micropython#13763.
2024-06-03 13:44:23 +01:00
Phil Howard 47e3aed88f MicroPython: Switch to mp_obj_malloc_with_finaliser. 2024-06-03 11:40:29 +01:00
Phil Howard ae7e6e8c6c PicoVector: Add a bounds method for polygon bounds. 2023-09-12 13:18:33 +01:00
Mike Bell 841c141ebf Interpolators for line segment, and faster transforms 2023-09-10 13:22:21 +01:00
Phil Howard 231ceb70f2 PicoVector: Add basic polygon center of mass function. 2023-09-06 10:12:08 +01:00
Phil Howard 591058fb12 PicoVector: Store pointer to PP mem. 2023-08-22 09:32:28 +01:00
Phil Howard cfe8b3c096 PicoVector: Text rotation support. 2023-08-22 09:32:28 +01:00
Phil Howard 9d0501a43c PicoVector: Polygon iter interface. 2023-08-22 09:32:28 +01:00
Phil Howard 7c5ebfce8c PicoVector: Matrix transforms and polygon type. 2023-08-22 09:32:28 +01:00
Phil Howard 61c9d7e9b6 PicoVector: Experimental matrix transforms. 2023-08-22 09:32:28 +01:00
Phil Howard c7d9fe411a PicoVector: Bugfixes and font/aa options. 2023-08-22 09:32:28 +01:00
Phil Howard 9e430fd68c PicoVector: Better separation of concerns, add Alright Fonts support. 2023-08-22 09:32:28 +01:00
Phil Howard c9a8d5ef49 PicoVector: Move polygon drawing to a new home. 2023-08-22 09:32:28 +01:00