membrane

https://github.com/phronmophobic/membrane
2021-02-08T15:14:06.024400Z

Hi @smith.adriane membrane seems very cool, thanks for the work on it! I just discovered it and am still getting familiar with the API and realize it's a work in progress. Do you eventually plan to support a wider range of shapes in membrane.ui? Specifically I need circles for a visualization I'm working on. It isn't really a UI but an animated visualization, but I think membrane looks like might be useful anyway as a clojurey canvas api?

phronmophobic 2021-02-08T17:52:50.026500Z

@jjttjj, The short answer is yes. It's possible to extend all of the backends to new shapes, but I plan to include at least all of the "primitive" views. Which platform(s) are you interested in? It would be easy to add circles in the next day or so.

2021-02-08T17:59:20.027600Z

Cool, I actually just figured out I can reify(or extend) IDraw to accomplish this for any shape, which is meeting my needs right now. I'm using Skija

👍 1
phronmophobic 2021-02-08T18:00:48.028500Z

There are still some rough edges, so don't hesitate to ask if you run into any issues.

2021-02-08T18:01:53.028700Z

great, thank you!

2021-02-08T20:01:51.031400Z

Will there eventaully be something like a with-origin function to enable things to be positioned? For example if I want to put a label at the coordinates (100, 100)

phronmophobic 2021-02-08T20:02:39.031900Z

use membrane.ui/translate

2021-02-08T20:03:46.032300Z

great, thanks!