In this review we will cover the following:
Working With Text
Arrays and Arrays of Objects:
Introduction to Arrays Reviewing Objects and Classes Creating a huge number of Objects and placing them in an Array
GMT20230301-191621_Recording_1728x984.mp4
The following are a bunch of functions you can use to stylize text on your canvas:
fill(200,0,0);
textFont('Courier');
//textFont('Georgia');
//textFont('Helvetica');
//textFont('Verdana');
//textFont('Arial');
//textFont('Times');
//textFont('Comic Sans MS');
textStyle(NORMAL);
//textStyle(ITALIC);
//textStyle(BOLD);
//textStyle(BOLDITALIC);
textSize(50);
text("Dave Was Here",100,40);
We covered numbers and Booleans in past classes.
In today;s
Last week we covered objects
There is something that shows up in video 7.1 that was not covered… the ability to simply initialize a variable as an object. The following is an object without any methods or constructors:
let dObj = { x: 100, y: 200};