Last active
August 29, 2015 14:25
-
-
Save unitycoder/7923ad5ba457caea3451 to your computer and use it in GitHub Desktop.
Revisions
-
unitycoder revised this gist
Jul 20, 2015 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,12 @@ var width=3; var height=3; var size = width*height; var x = 0; var y = 0; for (var i = 0; i < size; i++) { x = (i / 3) | 0; y = i % 3; document.getElementById('output').innerHTML += "x:"+x+" y:"+y+"\n"; } -
unitycoder revised this gist
Jul 20, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ // 2 loops in 1 : https://jsfiddle.net/rntasz32/2/ var width=3; var height=3; var size = width*height; -
unitycoder created this gist
Jul 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ // 2 loops in 1 : https://jsfiddle.net/rntasz32/ var width=3; var height=3; var size = width*height; for (var i = 0; i < size; i++) { var x = (i / 3) | 0; var y = i % 3; document.getElementById('output').innerHTML += "x:"+x+" y:"+y+"\n"; }