xxxxxxxxxx
74
let bgColor = 0;
let size;
let nouns = [
"scent",
"death",
"life",
"building",
"eyes",
"mouth",
"hand",
"blood",
"knife",
"hospital",
"insanity",
"tomb",
"grave",
"love",
"god",
"memories",
"heart",
];
let verbs = [
"rotting",
"running",
"killing",
"eating",
"cutting",
"sleeping",
"weeping",
"dying",
"living",
"screaming",
];
let adjectives = ["fast", "slow", "agonizing", "small", "large", "corrupt"];
let sentences;
let font;
let eye;
let frames = 0;
function preload() {
font = loadFont("nightcore.ttf");
eye = loadImage("eye.png");
}
function setup() {
createCanvas(windowWidth, windowHeight);
frameRate(0.3);
}
function draw() {
background(255);
textFont(font);
textAlign(CENTER, CENTER);
textSize(random(10, 46));
imageMode(CENTER);
sentences = [
"the " + random(nouns) + " of " + random(verbs),
random(adjectives) + " " + random(verbs),
];
background(225);
fill(bgColor);
if (bgColor > 255) {
background(0);
fill(bgColor, 0, 0);
image(eye, width / 2, height / 2);
}
text(random(sentences), width / 2, height / 2);
bgColor = bgColor + 10;
frameRate(0.3 + frames);
frames = frames + 0.1;
}