Commit Graph

51 Commits

Author SHA1 Message Date
Robin Dunn
fb2e6a8ba9 Update cython to latest version (for Python3.11) 2022-08-07 12:51:39 -07:00
Robin Dunn
40e612923d More Py3.10 integer fixes 2021-12-28 22:25:21 -08:00
Robin Dunn
454ef9b2cd Clean it up 2021-12-17 15:00:24 -08:00
Robin Dunn
272990b131 Merge pull request #1997 from cclauss/codespell
Fix typos discovered by codespell
2021-12-13 20:16:39 -08:00
Scott Talbert
b40ab0f806 Update Cython version to fix NanoSVG issues with Python 3.10 2021-11-18 15:23:00 -05:00
Christian Clauss
25ba122168 Fix typos discovered by codespell 2021-08-07 18:55:49 +02:00
Robin Dunn
8a04577f95 Pin cython version to aid in consistency across platforms 2020-10-09 10:04:13 -07:00
Mesalu
7a9b0161c2 update generated c file 2020-06-15 15:24:23 -07:00
Mesalu
a614427893 Use correct cython boolean type 2020-06-15 15:00:25 -07:00
Mesalu
ecb78f75b1 Preserve bytes immutability.
`nanosvg` modifies its input strings in place (see: 9dd92bbfc6/src/nanosvg.h (L348)),
which will lead to issues attempting to use the same python `bytes` object multiple times. Since bytes objects promise immutability its undesirable to permit them to be modified like this.
To correct for this, we'll copy the bytes object into a new location in memory and pass that new memory location to nanosvg.
2020-06-15 13:34:05 -07:00
Robin Dunn
7aac38dbcb Updates needed for animation updates in wxWidgets 2020-04-01 15:30:27 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
e3ef0db163 Fix typos and trim whitespace 2019-12-31 14:13:20 -08:00
Robin Dunn
840ba95f30 switch wx.svg to use wxPython's version number, instead of its own 2019-11-01 15:24:29 -07:00
Robin Dunn
db9781dcdf fix typos 2019-10-31 12:28:48 -07:00
Robin Dunn
9658a8c426 Some fixes for Py2 2019-09-12 11:58:38 -07:00
Robin Dunn
1b03456463 Mention parameter name changes in the radial gradient methods in the MigrationGuide 2019-09-05 18:53:03 -07:00
Robin Dunn
4580d2114f docstring tweak 2019-09-04 14:31:01 -07:00
Robin Dunn
a2a2b25d33 a bit more cleanup 2019-09-04 14:31:01 -07:00
Robin Dunn
c4f30a1eba Docstring tweaks 2019-09-04 14:31:01 -07:00
Robin Dunn
2cc38c2fe3 fix typo 2019-09-04 14:31:01 -07:00
Robin Dunn
552c6874c9 Docstring updates 2019-09-04 14:31:01 -07:00
Robin Dunn
d6bda86a0e Some docstring updates, and add wx.svg to the docs to be built 2019-09-04 14:30:51 -07:00
Robin Dunn
43c2b5c96c Add RasterizeToBuffer 2019-09-04 14:30:51 -07:00
Robin Dunn
68d8224a86 Add/update some docstrings 2019-09-04 14:30:51 -07:00
Robin Dunn
7d7c66920d A little cleanup 2019-09-04 14:30:35 -07:00
Robin Dunn
1fc8ba5aaf Remove linearPoints and radialPointRadius. They are not needed anymore,
and easy enough to do from Python if they are ever needed again.
2019-09-04 14:30:35 -07:00
Robin Dunn
8d6729ae52 GDI+ backend now mostly works okay with the gradient matrix 2019-09-04 14:30:35 -07:00
Robin Dunn
65f5485f16 Use a list for renderers without gradient transform support (so far) 2019-09-04 14:30:22 -07:00
Robin Dunn
57b0ff0408 Transforms on the GDI+ gradients don't work (yet?) so translate the points ourselves. It won't look right for anything but simple transforms, but it will at least look a little like what was intended. Maybe. 2019-09-04 14:30:00 -07:00
Robin Dunn
cb8263bcb4 fix typo in comment 2019-09-04 14:30:00 -07:00
Robin Dunn
424b919b2e Use the gradient transforms and normalized coordinants 2019-09-04 14:29:31 -07:00
Robin Dunn
9e78437974 begin support for gradient pens 2019-09-04 14:28:51 -07:00
Robin Dunn
98410a0742 We need to set the start and stop colors on the gradients. That's what
causes it to fill the areas before the start and after the end of the gradient.
2019-09-04 14:28:09 -07:00
Robin Dunn
8d37c9119f Add RasteriseToBitmap 2019-09-04 14:28:09 -07:00
Robin Dunn
cd6715a254 Move RenderToGC to SVGimage 2019-09-04 14:28:09 -07:00
Robin Dunn
1120ca212b A few docstring tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
b9e804bdd4 More radial gradient experimenting 2019-09-04 14:28:09 -07:00
Robin Dunn
94b98f968e Rename SVGimage to SVGimageBase, so SVGimage can be pure python and in the __init__.py file 2019-09-04 14:28:09 -07:00
Robin Dunn
ce4a4d96d8 more tweaking around with radial gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
68357daec7 more radial gradient tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
b4e40843d5 working on radial gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
13796f88c1 Add method to transform and fetch the start and stop points for linear gradients 2019-09-04 14:28:09 -07:00
Robin Dunn
efd8d48b42 Add color_rgba helper for gradient stops 2019-09-04 14:28:09 -07:00
Robin Dunn
f0a0f8a65c Add rasterization methods 2019-09-04 14:28:09 -07:00
Robin Dunn
ce2046549d Add color_rgba, points, some __repr__s and other tweaks 2019-09-04 14:28:09 -07:00
Robin Dunn
a5bd9f39a8 restore original char* parameter 2019-09-04 14:28:09 -07:00
Robin Dunn
fc590e69f5 fiddle with buffer options 2019-09-04 14:28:09 -07:00
Robin Dunn
e7ebf2024e rearrange things and a few minor tweaks 2019-09-04 14:28:08 -07:00
Robin Dunn
1df2811e9e Update docstring 2019-09-04 14:28:08 -07:00