xxxxxxxxxx
177
let c;
var col1 = {
r: 255,
g: 0,
b: 0
}
var col2 = {
r: 255,
g: 255,
b: 255
}
var spot1 = {
x: 100,
y: 100
}
var spot2 = {
x: 100,
y: 100
}
var input;
var button;
var canvas;
var DRYArray = ['Mommy\'s', 'Mommy\'s Little', 'Daddy\'s', 'Daddy\'s Little', 'My', 'My Little', 'The Lord\'s', 'Our', 'Danger', 'Dead', 'Deadly', 'Dying', 'Death of the', 'A Death in the', 'A Ghost in the', 'Haley Joel', 'Sarah Jessica', 'Spill', 'Razorblade', 'The', 'Yes,', 'No,', 'No', 'And the', 'Rise of the', 'Revenge of the', 'Blue', 'The Blue', 'Pink', 'The Pink', 'Bring the', 'My Chemical', 'Proxy', 'Party City', 'The Party City', 'Paris', 'Control Alt', 'Pain, the', 'Christ', 'God', 'Mary', ' '];
var ROTArray = ['Waffles', 'Cookies', 'Cake', 'Creatures', 'Monster', 'Internet', 'Browsing History', 'Cable', 'Radacted', 'Mouse', 'Rat', 'Garden', 'Vomit', 'Rash', 'Disease', 'Knife', 'Dumpster', 'Dumpster Fire', 'Razorblade', 'Misfit', 'Robber', 'Sea Men', 'Rubber', 'Hatchet', 'Gun', 'Throttle', 'Engine', 'Man', 'Woman', 'Girl', 'Boy', 'Sister', 'Brother', 'Devil', 'Tool', 'Punk', 'Himbo', 'Loser', 'Foot', 'Hand', 'Queen', 'King', 'Mini Van', 'Screw Driver', 'Mommy', 'Daddy', 'Shark', 'Fish', 'Spit', 'American', 'Christ', 'God', 'Mary',]
function preload() {
img1 = loadImage("https://picsum.photos/1080/1080?random=1");
img2 = loadImage("https://picsum.photos/400/600?random=2");
img3 = loadImage("https://source.unsplash.com/600x800/?sex/naked");
img4 = loadImage('imageonline-co-invertedimage.jpg');
img5 = loadImage("compOver-01.png");
}
function refreshPage(){
window.location.reload();
}
function setup() {
c = createCanvas (1080, 1080)
c.position(0,60);
background(0)
noLoop();
textSize(50);
rect(0, 0, 20, 20);
noFill();
button = createButton('refresh');
button.position(0,20);
button.mousePressed(refreshPage);
button = createButton('submit');
button.mousePressed(drawName);
button.position(100,20);
input = createInput();
input.position(160,20);
}
function draw() {
image(img1, 0, 0);
spot1.x = random(0, 600);
spot1.y = random(0, 600);
image(img3, spot1.x, spot1.y);
spot1.x = random(0, 600);
spot1.y = random(0, 600);
image(img2, spot1.x, spot1.y);
filter(THRESHOLD);
col1.r = random(0, 255);
col1.g = random(0, 255);
col1.b = random(0, 255);
fill(col1.r, col1.g, col1.b, 50);
noStroke();
rect(0, 0, 1080, 1080);
var randomOne = random(DRYArray);
var randomTwo = random(ROTArray);
var helloWorldMessage = randomOne + ' ' + randomTwo
fill(col1.r, col1.g, col1.b)
textFont('Arial');
textAlign(LEFT);
text(helloWorldMessage + '/', 500, 75);
text(helloWorldMessage + '/', 500, 125);
text(helloWorldMessage + '/', 500, 175);
text(helloWorldMessage + '/', 500, 225);
text(helloWorldMessage + '/', 500, 275);
text(helloWorldMessage, 425, 240);
text(helloWorldMessage, 425, 290);
text(helloWorldMessage, 425, 340);
text(helloWorldMessage, 425, 390);
text(helloWorldMessage, 425, 440);
text(helloWorldMessage, 150, 475);
text(helloWorldMessage, 150, 525);
text(helloWorldMessage, 150, 575);
text(helloWorldMessage, 150, 625);
text(helloWorldMessage, 150, 675);
text(helloWorldMessage, 450, 475);
text(helloWorldMessage, 450, 500);
text(helloWorldMessage, 450, 525);
text(helloWorldMessage, 450, 550);
text(helloWorldMessage, 450, 575);
text(helloWorldMessage + '/', 700, 475);
text(helloWorldMessage + '/', 700, 500);
text(helloWorldMessage + '/', 700, 525);
text(helloWorldMessage + '/', 700, 550);
text(helloWorldMessage + '/', 700, 575);
text(helloWorldMessage, 800, 300);
text(helloWorldMessage, 800, 350);
text(helloWorldMessage, 800, 400);
text(helloWorldMessage, 800, 450);
text(helloWorldMessage, 800, 500);
text(helloWorldMessage, 800, 550);
text(helloWorldMessage, 800, 600);
text(helloWorldMessage, 800, 650);
text(helloWorldMessage, 800, 700);
text(helloWorldMessage, 800, 750);
text(helloWorldMessage, 800, 800);
text(helloWorldMessage, 800, 850);
text(helloWorldMessage, 800, 900);
text(helloWorldMessage, 800, 950);
text(helloWorldMessage, 800, 1000);
textStyle(BOLD);
text(helloWorldMessage + '/', 25, 800);
text(helloWorldMessage + '/', 25, 850);
text(helloWorldMessage + '/', 25, 900);
text(helloWorldMessage + '/', 25, 950);
text(helloWorldMessage + '/', 25, 1000);
filter(ERODE);
//blendMode(MULTIPLY);
//image(img5, 0, 1025);
}
function drawName() {
textFont('Arial');
textAlign(LEFT);
text('An album by\n' + input.value() + '\ncalled:', 25, 75);
function mousePressed() {
window.location.reload();
}
}
function keyTyped() {
if(key === '7')
saveCanvas(c, "grungeKit.png");
}