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
ArrayList<Concept> concepts; | |
Concept activeConcept; | |
import processing.video.*; | |
void movieEvent(Movie m) { | |
m.read(); | |
} | |
Movie mov; | |
void loadConcepts() { | |
concepts = new ArrayList(); | |
String[] catalogue = loadStrings("https://docs.google.com/spreadsheets/d/17Czz_pRZAxHClsk0j7fPaRk55Hf-9Wnyllris60FP50/pub?output=tsv" ); // TAB SEPARATED (TSV FILE) for (int i=1; i<catalogue.length; i++) { String row = catalogue[i]; String[] columns = splitTokens(row, "\t"); if (columns.length > 7) { Concept newConcept = new Concept(columns[0], columns[1], columns[2], columns[4], columns[5], columns[6], columns[7]); |
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
ArrayList<Concept> concepts; Concept activeConcept; | |
import processing.video.*; | |
void movieEvent(Movie m) { m.read(); } | |
Movie mov; | |
void loadConcepts() { concepts = new ArrayList(); String[] catalogue = loadStrings("https://docs.google.com/spreadsheets/d/17Czz_pRZAxHClsk0j7fPaRk55Hf-9Wnyllris60FP50/pub?output=tsv" ); // TAB SEPARATED (TSV FILE) for (int i=1; i<catalogue.length; i++) { String row = catalogue[i]; String[] columns = splitTokens(row, "\t"); if (columns.length > 7) { Concept newConcept = new Concept(columns[0], columns[1], columns[2], columns[4], columns[5], columns[6], columns[7]); | |
concepts.add(newConcept); | |
} else { Concept newConcept = new Concept(columns[0], columns[1], columns[2], columns[4], columns[5], "", ""); concepts.add(newConcept); } } //mov = new Movie(this, "mov/MECHANICAL.mov"); } | |
Concept findConceptByName(String thisName) { for (Concept concept : concepts) { if (concept.name.equals(thisName)) return concept; } println(thisName+" not found"); return null; } | |
void makeActive(Concept thisC |