orsjb / HappyBrackets

HappyBrackets is an audio-focused library and toolkit for creative coding for the internet of things.
Apache License 2.0
36 stars 3 forks source link

Renderer API features #79

Closed orsjb closed 3 years ago

orsjb commented 3 years ago

Refactor package structure, remove SynchronisedModel. Replace with something sensible. Remove need to access RendererController from within the sketch code. For example, instead of calling rc.displayColour(), you should be able to call displayColour(). You should not need to call rc.pushColour(). This should be done by the RendererController. The RendererController should make sure that all of the Renderer tick() calls occur and then it should complete the clock cycle with the push command.

orsjb commented 3 years ago

Add documentation with examples (especially how to use the annotations).

orsjb commented 3 years ago

In addition I think Renderer should give access to the "rc" instance, so that we can query things. I also think it should give access to the "hb" instance. This gives us access to the random number generator and other features.

gutosantos82 commented 3 years ago

These issues have been solved in the latest version.