Skip to content

Commit

Permalink
2.13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Dec 19, 2024
1 parent 90d23ce commit 75b8271
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
3 changes: 3 additions & 0 deletions learn/mini-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ class MiniEditor {
const q5FunctionNames = [
'preload',
'setup',
'update',
'updateCamera',
'draw',
'postProcess',
'doubleClicked',
'keyPressed',
'keyReleased',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q5",
"version": "2.13.3",
"version": "2.13.4",
"description": "A sequel to p5.js that's optimized for interactive art",
"author": "quinton-ashley",
"contributors": [
Expand Down
17 changes: 17 additions & 0 deletions q5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ function draw() {
*/
function preload(): void;

/** ⭐️
* Runs after each `draw` function call and post draw hooks.
*
* Useful for adding post-processing effects when using libraries
* like p5play that by default, automatically draw to the canvas
* after the `draw` function.
* @example
function draw() {
background(200);
circle(frameCount % 200, 100, 80);
}
function postProcess() {
filter(INVERT);
}
*/
function postProcess(): void;

/** ⭐️
* The number of frames that have been displayed since the program started.
* @example
Expand Down
2 changes: 1 addition & 1 deletion q5.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function createCanvas(w, h, opt) {
}
}

Q5.version = Q5.VERSION = '2.11';
Q5.version = Q5.VERSION = '2.13';

if (typeof document == 'object') {
document.addEventListener('DOMContentLoaded', () => {
Expand Down
2 changes: 1 addition & 1 deletion q5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/q5-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function createCanvas(w, h, opt) {
}
}

Q5.version = Q5.VERSION = '2.11';
Q5.version = Q5.VERSION = '2.13';

if (typeof document == 'object') {
document.addEventListener('DOMContentLoaded', () => {
Expand Down

0 comments on commit 75b8271

Please sign in to comment.