color[] lineColor = new color[10];
color currentColor = color(#000000);
boolean createCaption = true;
if (createCaption==true) {
rect(0, height-75, width, 75);
if ((mouseX > 0) && (mouseX < 700)) {
if ((mouseY > yMin) && (mouseY < yMax)) {
line(pmouseX, pmouseY, mouseX, mouseY);
lineColor[0] = color(#E54028);
lineColor[1] = color(#D70060);
lineColor[2] = color(#F18D05);
lineColor[3] = color(#D0D102);
lineColor[4] = color(#61AE24);
lineColor[5] = color(#32742C);
lineColor[6] = color(#01A4A4);
lineColor[7] = color(#00A1CB);
lineColor[8] = color(#113F8C);
lineColor[9] = color(#000000);
for (int i=0; i<10; i++) {
ellipse(35+(500/9)*i, 565, 30, 30);
if ((mouseX > 20) && (mouseX < 50)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[0];
if ((mouseX > 75) && (mouseX < 105)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[1];
if ((mouseX > 135) && (mouseX < 165)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[2];
if ((mouseX > 190) && (mouseX < 220)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[3];
if ((mouseX > 245) && (mouseX < 275)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[4];
if ((mouseX > 300) && (mouseX < 330)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[5];
if ((mouseX > 355) && (mouseX < 385)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[6];
if ((mouseX > 410) && (mouseX < 440)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[7];
if ((mouseX > 465) && (mouseX < 495)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[8];
if ((mouseX > 520) && (mouseX < 550)) {
if ((mouseY > 555) && (mouseY < 585)) {
currentColor= lineColor[9];
rect( 575, 550, 50, 30, 7);
if ((mouseX > 575) && (mouseX < 625)) {
if ((mouseY > 550) && (mouseY < 580)) {
text("New \n Caption", 645, 45);
if ((mouseX > 600) && (mouseX < 700)) {
if ((mouseY > 25) && (mouseY < 75)) {
String[] captions = new String[26];
captions[0] = " A giraffe lifting weights.";
captions[1] = " My arch-nemesis dyed my hair purple in my sleep.";
captions[2] = " Barack Obama and Ted Cruz in a Boxing Match.";
captions[3] = " The Terminator got an new job as an exterminator.";
captions[4] = " My stinky bear noticed your fat snowman. ";
captions[5] = " Help! Someone stole my Superman cape. ";
captions[6] = " Crocodile with an hangover.";
captions[7] = " Guy in a Hawaiian shirt eating a hawaiian pizza. ";
captions[8] = " Edward Sciccsorhands in a room full of balloons. ";
captions[9] = " A cat and a whale have a baby and it's called whalecat.";
captions[10] = " Incredibly suspicious looking oatmeal.";
captions[11] = " Iphones take over the world. ";
captions[12] = " A Ninja food delivery man. ";
captions[13] = " Robbing a bank using only bubble gum and nerf guns. ";
captions[14] = " Drake using only Drake lyrics to pick up girls.";
captions[15] = " Life sized Pac Man that just wants to make friends.";
captions[16] = " Reginia George and her army of Skanks.";
captions[17] = " Water slide experiencing a \n catastrophic malfunction.";
captions[18] = " Shaq playing basketball against a team of chipmunks.";
captions[19] = " A failed stage dive.";
captions[20] = " 50 cent (the rapper) adjusted for inflation.";
captions[21] = " A teenage girl finding out Zayn Malik left One Direction.";
captions[22] = " A Deerbra: half zebra, half deer.";
captions[23] = " A fort made out of only paper bags.";
captions[24] = " Golden Retriever puppies licking someone to death.";
captions[25] = "Goats playing dead.";
int index = int(random(captions.length));
text("DRAW:"+captions[index], 300, 50);