Skip to content

v2.9

Compare
Choose a tag to compare
@quinton-ashley quinton-ashley released this 25 Oct 03:50
· 53 commits to main since this release

2.9.22

Edited all files to add new lines between functions, unless the functions are one liners.

2.9.21

Removed LingDong's Catmull Rom spline code in favor of the canvas2d api ctx.bezierCurveTo with the spline points adjusted to fit a bezier curve (much faster).

Implemented curveVertex in q5 WebGPU.

2.9.20

  • Fixed lines and points not showing up after noFill() is called.
  • Fixed lines not being y positioned correctly.
  • Fixed rotation function not combining rotations correctly

Had to re-implement line and point which are now optimized. line now does the calculations needed make the line from a rect (and two circles for rounded caps if strokeWeight is greater than 2), without messing with the transformation matrix.

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().