diff --git a/A00.png b/A00.png new file mode 100644 index 0000000..3a07d18 Binary files /dev/null and b/A00.png differ diff --git a/A01.png b/A01.png new file mode 100644 index 0000000..5f6fecb Binary files /dev/null and b/A01.png differ diff --git a/A02.png b/A02.png new file mode 100644 index 0000000..6281a0d Binary files /dev/null and b/A02.png differ diff --git a/A03.png b/A03.png new file mode 100644 index 0000000..a208134 Binary files /dev/null and b/A03.png differ diff --git a/A04.png b/A04.png new file mode 100644 index 0000000..17b4da8 Binary files /dev/null and b/A04.png differ diff --git a/A05.png b/A05.png new file mode 100644 index 0000000..ca40162 Binary files /dev/null and b/A05.png differ diff --git a/A06.png b/A06.png new file mode 100644 index 0000000..01d23a7 Binary files /dev/null and b/A06.png differ diff --git a/A07.png b/A07.png new file mode 100644 index 0000000..ad8aea5 Binary files /dev/null and b/A07.png differ diff --git a/A08.png b/A08.png new file mode 100644 index 0000000..c92b885 Binary files /dev/null and b/A08.png differ diff --git a/A09.png b/A09.png new file mode 100644 index 0000000..8bc77f5 Binary files /dev/null and b/A09.png differ diff --git a/A10.png b/A10.png new file mode 100644 index 0000000..65a9bee Binary files /dev/null and b/A10.png differ diff --git a/A11.png b/A11.png new file mode 100644 index 0000000..eb66bd3 Binary files /dev/null and b/A11.png differ diff --git a/A12.png b/A12.png new file mode 100644 index 0000000..63ed58a Binary files /dev/null and b/A12.png differ diff --git a/B00.0.png b/B00.0.png new file mode 100644 index 0000000..324742a Binary files /dev/null and b/B00.0.png differ diff --git a/B00.1.png b/B00.1.png new file mode 100644 index 0000000..64c1506 Binary files /dev/null and b/B00.1.png differ diff --git a/B00.2.png b/B00.2.png new file mode 100644 index 0000000..b38b4e8 Binary files /dev/null and b/B00.2.png differ diff --git a/B01.png b/B01.png new file mode 100644 index 0000000..62cef9b Binary files /dev/null and b/B01.png differ diff --git a/B02.png b/B02.png new file mode 100644 index 0000000..7ff4102 Binary files /dev/null and b/B02.png differ diff --git a/B03.png b/B03.png new file mode 100644 index 0000000..515bbaa Binary files /dev/null and b/B03.png differ diff --git a/B04.png b/B04.png new file mode 100644 index 0000000..17b4da8 Binary files /dev/null and b/B04.png differ diff --git a/B05.png b/B05.png new file mode 100644 index 0000000..26b57cc Binary files /dev/null and b/B05.png differ diff --git a/B06.png b/B06.png new file mode 100644 index 0000000..2685065 Binary files /dev/null and b/B06.png differ diff --git a/B07.png b/B07.png new file mode 100644 index 0000000..1f33240 Binary files /dev/null and b/B07.png differ diff --git a/B08.png b/B08.png new file mode 100644 index 0000000..7739f4d Binary files /dev/null and b/B08.png differ diff --git a/B09.png b/B09.png new file mode 100644 index 0000000..8e7a84a Binary files /dev/null and b/B09.png differ diff --git a/B10.png b/B10.png new file mode 100644 index 0000000..dedff0d Binary files /dev/null and b/B10.png differ diff --git a/B11.png b/B11.png new file mode 100644 index 0000000..9a4f401 Binary files /dev/null and b/B11.png differ diff --git a/B12.png b/B12.png new file mode 100644 index 0000000..2b2e8f3 Binary files /dev/null and b/B12.png differ diff --git a/B13.png b/B13.png new file mode 100644 index 0000000..48e691e Binary files /dev/null and b/B13.png differ diff --git a/B14.png b/B14.png new file mode 100644 index 0000000..ef93af1 Binary files /dev/null and b/B14.png differ diff --git a/B15.png b/B15.png new file mode 100644 index 0000000..538de1f Binary files /dev/null and b/B15.png differ diff --git a/B16.png b/B16.png new file mode 100644 index 0000000..82fbc8b Binary files /dev/null and b/B16.png differ diff --git a/OBJ00.png b/OBJ00.png new file mode 100644 index 0000000..3d61742 Binary files /dev/null and b/OBJ00.png differ diff --git a/OBJ01.png b/OBJ01.png new file mode 100644 index 0000000..dcdc60e Binary files /dev/null and b/OBJ01.png differ diff --git a/OBJ02.png b/OBJ02.png new file mode 100644 index 0000000..6700aa1 Binary files /dev/null and b/OBJ02.png differ diff --git a/OBJ03.png b/OBJ03.png new file mode 100644 index 0000000..48e5fe8 Binary files /dev/null and b/OBJ03.png differ diff --git a/OBJ04.png b/OBJ04.png new file mode 100644 index 0000000..95c1aaf Binary files /dev/null and b/OBJ04.png differ diff --git a/OBJ05.png b/OBJ05.png new file mode 100644 index 0000000..ad59c69 Binary files /dev/null and b/OBJ05.png differ diff --git a/OBJ06.png b/OBJ06.png new file mode 100644 index 0000000..972f4ae Binary files /dev/null and b/OBJ06.png differ diff --git a/OBJ07.png b/OBJ07.png new file mode 100644 index 0000000..7fbaf55 Binary files /dev/null and b/OBJ07.png differ diff --git a/OBJ08.png b/OBJ08.png new file mode 100644 index 0000000..a2b2761 Binary files /dev/null and b/OBJ08.png differ diff --git a/OBJ09.png b/OBJ09.png new file mode 100644 index 0000000..769d7f0 Binary files /dev/null and b/OBJ09.png differ diff --git a/ram.csv b/ram.csv new file mode 100644 index 0000000..26e3dbd --- /dev/null +++ b/ram.csv @@ -0,0 +1,31 @@ +000,A00,B00,B00,B00 +A00,A01,A02,A03,A04 +A01,A05,A07 +A02,A05,A07 +A03,A06 +A04,A05,A06,A07 +A05,A08,A09 +A06,A10,A11 +A07,A12 +A08,END +A09,END +A10,END +A11,END +A12,END +B00,B01,B02,B03,B04 +B01,B05,B06,B08 +B02,B05,B06,B08 +B03,B07 +B04,B05,B07,B06,B08 +B05,B09,B10,B11,B15 +B06,B10,A08,A09,B12,B09 +B07,B13,B14 +B08,B16 +B09,END +B10,END +B11,END +B12,END +B13,END +B14,END +B15,END +B16,END diff --git a/randstrip.py b/randstrip.py new file mode 100644 index 0000000..c8a8711 --- /dev/null +++ b/randstrip.py @@ -0,0 +1,35 @@ +from PIL import Image +from PIL import ImageFont +from PIL import ImageDraw +import csv +import random + +def fetchVign(): + starts = [] + startdest = [] + nvign = 0 + currVign = "000" + story = [] + with open("ram.csv") as ram: + csvReader = csv.reader(ram) + for row in csvReader: + starts.append(row[0]) + startdest.append(row) + while nvign <= 3: + story.append(startdest[starts.index(currVign)][random.randint(1,len(startdest[starts.index(currVign)])-1)]) + currVign = story[nvign] + if story[nvign] == "B00": + story[nvign] += "." + story[nvign] += str(random.randint(0,2)) + nvign +=1 + return story + +def writeStrip(): + vign = Image.open("A00.png") + addtext = ImageDraw.Draw(vign) + fnt = ImageFont.truetype("ubuntu.ttf",16) + addtext.text((268,77),"egadrg",fill="#000000",font=fnt) + return vign + +if __name__ == "__main__": + fetchVign() diff --git a/test.png b/test.png new file mode 100644 index 0000000..a850df1 Binary files /dev/null and b/test.png differ diff --git a/ubuntu.ttf b/ubuntu.ttf new file mode 100644 index 0000000..8079f93 Binary files /dev/null and b/ubuntu.ttf differ