Open henrygab opened 2 years ago
Yeah, I would love to solve this problem. We wouldn't necessarily need to solve it in a generic way, the web app could just be made more aware of the different patterns and their related settings. But it is really nice to be able to add new fields and not have to update the web app.
That is also something I would like to see.
What I did already (should I create a PR for this?) is to make the sectionfields in the webapp "buttons" where the content below is hidden when opening the web page. When you click, the properties expand (or fold). This does not solve the particular problem but contributes to a cleaner look and feel.
For the properties / pattern combination, one could flag the particular field and pattern with a e.g. 32bit value where each bit would belong to a certain property or set of properties....
I think you've pretty closely identified which fields are used by which patters, other than speed and palette maybe. I can definitely build a complete list.
Ideally all patterns would use speed in some way.
I'd like to simplify all of the patterns that really only differ by palette (twinkles, noise, etc). Ideally all patterns would use the selected palette, and we'd add a set of options similar to the pattern autoplay and duration for palettes. That and combine the two different palette lists ("standard" and gradient).
The only other difference between the noise patterns are x, y, and z speeds/directions. I'd love to add fields for those as well.
Whatever solution we arrive at, I'd like to keep it fairly simple, and ideally keep the fields used close to the definition of the pattern function.
here's a list of things to consider improving:
Fill in as things come to mind.