Processing.js references state that the @pjs preload directive supports loading base64 images. However, it does not state how to use those prelaoded images via loadImage() or by other means.
The closest equivalent is base64 font preloading using the same method; which can be used via createFont() by their font-name (without the extension.)
But I don’t understand how to use preloaded images in the same manner, as images have no embedded names like fonts do. What am I doing wrong?
As for using base64 data:uri without preloading, I have found that loadImage() takes such data readily.
Is it possible to load base64 images via loadImage() and what other options do I have with this API?
You actually implicitly answered your own question. Base64 data actually doesn’t need preloading because it is immediately available (i.e. no images need to be downloaded, you just provided the function with all the data it needs) so you can just pass it to loadImage and things will work.
I’ll make a note to adjust our documentation, because it’s a bit silly to note that you can preload from Base64 data, when there is no functional point in doing so.