-
Notifications
You must be signed in to change notification settings - Fork 209
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
getNeighborPixel(x, y) method for Dynamic module #207
Conversation
Signed-off-by: tech4GT <[email protected]>
Signed-off-by: tech4GT <[email protected]>
Signed-off-by: tech4GT <[email protected]>
Signed-off-by: tech4GT <[email protected]>
src/modules/Dynamic/Module.js
Outdated
|
||
|
||
/* Functions to get the neighbouring pixel by position (x,y) */ | ||
var getNeighbourPixel = function(pixels,curX,curY,distX,distY){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, yes, this does seem a bit more natural! You can also define this as function getNeighborPixel(...)
which helps when debugging (the function name shows up rather than a singleton function assigned to a variable). If this looks good, can we tidy up lines 38-43 and we'll be ready to merge it in? Thanks!!!
Signed-off-by: tech4GT <[email protected]>
@jywarren done.! 😁 |
OK, looks good -- but is this out of date with base branch? Then ready to go! :-) 👍 👍 👍 |
…into dynamicFixAsFun
@jywarren synced😁 |
Fantastic!! 🎉 👍 👍 |
@jywarren check this out, done with getNeighbourPixel as function and getNeighborPixel as alias
replaces #204