Skip to content

Commit

Permalink
1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Sep 18, 2023
1 parent 8a06676 commit f7337eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "quinton-ashley",
"name": "q5",
"version": "1.3.1",
"version": "1.3.2",
"description": "An implementation of the p5.js 2D API that's smaller and faster",
"main": "q5.js",
"scripts": {
Expand Down
7 changes: 2 additions & 5 deletions q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1599,15 +1599,12 @@ function Q5(scope, parent) {
(h ? 'x' + h : '')
);
}
$.createTextImage = (str, size, w, h) => {
$.createTextImage = (str, w, h) => {
let og = $._textCache;
$._textCache = true;
let s = $.textSize();
if (size) $.textSize(size);
$.text(str, 0, 0, w);
$.text(str, 0, 0, w, h);
let k = genTextImageKey(str, w, h);
$._textCache = og;
$.textSize(s);
return $._tic.get(k);
};
$.text = (str, x, y, w, h) => {
Expand Down
2 changes: 1 addition & 1 deletion q5.min.js

Large diffs are not rendered by default.

0 comments on commit f7337eb

Please sign in to comment.