porres / pd-else

ELSE - EL Locus Solus' Externals for Pure Data
Do What The F*ck You Want To Public License
287 stars 36 forks source link

scope is ported to "flames" now and supports clipping #2059

Closed ben-wes closed 5 months ago

ben-wes commented 5 months ago

i messed up the commit history a bit. but the changes are just those 2 files (lua and help)

porres commented 5 months ago

What is flames?

ben-wes commented 5 months ago

i tried to make it easier to create pdlua objects with this little module here https://github.com/ben-wes/pdlua-flames ... it manages flags, messages and state. scope was a bit of a mess before (still is - but less)

ben-wes commented 5 months ago

after checking the performance a bit more now, i'm afraid that the clipping is not working well. the problem is, that instead of a path, i'm now drawing single lines and for each lines, there's a test for whether one or both points are outside the visible area and then the clipping point is calculated and new line coordinates returned. this is quite expensive and obviously not a good solution. we might keep this as an option. but i would not use it as default.