v2.5
2.5.2
Forgot to bump the version number to v2.5 in the q5-core.js file.
2.5.1
textImage
now accepts a string for easy creation of text images which are just stored internally by the textCache and do not need to be managed by the user.
textImage('🐶', 0, 0);
Added a new function, inset
/img.inset
, which has similar functionality to p5's oddly named copy
/img.copy
function. It displays a region of the image on another region of the image. Can be used to create a detail inset, aka a magnifying glass effect.
https://en.wikipedia.org/wiki/Map_layout#:~:text=A-,Detail%20inset,-is%20of%20a
In q5, copy
and image.copy
will do what users expect, simply making a copy of the canvas or image. Same as using get()
. #63
Fixed #72 by having it return an RGBA array, since q5 Image objects do not have access to the Color
constructor or the canvas' color mode.
get
also unnecessarily used getImageData
and putImageData
when really all it needs to do is draw a subsection of the source image to the image it returns.
2.5.0
WebGPU realtime text rendering added!
https://github.com/q5js/q5.js/tree/main/src#webgpu-text