function baseGrad() { let g = new LinearGradient() g.locations = [0, 1] return g } function gradBaseBlackTop(clr) { let g = baseGrad() g.colors = [ new Color("141414"), new Color(clr) ] return g } function gradBaseBlackBottom(clr) { let g = baseGrad() g.colors = [ new Color(clr), new Color("141414") ] return g } class Grads { blackToBlue() { return gradBaseBlackTop("13233F") } blueToBlack() { return gradBaseBlackBottom("13233F") } } module.exports.Grads = () => { return new Grads() } class DT { gethr() { let dw = new Date() let d = dw.getDate().toString() let df = new DateFormatter() df.dateFormat = "h" return df.string(dw) } getAbbrDow() { let dw = new Date() let d = dw.getDate().toString() let df = new DateFormatter() df.dateFormat = "E" return df.string(dw) } } module.exports.DT = () => { return new DT() } class Fonts { mono(s) { // return new Font("Courier", s) return new Font("DB LCD Temp", s) } clock(s) { return new Font("DB LCD Temp", s) } } module.exports.Fonts = () => { return new Fonts() }