let newFont;
let directionalLightEnable = false;
function preload() {
newFont = loadFont('fonts/Montserrat.otf');
}
function setup() {
createCanvas(600, 300, WEBGL);
textFont(newFont, 18);
}
function draw() {
background('black');
text("This sketch has 4 directional lights "
+ "from different directions", -285, -125);
directionalLight(255, 0, 0, height / 2, width / 2, -1);
directionalLight(0, 0, 255, -height / 2, -width / 2, -1);
directionalLight(0, 255, 0, -height / 2, width / 2, -1);
directionalLight(255, 255, 255, height / 2, -width / 2, -1);
noStroke();
sphere(100);
}