Open quinton-ashley opened 1 year ago
@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!
Check out q5.js v2 https://q5js.org
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!new Q5('global')
like with the previous version of q5xjsnew Q5('global', parentElem)
ornew Q5(parentElem)
angleMode
functionalityloadSound
function that returns a barebones sound object withplay
,pause
, andsetVolume
methodspixelDensity
bugstext
function bug not displaying "0" (falsey value in JS)keyPressed
repeating key pressesinstanceof
checks work for q5.js objects of theColor
,Vector
, andImage
classespush
andpop
functions now save and restore style properties likerectMode
andstrokeWeight
nf
(number format) function, which is used in p5playpow
function alias toMath.pow
Vector.lerp
implementationmouseX
andmouseY
not updating when the mouse is outside the canvas