bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
401 stars 55 forks source link

Superformula plugin #563

Open lainz opened 11 months ago

lainz commented 11 months ago

Hi. In the demo project repository I hve a working superformula.

It's possible to add this plug in?

Or its true that's patented and we should ask for permission?

circular17 commented 11 months ago

Hi Lainz!

Good news! The patent for the superformula expired in 2020. Therefore, there shouldn't be any practical barriers to incorporating it into LazPaint.

Based on our previous discussions, it can be structured similarly to the hypocycloid implementation. I've tagged this request as 'Easy', reflecting the replicable nature of our prior work.

This is in interaction with the internal plugin idea, of centralizing things to handle internal plugins that generate vector shapes. So maybe we can see first if we do that, but it is ok as well to make this plugin before hand.

Let me know your thoughts.

Regards

lainz commented 11 months ago

Hi that's good to know that the code can be reused ;)

circular17 commented 2 months ago

I've added it on dev. There is now a Superformula layer type.

What remains is to convert the layer into a vectorial layer. This vector approximation of a curve could also be used in #194 (free hand vector drawing).