diff --git a/2_Text_and_Archive/Code/TweetMarkov/TweetMarkov.pde b/2_Text_and_Archive/Code/TweetMarkov/TweetMarkov.pde new file mode 100644 index 0000000..54875a4 --- /dev/null +++ b/2_Text_and_Archive/Code/TweetMarkov/TweetMarkov.pde @@ -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]); +} + + diff --git a/2_Text_and_Archive/Code/TweetMarkov/data/tweets.txt.REMOVED.git-id b/2_Text_and_Archive/Code/TweetMarkov/data/tweets.txt.REMOVED.git-id new file mode 100644 index 0000000..a887485 --- /dev/null +++ b/2_Text_and_Archive/Code/TweetMarkov/data/tweets.txt.REMOVED.git-id @@ -0,0 +1 @@ +a239ba4b1f7f159f5a037f7de8e9151dc4b2801b \ No newline at end of file diff --git a/2_Text_and_Archive/Code/TwitterPull/hong kong.txt b/2_Text_and_Archive/Code/TwitterPull/hong kong.txt new file mode 100644 index 0000000..e69de29 diff --git a/2_Text_and_Archive/Code/TwitterPull/selfie.txt b/2_Text_and_Archive/Code/TwitterPull/selfie.txt new file mode 100644 index 0000000..e69de29 diff --git a/data/oscars.txt.REMOVED.git-id b/data/oscars.txt.REMOVED.git-id new file mode 100644 index 0000000..dd9c865 --- /dev/null +++ b/data/oscars.txt.REMOVED.git-id @@ -0,0 +1 @@ +b341c2edb45d70703860279af7e385a3ef3d3964 \ No newline at end of file