Repository navigation
v2.1
v2.1.0
Proof of concept support for WebGPU rendering added!
Changes:
- For modular use, the
q5-canvasmodule must be loaded before renderer modules #58 colorModeupdated to support the "float" color format for RGBA colors, which is the default for the webgpu renderer #57fillandstrokepersist between draw loops with the q2d renderer #56- mouse position can be updated without a canvas element
colorcan now parse three and four character rgb hex color codes (ex. "#fff")tintdoesn't change the opacity of an image, instead the tint's alpha value specifies how strong the tint should be. To dynamically change the opacity of anything drawn to the canvas, useopacity(globalAlpha).
Internal changes:
pfor the q5 instance proxy changed toq- Renderer modules are now added to the
Q5.renderModulesobject, instead ofQ5.modules. This enables individual renderers to be loaded separately. - canvas creation and resizing moved to q5-canvas.js and significantly refactored, resulting in a smaller file size
Q5.ColorRGBA_8,Q5.ColorRGBA_P3_8classes store colors in the legacy 0-255 8-bit formatQ5.ColorRGBA,Q5.ColorRGBA_P3classes store colors in the modern 0-1 float formatfullscreenfunction moved to the display modulefill,noFill,stroke,strokeWeight, andnoStrokefunctions moved from q2d-canvas module because they can also apply to text, without needing to load the q2d-drawing module.