Allowing choices of point arrangements in CellsEffect and VoronoiDiagramEffect#1665
Conversation
This reverts commit 5892f46.
Just to see what happens
This reverts commit d9c65bd.
|
Note that I added the configuration file mentioned in #1668 to the second-to-last commit of this pull request. The result produced in ARM64 is still different. |
|
Yeah, we do need to figure out the caption attribute since I'd rather not forget about making these menu options translatable :) For the platform differences, looking at the log from the tests it seems like a diagonal line of pixels has a different color. My guess would be that |
|
@cameronwhite yeah, I don't know. I am thinking that existing add-ins would break anyway if their compiled versions look for the attribute types in the I moved the types to |
|
You're correct about it looking for the Moving it to Pinta.Core seems like the most reasonable place for it, especially since we can launch the effect dialog without an explicit Pinta.Gui.Widgets dependency using |
|
Unfortunately the dependency on ...And since we are at it we could sneak in a few stylistic improvements (7b89762) |
|
Ah right, the dependency there still makes sense. It's good though that a "basic" effect would only need a Pinta.Core dependency now though I think the only remaining thing to do here is to bump up the add-in compatibility version in |
|
@cameronwhite I just bumped the version and updated the changelog 👍 |
Apart from a random arrangement, one can chose to position the points along a circular path and also in a phyllotaxis arrangement (think of how the seeds of a sunflower are arranged)
A few notes:
Voronoi8test is being ignored for now because it produces different results in ARM64 MacOS. I suspect the floating-point operations produce slightly different results in ARM64.PointArrangementwithCaptionAttribute, because it is in hePinta.Gui.Widgetsproject. Maybe we should move these attributes toPinta.Coreafter this? It would break the API, though. Or we could moveSpatialPartitiontoPinta.Effects, but add-in developers wouldn't be able to use it.(Sunflower image from project Rhea https://www.projectrhea.org/rhea/index.php/MA279Fall2018Topic1_Phyllotaxis)