Add Initial commit

This commit is contained in:
Lev
2021-04-17 17:28:22 -05:00
parent 698c4951ca
commit 4154645cb4
5 changed files with 15993 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>randomDot</title>
<script src="libraries/p5.min.js" type="text/javascript"></script>
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>
<script src="sketch.js" type="text/javascript"></script>
<style> body {padding: 0; margin: 0;} canvas {vertical-align: top;} </style>
</head>
<body>
</body>
</html>

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,36 @@
function setup() {
createCanvas(720, 400);
rectMode(CENTER);
}
function draw()
{
background(220);
fill(0);
translate(200, 200);
rotate(radians(45));
rect(0, 0, 200, 200);
fill('red');
push()
translate(100, 100);
ellipse(0, 0, 30, 30);
pop();
push();
translate(-100, -100);
ellipse(0, 0, 30, 30);
pop();
push();
translate(100, -100);
ellipse(0, 0, 30, 30);
pop();
push();
translate(-100, 100);
ellipse(0, 0, 30, 30);
pop();
}