Closed francoisthire closed 6 months ago
[ ] Check the PR compiles correctly (I did not find
brzo
on opam. I will pin it later)
The official build system is still topkg
so simply opam install topkg-care
and do topkg build
.
- Which kind of test should be added?
You can add a sample image in the database, named
path-smooth
, that shows use of the combinators see for example path-cubics
(src).
You can then have a look at the results by running for example rsvg.native
. See here on how to build the tests. One day I hope to have a raster renderer and expect test the renders with pixeldrift. But meanwhile that should do.
I followed your instructions:
topkg
Here is the result:
The implicit control point is colored in red.
I have updated the CHANGES
file. Let me know if there is anything more that I can do.
Thanks!
I squashed your patches into 3b3cea5 and 2d77ab2 and cosmetically massaged them in 33e1952.
Using trigonometry to compute point reflections felt rather heavy weight (and more expensive) so in 1e690d3 I replaced computations by simple linear algrebra following this diagram:
Perfect, thanks!
Solve #33
Context
This PR adds two functions
smooth_ccurve
andsmooth_qcurve
which allow to definesmooth
curves. One of the control points is defined depending on the previous curve.The function
smooth_ccurve
corresponds tos
andS
SVG path commands, whilesmooth_qcurve
corresponds tot
andT
SVG path commands. More details hereTODO:
brzo
on opam. I will pin it later)CHANGES.md
Questions to the reviewers