Skip to content

Commit 13ce5d4

Browse files
committed
fix: update old link to new website in examples
1 parent c4eea2e commit 13ce5d4

File tree

50 files changed

+125
-125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+125
-125
lines changed

src/content/examples/en/01_Shapes_And_Color/00_Shape_Primitives/description.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ relatedReference:
1010

1111
This program demonstrates the use of the basic shape
1212
primitive functions
13-
<a href="https://p5js.org/reference/#/p5/square" target="_blank">square()</a>,
14-
<a href="https://p5js.org/reference/#/p5/rect" target="_blank">rect()</a>,
15-
<a href="https://p5js.org/reference/#/p5/ellipse" target="_blank">ellipse()</a>,
16-
<a href="https://p5js.org/reference/#/p5/circle" target="_blank">circle()</a>,
17-
<a href="https://p5js.org/reference/#/p5/arc" target="_blank">arc()</a>,
18-
<a href="https://p5js.org/reference/#/p5/line" target="_blank">line()</a>,
19-
<a href="https://p5js.org/reference/#/p5/triangle" target="_blank">triangle()</a>,
20-
and <a href="https://p5js.org/reference/#/p5/quad" target="_blank">quad()</a>.
13+
<a href="https://p5js.org/reference/p5/square" target="_blank">square()</a>,
14+
<a href="https://p5js.org/reference/p5/rect" target="_blank">rect()</a>,
15+
<a href="https://p5js.org/reference/p5/ellipse" target="_blank">ellipse()</a>,
16+
<a href="https://p5js.org/reference/p5/circle" target="_blank">circle()</a>,
17+
<a href="https://p5js.org/reference/p5/arc" target="_blank">arc()</a>,
18+
<a href="https://p5js.org/reference/p5/line" target="_blank">line()</a>,
19+
<a href="https://p5js.org/reference/p5/triangle" target="_blank">triangle()</a>,
20+
and <a href="https://p5js.org/reference/p5/quad" target="_blank">quad()</a>.

src/content/examples/en/01_Shapes_And_Color/01_Color/description.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ oneLineDescription: Add color to your sketch.
77

88
This expands on the Shape Primitives example by adding
99
color.
10-
<a href="https://p5js.org/reference/#/p5/background" target="_blank">background()</a>
10+
<a href="https://p5js.org/reference/p5/background" target="_blank">background()</a>
1111
fills the canvas with one color,
12-
<a href="https://p5js.org/reference/#/p5/stroke" target="_blank">stroke()</a>
12+
<a href="https://p5js.org/reference/p5/stroke" target="_blank">stroke()</a>
1313
sets the color for drawing lines, and
14-
<a href="https://p5js.org/reference/#/p5/fill" target="_blank">fill()</a>
14+
<a href="https://p5js.org/reference/p5/fill" target="_blank">fill()</a>
1515
sets the color for the inside of shapes.
16-
<a href="https://p5js.org/reference/#/p5/noFill" target="_blank">noStroke()</a> and
17-
<a href="https://p5js.org/reference/#/p5/noFill" target="_blank">noFill()</a>
16+
<a href="https://p5js.org/reference/p5/noFill" target="_blank">noStroke()</a> and
17+
<a href="https://p5js.org/reference/p5/noFill" target="_blank">noFill()</a>
1818
turn off line color and inner color, respectively.
1919

2020
Colors can be represented in many different ways. This example demonstrates several options.

src/content/examples/en/02_Animation_And_Variables/00_Drawing_Lines/description.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ Click and drag the mouse to draw a line.
99

1010
This example demonstrates the use of several built-in
1111
variables.
12-
<a href="https://p5js.org/reference/#/p5/mouseX">mouseX</a>
12+
<a href="https://p5js.org/reference/p5/mouseX">mouseX</a>
1313
and
14-
<a href="https://p5js.org/reference/#/p5/mouseY">mouseY</a>
14+
<a href="https://p5js.org/reference/p5/mouseY">mouseY</a>
1515
store the current mouse position, while the
1616
previous mouse position is represented by
17-
<a href="https://p5js.org/reference/#/p5/pmouseX">pmouseX</a>
17+
<a href="https://p5js.org/reference/p5/pmouseX">pmouseX</a>
1818
and
19-
<a href="https://p5js.org/reference/#/p5/pmouseY">pmouseY</a>.
19+
<a href="https://p5js.org/reference/p5/pmouseY">pmouseY</a>.
2020
*
2121
This example also shows the use of
22-
<a href="https://p5js.org/reference/#/p5/colorMode">colorMode</a> with HSB
22+
<a href="https://p5js.org/reference/p5/colorMode">colorMode</a> with HSB
2323
(hue-saturation-brightness), so that the first variable sets the hue.

src/content/examples/en/02_Animation_And_Variables/01_Animation_With_Events/description.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ oneLineDescription: Pause and resume animation.
66
---
77

88
This example demonstrates the use of
9-
<a href="https://p5js.org/reference/#/p5/loop">loop()</a>
9+
<a href="https://p5js.org/reference/p5/loop">loop()</a>
1010
and
11-
<a href="https://p5js.org/reference/#/p5/noLoop">noLoop()</a>
11+
<a href="https://p5js.org/reference/p5/noLoop">noLoop()</a>
1212
to pause and resume the animation.
1313

