background(238, 226, 217);
background(238, 226, 217);
stroke(180, 180, 180, random(0, 255));
for (i = 0; i <= 6; i ++) {
line(i*100 + off, 0, i*100 + off, 600);
line(0, i*100 + off, 600, i*100 + off);
fill(210, 144, 95, random(0, 255));
for (i = 0; i < 20; i ++) {
for (j = 0; j < 20; j++) {
rect(i*30+15, j*30+15, 15, 15)
rect(i*30, j*30, floor(random(1, 4))*30, floor(random(1, 4))*30, random(0, 20))
rect(i*30+15, j*30-15, floor(random(1, 4))*30, floor(random(1, 4))*30, random(0, 20));
rect(i*30+15, j*30-15, floor(random(1, 4))*5, floor(random(1, 4))*5);
for (i = 0; i < 5; i ++) {
textFont('Georgia', random(5, 25));
fill(238, 226, 217, random(0, 255));
text(mom(), i*120, random(0, 600), random(250, 500));
text(dad(), i*120, random(0, 600), random(250, 500));
stroke(180, 180, 180, random(0, 255));
numOfShapes = random(0, 20);
iterations = ceil(random(0, 5));
while (count < numOfShapes) {
for (x = 0; x < iterations; x ++) {
for (i = 0; i < 20; i ++) {
for (j = 0; j < 20; j++) {
rect(i*30, j*30, floor(random(1, 4))*5, floor(random(1, 4))*5)
rect(i*30+15, j*30-15, floor(random(1, 4))*5, floor(random(1, 4))*5);
rect(i*30, j*30, floor(random(1, 4))*5, floor(random(1, 4))*5)
rect(i*30+15, j*30 + 15, floor(random(1, 4))*5, floor(random(1, 4))*5);
modes = ["ADD", "EXCLUSION", "SUBTRACT", "SCREEN", "OVERLAY", "BURN", "MULTIPLY"];
string = modes[floor(random(0, 8))];
if (string == "ADD") blendMode(ADD);
else if (string == "EXCLUSION") blendMode(EXCLUSION);
else if (string == "SCREEN") blendMode(SCREEN);
else if (string == "OVERLAY") blendMode(OVERLAY);
else if (string == "BURN") blendMode(BURN);
else if (string == "MULTIPLY") blendMode(MULTIPLY);
colors = ["yellow", "red", "blue"];
colorIndex = int(random(0, 3));
if (colors[colorIndex] == "yellow") fill(255, 246, 0, random(100, 200));
else if (colors[colorIndex] == "red") fill(255, 64, 151, random(100, 200));
else if (colors[colorIndex] == "blue") fill(37, 182, 255, random(100, 200));
function drawShape(i, j, dims) {
rect(i*100 + floor(random(-10, 10))*10, j*100 + floor(random(-10, 10))*10,
dims*100 + floor(random(-4, 4))*10, dims*100 + floor(random(-4, 4))*10);
function mousePressed() {
function rainbowRectangles(){
for (i = 0; i <= 6; i ++) {
for (j = 0; j <= 6; j++) {
circle(i * 100, j * 100, random(3, 7));
dims = floor(random(1, 4));
for (i = 0; i < 5; i ++) {
for (j = 0; j < 5; j++) {
rect(x, y, size + random(-50, 50), size + random(-50, 50), random(75, 200));
for (i = 0; i <= 20; i ++) {
for (j = 0; j <= 20; j++) {
rect(i*30, j*30, floor(random(1, 4))*5, floor(random(1, 4))*5)
rect(i*30+15, j*30-15, floor(random(1, 4))*5, floor(random(1, 4))*5);
for (i = 0; i < 5; i ++) {
for (j = 0; j < 5; j++) {
rect(x, y, size + random(-50, 50), size + random(-50, 50), random(75, 200));
amountOfWords = random(0, 5);
stroke(180, 180, 180, random(100, 255));
for (i = 0; i < 5; i ++) {
for (j = 0; j < 20; j++) {
textFont('Georgia', random(5, 25));
if (coin < amountOfWords/2) {
text(mom(), x + random(-10, 10), y + random(-10, 10), random(250, 500));
} else if (coin < amountOfWords) {
text(dad(), x + random(-10, 10), y + random(-10, 10), random(100, 500));
stroke(180, 180, 180, random(100, 255));
text(dad(), random(-400, 600), random(-400, 400), random(100, 500));
options = ["你已经画了一幅画,那就很好了",
"我找了爸爸的照片,有100pictures。 how can I share them with you?",
"How about line 111 try using argv[0] as input, instead of vicab_filename? ",
"什么时候的火车?什么时候到Pittsburgh ",
"Don’t be so stressed :-). Things are not so hard. Don’t be scared in front. When you do it, you will see it’s not that hard",
"Dear 树树,Are you all right? Sorry I missed your call. I was running. ",
"I dont recommend coming back",
"你不用再画了:) 我不知道你已经画了,所以给你送照片",
"Ok. I will wait for your unlimited storage:)"]
index = floor(random(0, options.length));
options = ["Your image reminds me 20’s year ago a project, rotating/flipping a jpeg image without losing quality Love Dad",
"That is down town San Jose. Not a decent place at night. Please leave as soon as possible ",
"Cs is a class needed lot of practice. You are in the right track",
"But we should have other aspect of life. 8 hours a day of studying time should be normal life ",
"How about the rest of days in the week? Do you feel good?",
"Two hours cant solve a problem, you may shift to other problems. ",
"But you only finished 2 of 10 problems in the home work. How many hours you spent on the home work?",
"Both are important. But calc 3-D is more real. You should take it. You may learn linear algebra by yourself or take the class in the future ",
"f(a) in S then a in S, you may mention injective of f, otherwise we cannot claim a in S ",
"You only prove f(S\andT) included in f(S)\and f(T). You should also prove that f(S) \and f(T) included in f(S\and T)",
"Don’t worry too much. You seriously finished homework, you should get the knowledge then pass the exam"]
index = floor(random(0, options.length));