Processing is based on Java.
Since JavaScript also resembles Java on the surface, porting Processing code to the web is fairly straightforward using the p5.js JavaScript library.