Add Initial commit

This commit is contained in:
Lev
2021-04-17 17:02:38 -05:00
parent e2eb1a89bc
commit 6fd96ebf5f
5 changed files with 15983 additions and 0 deletions

View File

@ -0,0 +1,26 @@
function setup() {
createCanvas(720, 400);
}
function draw()
{
background(0, 150, 200);
drawCat(mouseX, mouseY);
}
function drawCat(x, y)
{
rectMode(CENTER);
stroke(0);
strokeWeight(2);
translate(x, y);
fill(255);
rect(0, 0, 100, 100); // face
rect(-20, -20, 25, 10); // left eye
rect(20, -20, 25, 10); // right eye
rect(0, 5, 7, 25); // nose
rect(0, 30, 30, 5); // mouth
triangle(-50, -50, -30, -70, -10, -50);
triangle(50, -50, 30, -70, 10, -50);
}