Add Initial commit

This commit is contained in:
Lev
2021-06-26 18:23:39 -05:00
parent 28e2a60ab8
commit 621ccc2d28
5 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>graphicsProgramming - Coursera</title>
<script src="libraries/p5.min.js" type="text/javascript"></script>
<script src="libraries/p5.sound.min.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 one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,17 @@
////////////////////////////////////
// COURSERA GRAPHICS PROGRAMMING
////////////////////////////////////
function setup() {
createCanvas(900, 600);
background(0);
randomSeed(0);
}
//////////////////////////////////////////
function draw() {
var randX = random(0, width);
var randY = random(0, height);
fill(random(255), 0, 0, random(255));
noStroke();
ellipse(randX, randY, 15, 15);
}