Skip to content

v1.0

Compare
Choose a tag to compare
@quinton-ashley quinton-ashley released this 15 Feb 22:08
· 296 commits to main since this release

This preview version has high compatibility with p5.js and has been made available for beta testing!

Co-creator of q5, @quinton-ashley, added a ton of features:

  • registerMethod functionality for supporting p5.js addons such as p5play!
  • automatic global instance creation, can also be user instantiated as well with new Q5('global') like with the previous version of q5xjs
  • p5 instance mode support
  • add q5 canvas to a container element with new Q5('global', parentElem) or new Q5(parentElem)
  • angleMode functionality
  • loadSound function that returns a barebones sound object with play, pause, and setVolume methods
  • fixed pixelDensity bugs
  • fixed text function bug not displaying "0" (falsey value in JS)
  • fixed keyPressed repeating key presses
  • made instanceof checks work for q5.js objects of the Color, Vector, and Image classes
  • the push and pop functions now save and restore style properties like rectMode and strokeWeight
  • nf (number format) function, which is used in p5play
  • pow function alias to Math.pow
  • prevented text stroke from being drawn if the user did not specify a stroke (p5.js behavior)
  • fixed Vector.lerp implementation
  • fixed mouseX and mouseY not updating when the mouse is outside the canvas