xxxxxxxxxx
68
function setup() {
createCanvas(640, 640);
createLoop({
duration: 4,
gif: false
});
}
function draw() {
// COLORS
let myBlue = color(78, 204,242);
let myPurple = color(146, 40, 245);
let myOrange = color(242, 141, 41);
let myYellow = color(249, 235, 66);
//colorMode(RGB);
var blendAmount = map(sin(animLoop.theta), -1,1, 0,1);
var myBlend = lerpColor(myPurple, color('black'), blendAmount);
// CHANGE BG ? ?
//noiseSeed(99);
// BG
blendMode(BLEND);
background(myBlend);
rectMode(CENTER);
noStroke();
//strokeWeight(height/40);
//strokeCap(SQUARE);
// EYES
// left
push();
translate(175,-100);
angleMode(DEGREES);
rotate(45);
blendMode(OVERLAY)
fill(myYellow);
rect(width * .40, height * .35, height/20, width/8);
rect(width * .40, height * .35, height/8, width/20);
pop();
// right
push();
translate(415,-100);
angleMode(DEGREES);
rotate(45);
blendMode(OVERLAY)
fill(myYellow);
rect(width * .40, height * .35, height/20, width/8);
rect(width * .40, height * .35, height/8, width/20);
pop();
// MOUTH
blendMode(OVERLAY)
fill(myYellow);
rect(width * .25 + 16, height* .5 + 24, height/20, width/8);
rect(width * .75 - 16, height* .5 + 24, height/20, width/8);
rect(width/2, height/2, width/2, height/20);
}
function drawTear() {
}