Skip to content

Commit

Permalink
Class 4.
Browse files Browse the repository at this point in the history
Former-commit-id: eaadb2bb48b5bfd43c93ac24e5e6b0fc41535b24 [formerly eaadb2bb48b5bfd43c93ac24e5e6b0fc41535b24 [formerly dda932e]]
Former-commit-id: 160d371
Former-commit-id: a4524cb
  • Loading branch information
blprnt committed Sep 29, 2014
1 parent 31604dd commit 91ff801
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 2_Text_and_Archive/Code/TweetMarkov/TweetMarkov.pde
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import rita.*;

RiMarkov markov;
String[] lines = {"press the mouse!"};

void setup() {
size(1280,720,P3D);

markov = new RiMarkov(2);
markov.loadFile(sketchPath + "/data/tweets.txt");
}

void draw() {
background(0);
textSize(24);
text(lines[0], 50, 250,600,300);
}

void mousePressed() {
lines = markov.generateSentences(1);
println(lines[0]);
}


Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a239ba4b1f7f159f5a037f7de8e9151dc4b2801b
Empty file.
Empty file.
1 change: 1 addition & 0 deletions data/oscars.txt.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b341c2edb45d70703860279af7e385a3ef3d3964

0 comments on commit 91ff801

Please sign in to comment.