Sunsets and Shooting Stars in p5.js

This beginner-friendly tutorial will teach you how to paint a sunset scene on p5.js using gradients, loops, arrays, and objects! Open a new window in Google Chrome and go to the p5.js editor. You should see code that looks like this: function setup() { createCanvas(400, 400);} function draw() { background(220);} 2.