1414
Clicking the mouse toggles the animation loop. If the animation
@@ -17,5 +17,5 @@ Note: the user must click to set the focus on the canvas for
1717
key presses to be registered.
1818

1919
Advancing a single frame is accomplished by calling the
20-
<a href="https://p5js.org/reference/#/p5/redraw">redraw()</a>
20+
<a href="https://p5js.org/reference/p5/redraw">redraw()</a>
2121
function, which results in a single call to the draw() function.

src/content/examples/en/02_Animation_And_Variables/02_Mobile_Device_Movement/description.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ oneLineDescription: Animate based on device motion.
66
featured: true
77
---
88

9-
The <a href="https://p5js.org/reference/#/p5/deviceMoved" target="_blank">deviceMoved()</a>
9+
The <a href="https://p5js.org/reference/p5/deviceMoved" target="_blank">deviceMoved()</a>
1010
function runs when the mobile device displaying the sketch moves.
1111
In this example, the
12-
<a href="https://p5js.org/reference/#/p5/accelerationX" target="_blank">accelerationX</a>,
13-
<a href="https://p5js.org/reference/#/p5/accelerationY" target="_blank">accelerationY</a>,
14-
and <a href="https://p5js.org/reference/#/p5/accelerationZ" target="_blank">accelerationZ</a>
12+
<a href="https://p5js.org/reference/p5/accelerationX" target="_blank">accelerationX</a>,
13+
<a href="https://p5js.org/reference/p5/accelerationY" target="_blank">accelerationY</a>,
14+
and <a href="https://p5js.org/reference/p5/accelerationZ" target="_blank">accelerationZ</a>
1515
values set the position and size of a circle.
1616
This only works for mobile devices.

src/content/examples/en/02_Animation_And_Variables/03_Conditions/description.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If and else statements allow a
1010
to run only when a certain condition is true. This example only
1111
animates when the mouse is held down. This is because of the if
1212
statement on line 59. You can read more about if and else statements
13-
<a href="https://p5js.org/reference/#/p5/if-else">in the p5 reference</a>
13+
<a href="https://p5js.org/reference/p5/if">in the p5 reference</a>
1414
or <a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals" target="_blank">on MDN</a>.
1515

1616
Comparison operators help to form conditions by comparing two

src/content/examples/en/03_Imported_Media/00_Words/description.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ title: Words
55
oneLineDescription: Load fonts and draw text.
66
---
77

8-
The <a href="https://p5js.org/reference/#/p5/text" target="_blank">text()</a> function is used for inserting text into the canvas.
9-
You can change the font and text size using the <a href="https://p5js.org/reference/#/p5/loadFont" target="_blank">loadFont()</a>
10-
and <a href="https://p5js.org/reference/#/p5/fontSize" target="_blank">fontSize()</a> functions.
11-
The text can be aligned left, center, or right with the <a href="https://p5js.org/reference/#/p5/textAlign" target="_blank">textAlign()</a>
12-
function, and, like shapes, text can be colored with <a href="https://p5js.org/reference/#/p5/fill" target="_blank">fill()</a>.
8+
The <a href="https://p5js.org/reference/p5/text" target="_blank">text()</a> function is used for inserting text into the canvas.
9+
You can change the font and text size using the <a href="https://p5js.org/reference/p5/loadFont" target="_blank">loadFont()</a>
10+
and <a href="https://p5js.org/reference/p5/fontSize" target="_blank">fontSize()</a> functions.
11+
The text can be aligned left, center, or right with the <a href="https://p5js.org/reference/p5/textAlign" target="_blank">textAlign()</a>
12+
function, and, like shapes, text can be colored with <a href="https://p5js.org/reference/p5/fill" target="_blank">fill()</a>.

src/content/examples/en/03_Imported_Media/01_Copy_Image_Data/description.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ title: Copy Image Data
55
oneLineDescription: Paint from an image file onto the canvas.
66
---
77

8-
Using the <a href="https://p5js.org/reference/#/p5/copy" target="_blank">copy()</a>
8+
Using the <a href="https://p5js.org/reference/p5/copy" target="_blank">copy()</a>
99
method, you can simulate coloring an image in by copying an image of the colored
1010
image on top of the black-and-white image wherever the cursor is dragged.

src/content/examples/en/03_Imported_Media/02_Alpha_Mask/description.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ oneLineDescription: Use one image to cut out a section of another image.
66
---
77

88
Using the
9-
<a href="https://p5js.org/reference/#/p5/mask" target="_blank">mask()</a>
9+
<a href="https://p5js.org/reference/p5/mask" target="_blank">mask()</a>
1010
method, you can create a mask for an image to specify the transparency in
1111
different parts of the image. To run this example locally, you will need two
1212
image files and a running

src/content/examples/en/03_Imported_Media/03_Image_Transparency/description.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ oneLineDescription: Make an image translucent on the canvas.
77

88
This program overlays one image over another by modifying the
99
alpha value of the image with the
10-
<a href="https://p5js.org/reference/#/p5/tint" target="_blank">tint()</a>
10+
<a href="https://p5js.org/reference/p5/tint" target="_blank">tint()</a>
1111
function. Move the cursor left and right across the canvas to change the
1212
image's position. To run this example
1313
locally, you will need an image file and a running

0 commit comments

Comments
 (0)