Add Initial commit

This commit is contained in:
Lev
2021-06-26 19:08:12 -05:00
parent 521ae9d58f
commit 7f5337f57d
5 changed files with 76 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,30 @@
var font;
function preload() {
font = loadFont('assets/Calistoga-Regular.ttf');
}
var points;
function setup() {
createCanvas(900, 400);
fill(255, 104, 204, 150);
noStroke();
points = font.textToPoints('c o d e', 50, 300, 300, {
sampleFactor: .3,
simplifyThreshold: 0
});
}
function draw() {
background(0);
// *** your code here ****
noLoop();
}
function mouseMoved(){
loop();
}