Skip to content
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

Merged
merged 6 commits into from
Mar 30, 2018

Conversation

tech4GT
Copy link
Member

@tech4GT tech4GT commented Mar 30, 2018

@jywarren check this out, done with getNeighbourPixel as function and getNeighborPixel as alias
replaces #204



/* Functions to get the neighbouring pixel by position (x,y) */
var getNeighbourPixel = function(pixels,curX,curY,distX,distY){
Copy link
Member

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]>
@tech4GT
Copy link
Member Author

tech4GT commented Mar 30, 2018

@jywarren done.! 😁

@jywarren
Copy link
Member

OK, looks good -- but is this out of date with base branch? Then ready to go! :-) 👍 👍 👍

@tech4GT
Copy link
Member Author

tech4GT commented Mar 30, 2018

@jywarren synced😁

@jywarren jywarren changed the title Dynamic fix as fun getNeighborPixel(x, y) method for Dynamic module Mar 30, 2018
@jywarren jywarren merged commit fba80bb into publiclab:master Mar 30, 2018
@jywarren
Copy link
Member

Fantastic!! 🎉 👍 👍

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.

2 participants