Skip to content

Commit

Permalink
1.9.64
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Jun 13, 2024
1 parent 8582fd3 commit bce5671
Show file tree
Hide file tree
Showing 16 changed files with 606 additions and 513 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ p5's error messages are friendlier but often too vague, leaving beginners search
🌸 p5.js says: [test.js, line 19] text() was expecting at least 3 arguments, but received only 1.
```

Why not ask ChatGPT 4o? It excels at identifying the most common errors that beginners make: typos, missing syntax, incorrect arguments, and more.

q5 creates error reports that can be sent to an AI just by clicking a link! Users can also run the `askAI()` function before a line of code that isn't working as expected. 🤖

```js
Expand Down
9 changes: 5 additions & 4 deletions home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ <h2 id="more-vibrant-colors-🎨">More vibrant colors! 🎨</h2>
}

function draw() {
if (!canvas.visible) return;

background('#eee');

let f = frameCount * 0.002;
Expand Down Expand Up @@ -104,6 +106,8 @@ <h2 id="more-vibrant-colors-🎨">More vibrant colors! 🎨</h2>
}

function draw() {
if (!canvas.visible) return;

background('#eee');

let f = frameCount * 0.002;
Expand Down Expand Up @@ -141,16 +145,13 @@ <h2 id="more-help-for-beginners-✨">More help for beginners ✨</h2>
<p>p5's error messages are often too vague, leaving users searching for help. 🙋</p>
<pre><code>🌸 p5.js says: [test.js, line 19] text() was expecting at least 3 arguments, but received only 1.
</code></pre>
<p>Why not ask ChatGPT 4o? It excels at identifying the most common errors that beginners make: typos, missing
syntax, incorrect arguments, and more.</p>
</md>
<md id="md3-2">
<p>Run q5's <code>askAI()</code> function before code that isn't working as expected. 🤖</p>
<p>Run q5's <code>askAI()</code> before code that isn't working as expected. 🤖</p>
<pre><code>The `text` function requires the x and y coordinates where the text should be drawn to the canvas.

text('Hello!', 50, 50);
</code></pre>
<p>Spend less time debugging and more time creating! 🐛</p>
</md>
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions lang/en/home/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,16 @@ p5's error messages are often too vague, leaving users searching for help. 🙋
🌸 p5.js says: [test.js, line 19] text() was expecting at least 3 arguments, but received only 1.
```

Why not ask ChatGPT 4o? It excels at identifying the most common errors that beginners make: typos, missing syntax, incorrect arguments, and more.

# 3-2

Run q5's `askAI()` function before code that isn't working as expected. 🤖
Run q5's `askAI()` before code that isn't working as expected. 🤖

```
The `text` function requires the x and y coordinates where the text should be drawn to the canvas.
text('Hello!', 50, 50);
```

Spend less time debugging and more time creating! 🐛

# 4-0

## More flexible 💪
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "q5",
"version": "1.9.63",
"version": "1.9.64",
"description": "The sequel to p5.js that's smaller and faster",
"author": "quinton-ashley",
"contributors": [
Expand All @@ -11,7 +11,7 @@
"homepage": "https://q5js.org/home",
"main": "q5-server.js",
"scripts": {
"bundle": "cat src/q5-core.js src/q5-2d-canvas.js src/q5-2d-drawing.js src/q5-2d-image.js src/q5-2d-text.js src/q5-ai.js src/q5-color.js src/q5-display.js src/q5-input.js src/q5-math.js src/q5-sound.js src/q5-util.js src/q5-vector.js > q5.js",
"bundle": "cat src/q5-core.js src/q5-2d-canvas.js src/q5-2d-drawing.js src/q5-2d-image.js src/q5-2d-soft-filters.js src/q5-2d-text.js src/q5-ai.js src/q5-color.js src/q5-display.js src/q5-input.js src/q5-math.js src/q5-sound.js src/q5-util.js src/q5-vector.js > q5.js",
"min": "terser q5.js --compress ecma=2024 --mangle > q5.min.js",
"dist": "bun bundle && cp q5.js ../../web/p5play-web/v3/q5.js && bun min && cp q5.min.js ../../web/p5play-web/v3/q5.min.js",
"v": "npm version patch --force",
Expand Down
Loading

0 comments on commit bce5671

Please sign in to comment.