Add Initial commit
This commit is contained in:
Binary file not shown.
@ -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>
|
||||
3
CM2030 Graphics Programming/Topic 6/6.1.5 Random Font/libraries/p5.min.js
vendored
Normal file
3
CM2030 Graphics Programming/Topic 6/6.1.5 Random Font/libraries/p5.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
28
CM2030 Graphics Programming/Topic 6/6.1.5 Random Font/libraries/p5.sound.min.js
vendored
Normal file
28
CM2030 Graphics Programming/Topic 6/6.1.5 Random Font/libraries/p5.sound.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user