Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

q5.js v2.0 #23

Open
quinton-ashley opened this issue Feb 24, 2023 · 2 comments
Open

q5.js v2.0 #23

quinton-ashley opened this issue Feb 24, 2023 · 2 comments

Comments

@quinton-ashley
Copy link

I solved issues #7 #9 #14 #17 #20 #21 and #22

Check out all the updates I made to q5xjs! I'd like to add all these changes to your q5xjs repo. Please add me as a project maintainer. :)

https://github.com/quinton-ashley/q5.js

  • 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
@snarfed
Copy link

snarfed commented Dec 6, 2023

@quinton-ashley your fixes are great! I couldn't get this repo's code working with eg https://generated.space/ , but https://github.com/quinton-ashley/q5.js runs them ok. Thank you!

@quinton-ashley quinton-ashley changed the title Many issues fixed! Add me as a project maintainer :) q5.js v2.0 Jun 22, 2024
@quinton-ashley
Copy link
Author

Check out q5.js v2
https://q5js.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants