xxxxxxxxxx
47
class Caption {
constructor() {
}
text(book) {
// let yearString = [book].released;
let bookY;
this.title = [book].name;
// this.year = [yearString].substring(0,4);
this.pages = [book].numberOfPages;
this.charcount = [book].characters.length;
this.povcount = [book].povCharacters.length;
fill(textcolor);
text(this.title + " (" + this.year + ") has " + this.charcount + " characters (" + this.povcount + " povs) and is " + this.pages + " pages long.", d, bookY);
}
// agot() {
// let book = [agot];
// let yearString = agot.released;
// let bookY = m;
// }
// acok() {
// let book = [acok];
// let yearString = acok.released;
// let bookY = 2*m;
// }
// asos() {
// let book = [asos];
// let yearString = asos.released;
// let bookY = 3*m;
// }
// affc() {
// let book = [affc];
// let yearString = affc.released;
// let bookY = 4*m;
// }
// adwd() {
// let book = [adwd];
// let yearString = adwd.released;
// let bookY = 5*m;
// }
}