we’ve started collecting starting points for common grid interactions to help spark inspiration, clarify ambiguity, and try to share some approachable best practices.
each are written following these “house” techniques:
use flags to determine when to redraw the grid
use tables to track flag states and grid coordinates
query flag states at 30fps and only redraw when things change
contributions
this isn’t an exhaustive survey, so please add your own as a PR to the docs github repo.
the DNA of a recipe:
a summary/suggested use-case for the interaction
annotated code
a couple of challenges for folks to extend the interaction
please feel free to ask questions about any of the techniques + share your approaches to the “try this” challenges at the end of each of the stock recipes.
Great work, thank you for these. The “momentary” table approach is really elegant.
I wish this could be navigable from within a tab in maiden even if its probably beyond the responsibilities of maiden… i did already have a fairly unsuccessful stab at a side-by-side code and api docs layout, before realising i could effectively get a similar setup without much work with ssh and VS Code
These are so helpful!
I would love to see a chapter of studies showing examples of SC engines integration and explaining possible ways of encorporating them into scripts.
Thank you @dan_derks for making this more approachable for noobs like us!
we’re in the process of slightly revising the SC layer in general (we’re calling this 3.0) so a study (and norns circle) will be forthcoming upon completion of the update.