Add Initial commit

This commit is contained in:
Lev
2021-06-26 22:44:22 -05:00
parent cbc832683d
commit 8f90139062
6 changed files with 70 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,24 @@
var points;
var font;
function preload() {
font = loadFont('assets/Calistoga-Regular.ttf');
}
//////////////////////////////////////////////////////////////////////
function setup() {
createCanvas(900, 400);
background(0);
points = font.textToPoints('c o d e', 50, 300, 300, {
sampleFactor: .3,
simplifyThreshold: 0
});
}
//////////////////////////////////////////////////////////////////////
function draw() {
fill(0,5);
rect(0,0,width,height);
// **** Your code here ****
}