Need help from converting this p5.js/JavaScript program to Processing

Of course I am just getting a black screen. I don’t have a Firework class that draws anything!

Without the Firework class, how do you expect me to get anything other than a black screen, or test it properly?