Skip to content

Instantly share code, notes, and snippets.

@BrentAureli
Created July 20, 2018 12:24
Show Gist options
  • Save BrentAureli/efe2767b52fe7b78417b1f2744126215 to your computer and use it in GitHub Desktop.
Save BrentAureli/efe2767b52fe7b78417b1f2744126215 to your computer and use it in GitHub Desktop.
function search(node){
if(node == null) return;
node.setActive(true)
for(var i = 0; i < node.links.length; i++){
if(node.links[i].active == false){
drawGrid()
setTimeout(search(node.links[i]), 50)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment