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?