xxxxxxxxxx
46
var font;
var fontb;
var vehicles = [];
function preload(){
font = loadFont('LetterGothicStd-Bold.otf');
fontb = loadFont('Bitter-SemiBold.ttf');
}
function setup() {
createCanvas(600, 400);
background(51);
//textFont(font);
//textSize(50);
//noStroke();
//fill(255);
//text('entropy', 100, 200);
var points = font.textToPoints('bedroom', 90, 200,100);
for (var i=0; i < points.length; i++){
var pt = points[i];
var vehicle = new Vehicle(pt.x,pt.y);
vehicles.push(vehicle);
//stroke(255);
//strokeWeight(5);
//point(pt.x,pt.y);
}
}
function draw() {
background(90,65,57);
for(var i=0; i<vehicles.length; i++){
var v = vehicles[i];
v.behaviors();
v.update();
v.show();
}
textFont(fontb);
textSize(20);
noStroke();
fill(221,122,74);
text('/ˈentrəpē/: Gradual decline into disorder.',100, 350);
}