v2.10
2.10.2
q5 is now 10000x faster than p5 at drawing an image multiple times with the same tint color applied. q5 is 2x faster at tinting than p5, but will avoid the process unless the tint color is changed or the image is edited.
2.10.1
Should've used the image's size for the tintImg not the display size.
Fringing around the image, where colors from the original image are visible, is still affecting pixels on the edge between visible and transparent pixels, but it's nearly unnoticeable unless you zoom in on a saved image of a canvas. I'll see if this approach can be refined further though.
2.10.0
q5.js v2.10 introduces shadow support in the q2d renderer! See the documentation of the new shadow
, noShadow
, and shadowBox
functions:
https://q5js.org/learn/#shadow
Also fixed tinting, now the tint color is only applied to the non-transparent parts of images and canvases with an alpha channel.
Check Q5.version
to see which version of q5 is loaded, currently set to "2.10".
Added documentation for image functions: https://q5js.org/learn/#image-section