-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: eaadb2bb48b5bfd43c93ac24e5e6b0fc41535b24 [formerly eaadb2bb48b5bfd43c93ac24e5e6b0fc41535b24 [formerly dda932e]] Former-commit-id: 160d371 Former-commit-id: a4524cb
- Loading branch information
Showing
5 changed files
with
26 additions
and
0 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
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]); | ||
} | ||
|
||
|
1 change: 1 addition & 0 deletions
1
2_Text_and_Archive/Code/TweetMarkov/data/tweets.txt.REMOVED.git-id
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
a239ba4b1f7f159f5a037f7de8e9151dc4b2801b |
Empty file.
Empty file.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
b341c2edb45d70703860279af7e385a3ef3d3964 |