Processing is Java + sophisticated graphics and animation capabilties: you create a canvas and you can then draw to it. It has a bunch of functions and libraries for use by artists and graphics people. It’s solid and performant. And there is a Python mode these days if you like significant whitespace.
p5.js is Processing ported to JavaScript.