-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize! p5.prototype.Table -> p5.Table, separate src files, renam…
…ed Table.columnTitles to Table.columns
- Loading branch information
1 parent
d4446d6
commit 08f8569
Showing
14 changed files
with
889 additions
and
766 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
var table; | ||
|
||
function setup() { | ||
loadTable("table.csv", helloWorld); | ||
// println(table.getRowCount() + " total rows in table"); | ||
loadTable("table.csv", logResults); | ||
} | ||
|
||
function helloWorld(stuff) { | ||
table = stuff; | ||
function logResults(results) { | ||
table = results; | ||
console.log(table); | ||
for (var i = 0; i < table.rows.length; i++) { | ||
for (var j = 0; j < table.columns.length; j++ ) { | ||
console.log(table.columns[j] +': '+ table.rows[i].get(j) ); | ||
} | ||
console.log('---'); | ||
} | ||
} |
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Oops, something went wrong.