Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meier authored Oct 1, 2024
2 parents 6a83470 + d1cae09 commit e66a931
Show file tree
Hide file tree
Showing 165 changed files with 3,378 additions and 454 deletions.
763 changes: 554 additions & 209 deletions public/reference/data.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/hi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/zh-Hans.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/GridItem/Tutorial.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import Image from "@components/Image/index.astro";
import type { CollectionEntry } from "astro:content";
import { removeLocalePrefix } from "@i18n/utils";
interface Props {
item: CollectionEntry<"tutorials">;
Expand All @@ -10,7 +11,7 @@ interface Props {
const { item, lazyLoad } = Astro.props;
---

<a href={`/tutorials/${item.slug}/`} class="group hover:no-underline">
<a href={`/tutorials/${removeLocalePrefix(item.slug).slice(1)}/`} class="group hover:no-underline">
{
item.data.featuredImageAlt && item.data.featuredImage && (
<Image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ The above parameter validation message will be shown in Korean if the browser is

Please consider adding unit tests for your new FE messages to detect bugs early and to ensure your code is delivering intended messages to our users. Also, unit tests are a good way to make sure other contributor’s new code does not accidentally break or interfere with the functionality of your code. Here are a few good guides on unit testing:

* [Unit Testing and Test Driven Development](https://docs.google.com/document/d/1iw60L1abRJZDn1zUViO9A0j6Fco4yFoQ9LXIlEEroN8/edit?usp=sharing) by Andy Timmons
* [Unit Testing and Test Driven Development](https://archive.p5js.org/learn/tdd.html) by Andy Timmons
* [Contributors Doc: Unit Testing](../unit_testing/)

Example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you're reading this page, you're probably interested in helping work on WebGL

## Planning

We organize open issues [in a GitHub Project](https://github.com/orgs/processing/projects/5/), where we divide them up into a few types:
We organize open issues [in a GitHub Project](https://github.com/orgs/processing/projects/20/), where we divide them up into a few types:

* **System-level changes** are longer-term goals with far-reaching implications in the code. These require the most discussion and planning before jumping into implementation.
* **Bugs with no solution yet** are bug reports that need some debugging to narrow down the cause. These are not yet ready to be fixed: once the cause is found, then we can discuss the best way to fix it.
Expand Down
10 changes: 10 additions & 0 deletions src/content/libraries/en/p5.colorGenerator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: p5.colorGenerator
category: color
description: p5.colorGenerator generates harmonious color schemes by starting from a given base color or selecting a random color as a starting point.
author:
- name: Alex Codes Art
url: https://alexcodesart.com
sourceUrl: https://github.com/alexandru-postolache/p5.colorGenerator
websiteUrl: https://alexandru-postolache.github.io/p5.colorGenerator/demo
featuredImage: "../images/p5.colorGenerator.png"
featuredImageAlt: Waves coloured using different tints of yellow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/content/pages/en/education-resources.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
slug: education-resources
title: Education Resources
---

Expand Down
1 change: 0 additions & 1 deletion src/content/pages/en/libraries.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
slug: libraries
title: Libraries
---

Expand Down
1 change: 0 additions & 1 deletion src/content/pages/en/reference.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
slug: reference
title: Reference
---

Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/camera.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ description: >
the "up"
vector is <code>(0, 1, 0)</code>.</p>
line: 2764
line: 2765
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerX</code> is 0.</p>
line: 1186
line: 1187
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerY</code> is 0.</p>
line: 1299
line: 1300
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/centerZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: >
"world" space, so
<code>myCamera.centerZ</code> is 0.</p>
line: 1412
line: 1413
isConstructor: false
itemtype: property
example:
Expand Down
6 changes: 3 additions & 3 deletions src/content/reference/en/p5.Camera/eyeX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module: 3D
submodule: Camera
file: src/webgl/p5.Camera.js
description: |
<p>The camera’s y-coordinate.</p>
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
line: 850
<p>The camera’s x-coordinate.</p>
<p>By default, the camera’s x-coordinate is set to 0 in "world" space.</p>
line: 851
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/eyeY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
description: |
<p>The camera’s y-coordinate.</p>
<p>By default, the camera’s y-coordinate is set to 0 in "world" space.</p>
line: 962
line: 963
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/eyeZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ file: src/webgl/p5.Camera.js
description: |
<p>The camera’s z-coordinate.</p>
<p>By default, the camera’s z-coordinate is set to 800 in "world" space.</p>
line: 1074
line: 1075
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/frustum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ description: >
the
camera and the origin.</p>
line: 2273
line: 2274
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/lookAt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ description: >
<code>myCamera.lookAt(10, 20, 30)</code> points the camera at the coordinates
<code>(10, 20, 30)</code>.</p>
line: 2667
line: 2668
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/move.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: >
pixels to the right, 20 pixels down, and 30 pixels backward in its "local"
space.</p>
line: 2992
line: 2993
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/ortho.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ description: >
<code>far</code> are set to
0 and <code>max(width, height) + 800</code>, respectively.</p>
line: 2085
line: 2086
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/pan.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2541
line: 2542
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/perspective.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ description: >
<code>10 * 800</code>,
which is 10 times the default distance between the camera and the origin.</p>
line: 1862
line: 1863
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/roll.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2463
line: 2464
isConstructor: false
itemtype: method
alt: >-
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/set.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ description: >
<code>cam2.set(cam1)</code> will set <code>cam2</code> using
<code>cam1</code>’s configuration.</p>
line: 3243
line: 3244
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/setPosition.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: >
places the camera at coordinates <code>(10, 20, 30)</code> in "world"
space.</p>
line: 3089
line: 3090
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/slerp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ description: >
close to <code>cam1</code>’s.</p>
<p>Note: All of the cameras must use the same projection.</p>
line: 3320
line: 3321
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/tilt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ description: >
<p>Note: Angles are interpreted based on the current
<a href="/reference/p5/angleMode/">angleMode()</a>.</p>
line: 2604
line: 2605
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upX.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The x-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its x-component is 0 in "local" space.</p>
line: 1525
line: 1526
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upY.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The y-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its y-component is 1 in "local" space.</p>
line: 1636
line: 1637
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Camera/upZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
<p>The z-component of the camera's "up" vector.</p>
<p>The camera's "up" vector orients its y-axis. By default, the "up" vector is
<code>(0, 1, 0)</code>, so its z-component is 0 in "local" space.</p>
line: 1747
line: 1748
isConstructor: false
itemtype: property
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/addClass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ submodule: DOM
file: src/dom/dom.js
description: |
<p>Adds a class to the element.</p>
line: 2536
line: 2540
isConstructor: false
itemtype: method
example:
Expand Down
6 changes: 3 additions & 3 deletions src/content/reference/en/p5.Element/attribute.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ description: >
horizontal
alignment to <code>center</code>.</p>
line: 3257
line: 3261
isConstructor: false
itemtype: method
example:
Expand Down Expand Up @@ -80,12 +80,12 @@ return:
description: value of the attribute.
type: String
overloads:
- line: 3257
- line: 3261
params: []
return:
description: value of the attribute.
type: String
- line: 3312
- line: 3316
params:
- name: attr
description: |
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/center.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: >
is aligned
both vertically and horizontally.</p>
line: 2809
line: 2813
isConstructor: false
itemtype: method
example:
Expand Down
6 changes: 3 additions & 3 deletions src/content/reference/en/p5.Element/child.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: >
array of
children DOM nodes is returned.</p>
line: 2704
line: 2708
isConstructor: false
itemtype: method
example:
Expand Down Expand Up @@ -92,12 +92,12 @@ return:
description: an array of child nodes.
type: 'Node[]'
overloads:
- line: 2704
- line: 2708
params: []
return:
description: an array of child nodes.
type: 'Node[]'
- line: 2784
- line: 2788
params:
- name: child
description: |
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/draggable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ description: >
<code>myElement.draggable(otherElement)</code>, the other element will become
draggable.</p>
line: 3927
line: 3931
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/drop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ description: >
<a
href="https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/">DragEvent</a>.</p>
line: 3772
line: 3776
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/hasClass.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ submodule: DOM
file: src/dom/dom.js
description: |
<p>Checks if a class is already applied to element.</p>
line: 2618
line: 2622
isConstructor: false
itemtype: method
example:
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Element/hide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ submodule: DOM
file: src/dom/dom.js
description: |
<p>Hides the current element.</p>
line: 3511
line: 3515
isConstructor: false
itemtype: method
example:
Expand Down
6 changes: 3 additions & 3 deletions src/content/reference/en/p5.Element/html.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: >
element's inner
HTML is returned.</p>
line: 2875
line: 2879
isConstructor: false
itemtype: method
example:
Expand Down Expand Up @@ -82,12 +82,12 @@ return:
description: the inner HTML of the element
type: String
overloads:
- line: 2875
- line: 2879
params: []
return:
description: the inner HTML of the element
type: String
- line: 2944
- line: 2948
params:
- name: html
description: |
Expand Down
Loading

0 comments on commit e66a931

Please sign in to comment.