Skip to content

Create backAndForth.js #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephaneAG
Copy link

Hi there !

Thanks a lot for your tool: it has been quite helpful !
I was about to write myself a quick canvas helper - actually started it, then stumbled upon your work: needless to say, I was glad ;p

The provided example has a helper fcn which "overwrites only were it already draw" from the beginning of the clamped array.
The goal is to be able to skip turning all the leds off and then some of them on, instead directly turning off only those that were and that are no longer on.
Don't know yet if this is faster than resetting all the clamped array values to 0 & then only the ones needed to red, should be IF the current algo is not that bad since we'll have to loop over less stuff & hence spend less time on looping ? -> you tell me ;p

So, here come my own 2 cents on the subject ;)
Can't wait to test those on real hardware ;)

Keep up the good work
++

Hi there !

Thanks a lot for your tool: it has been quite helpful !
I was about to write myself a quick canvas helper - actually started it, then stumbled upon your work: needless to say, I was glad ;p

The provided example has a helper fcn which "overwrites only were it already draw" from the beginning of the clamped array.
The goal is to be able to skip turning all the leds off and then some of them on, instead directly turning off only those that were and that are no longer on.
Don't know yet if this is faster than resetting all the clamped array values to 0 & then only the ones needed to red, should be IF the current algo is not that bad since we'll have to loop over less stuff & hence spend less time on looping ? -> you tell me ;p

So, here come my own 2 cents on the subject ;)
Can't wait to test those on real hardware ;)

Keep up the good work
++
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant