Skip to content

v2.9

Latest
Compare
Choose a tag to compare
@quinton-ashley quinton-ashley released this 25 Oct 03:50
· 5 commits to main since this release
<script src="https://q5js.org/q5.js"></script>

2.9.13

Fixed a regression in v2.9.0 that caused Q5.Graphics objects to display at an incorrect default size.

When images are resized, a new default width and height are calculated.

2.9.10

pushStyles() and popStyles() now affect the fill and stroke colors, as documented.

In WebGPU circle and ellipse are now drawn at the proper y coordinates.

2.9.3

Q5.Image and Q5.Graphics props defaultWidth and defaultHeight store the pre-calculated default size of each image loaded.

Setting the displayMode render quality to "pixelated" sets defaultImageScale(1), as users would expect.

2.9.0

In q5.js v2.9, if display size isn't provided to the image function, and pixelDensity is 2, the image will display at its actual size!

https://github.com/q5js/q5.js/wiki/Developer-Log#changing-the-default-display-size-for-images--october-23-2024

defaultImageScale(0.5) is the default in q5, which is ideal for displays with a pixel density of 2.

Also, createCanvas can now be used to initiate top-level global mode, internally it calls new Q5().