Skip to content

Commit 77f095b

Browse files
committed
Update links in Get Started page
1 parent 20dcf87 commit 77f095b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/content/tutorials/en/get-started.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Welcome to p5.js! New to p5.js and want to learn some basics for creating an int
3333

3434
## Prerequisites
3535

36-
- [Setting Up Your Environment](setting-up-your-environment)
36+
- [Setting Up Your Environment](../setting-up-your-environment)
3737

3838
Before you begin you should be able to:
3939

@@ -43,7 +43,7 @@ Before you begin you should be able to:
4343

4444
- Create and save a new p5.js project in [VS Code](https://code.visualstudio.com/) (or another code editor)
4545

46-
For a step-by-step guide to creating and saving projects in the [p5.js Web Editor](https://editor.p5js.org/) or [VS Code](https://code.visualstudio.com/), visit [Setting Up Your Environment](setting-up-your-environment).
46+
For a step-by-step guide to creating and saving projects in the [p5.js Web Editor](https://editor.p5js.org/) or [VS Code](https://code.visualstudio.com/), visit [Setting Up Your Environment](../setting-up-your-environment).
4747

4848

4949
## Step 1: Name and save a new p5.js project
@@ -222,7 +222,7 @@ As an object on the canvas moves to the right of this point, its horizontal loca
222222

223223
The maximum values for the horizontal and vertical position of the canvas are set by the [`createCanvas()`](/reference/p5/createCanvas) function. The first number in [`createCanvas()`](/reference/p5/createCanvas) is the x-coordinate of the right edge, and the second number is the y-coordinate of the bottom edge. 
224224

225-
Learn more about the HTML canvas coordinate system and shapes on [this p5.js reference page](https://p5js.org/learn/coordinate-system-and-shapes.html)
225+
Learn more about the HTML canvas coordinate system and shapes on [this p5.js reference page](/reference)
226226

227227

228228
## Step 6: Color shapes and outlines on the canvas
@@ -258,7 +258,7 @@ function draw() {
258258
}
259259
`} />
260260

261-
The [`fill()`](/reference/p5/fill) function sets the color for any shape on the canvas, and the [`stroke()`](/reference/p5/stroke) function sets the color for lines and outlines. They both use the same arguments that [`background()`](/reference/p5/background) uses. The code above uses an [HTML color name](https://www.w3schools.com/tags/ref_colornames.asp) as the *arguments* for [`fill()`](/reference/p5/fill) and [`stroke()`](/reference/p5/stroke); we can also use [RGB and HEX color codes](https://p5js.org/learn/color.html). The [`strokeWeight()`](/reference/p5/strokeWeight) function uses a number to set the thickness for lines, outlines, and points that are below it; the default [`strokeWeight()`](/reference/p5/strokeWeight) is 1 pixel. In the code above, [`strokeWeight(20)`](/reference/p5/strokeWeight) sets the circle’s outline to 20 pixels.
261+
The [`fill()`](/reference/p5/fill) function sets the color for any shape on the canvas, and the [`stroke()`](/reference/p5/stroke) function sets the color for lines and outlines. They both use the same arguments that [`background()`](/reference/p5/background) uses. The code above uses an [HTML color name](https://www.w3schools.com/tags/ref_colornames.asp) as the *arguments* for [`fill()`](/reference/p5/fill) and [`stroke()`](/reference/p5/stroke); we can also use [RGB and HEX color codes](https://htmlcolorcodes.com/). The [`strokeWeight()`](/reference/p5/strokeWeight) function uses a number to set the thickness for lines, outlines, and points that are below it; the default [`strokeWeight()`](/reference/p5/strokeWeight) is 1 pixel. In the code above, [`strokeWeight(20)`](/reference/p5/strokeWeight) sets the circle’s outline to 20 pixels.
262262

263263

264264
<Callout title="Tip">
@@ -335,7 +335,7 @@ function draw() {
335335

336336
![A diagram of a rectangle with a horizontal length labeled “width”, vertical length labeled “height”, and a point in the top left corner labeled “(x,y)”. The syntax for using the rect() function is displayed above the diagram as: “rect(x, y, width, height);” ](../images/introduction/rect-diagram.png)
337337

338-
Visit the p5.js reference pages for [`rect()`](/reference/p5/rect), [simple shapes](https://p5js.org/examples/hello-p5-simple-shapes.html), and [color](https://p5js.org/learn/color.html) to learn more.
338+
Visit the p5.js reference pages for [`rect()`](/reference/p5/rect), [simple shapes](/reference/#Shape), and [color](/reference/#Color) to learn more.
339339

340340

341341
## Step 8: Add emojis
@@ -410,7 +410,7 @@ function draw() {
410410

411411
Since [`draw()`](/reference/p5/draw) executes the code within the brackets over and over again, shapes are drawn on the canvas like layers. Code that appears first will be drawn first, and code that appears further down in [`draw()`](/reference/p5/draw) will be drawn after. This is why we must set [`fill()`](/reference/p5/fill), [`stroke()`](/reference/p5/stroke), and [`textSize()`](/reference/p5/textSize) before we add shapes or text to the canvas. p5.js needs to know the color or size of shapes and text ***before*** they are drawn. This also allows for overlapping shapes and can sometimes hide shapes behind others! Be sure to check the x- and y-coordinates of your shapes to see if they are behind other shapes.  
412412

413-
See these sketches for examples of layering: [overlapping shapes (hidden)](https://editor.p5js.org/Msqcoding/sketches/A4qkDd729)|[overlapping shapes](https://editor.p5js.org/Msqcoding/sketches/s822PY5T8)
413+
See these sketches for examples of layering: [overlapping shapes (hidden)](https://editor.p5js.org/Msqcoding/sketches/A4qkDd729) and [overlapping shapes](https://editor.p5js.org/Msqcoding/sketches/s822PY5T8)
414414

415415
Visit the reference pages for [`text()`](/reference/p5/text),` `[`textSize()`](/reference/p5/textSize), and [`draw()`](/reference/p5/draw) to learn more.
416416

@@ -424,11 +424,11 @@ Some functions in p5.js need *arguments* that are *string* data types, while oth
424424

425425
For example:
426426

427-
- [`circle()`](/reference/p5/circle) uses 3 [numbers](https://p5js.org/examples/data-numbers.html): a [number](https://p5js.org/examples/data-numbers.html) that represents its x-coordinate, a [number](https://p5js.org/examples/data-numbers.html) that represents its y-coordinate, and a [number](https://p5js.org/examples/data-numbers.html) that represents its size in pixels. 
428-
- [`text()`](/reference/p5/text)` `uses a [string](/reference/p5/string) that represents the text displayed, and 2 [numbers](/reference/p5/number): a [number](/reference/p5/number) that represents its x-coordinate and a [number](/reference/p5/number) that represents its y-coordinate. 
429-
- [`fill()`](/reference/p5/fill),` `[`stroke()`](/reference/p5/stroke),` `and` `[`background()`](/reference/p5/background) use both [numbers](/reference/p5/number) and [strings](/reference/p5/string):
430-
- 1 [number](https://p5js.org/examples/data-numbers.html) for gray-scale color
431-
- 3 [numbers](https://p5js.org/examples/data-numbers.html) separated by commas for [RGB colors](https://p5js.org/learn/color.html)
427+
- [`circle()`](/reference/p5/circle) uses 3 [numbers](/reference/p5/number): a number that represents its x-coordinate, a number that represents its y-coordinate, and a number that represents its size in pixels. 
428+
- [`text()`](/reference/p5/text) uses a [string](/reference/p5/string) that represents the text displayed, and 2 [numbers](/reference/p5/number): a number that represents its x-coordinate and a number that represents its y-coordinate. 
429+
- [`fill()`](/reference/p5/fill), [`stroke()`](/reference/p5/stroke), and [`background()`](/reference/p5/background) use both [numbers](/reference/p5/number) and [strings](/reference/p5/string):
430+
- 1 number for gray-scale color
431+
- 3 numbers separated by commas for [RGB colors](https://www.w3schools.com/html/html_colors_rgb.asp)
432432
- a [string](/reference/p5/string) with an [HTML color name](https://www.w3schools.com/tags/ref_colornames.asp) or [HEX color values](https://www.w3schools.com/html/html_colors_hex.asp)
433433

434434

@@ -474,7 +474,7 @@ See some of these examples of how you can use [`mouseX`](/reference/p5/mouseX) a
474474
- [mouseX and mouseY changes color](https://editor.p5js.org/Msqcoding/sketches/VbLtYOfLc)
475475
- [mouseX and mouseY changes size](https://editor.p5js.org/Msqcoding/sketches/gJ27u_HEZ)
476476

477-
Visit the p5.js reference pages for [`mouseX`](/reference/p5/mouseX) and [`mouseY`](/reference/p5/mouseY) to learn more! Be sure to review the p5.js coordinate system by visiting the p5.js reference page for the [canvas coordinate system and shapes.](https://p5js.org/learn/coordinate-system-and-shapes.html) Explore other system [variables](https://p5js.org/examples/data-variables.html) included in the [p5.js reference](https://p5js.org/reference/):
477+
Visit the p5.js reference pages for [`mouseX`](/reference/p5/mouseX) and [`mouseY`](/reference/p5/mouseY) to learn more! Be sure to review the p5.js coordinate system by visiting the p5.js reference page for the canvas coordinate system and shapes. Explore other system variables included in the [p5.js reference](https://p5js.org/reference/):
478478

479479
- [`width`](/reference/p5/width)`:` The width of the canvas
480480
- [`height`](/reference/p5/height)`:` The height of the canvas
@@ -491,7 +491,7 @@ For more information, watch [this video](https://www.youtube.com/watch?v=LuGsp5K
491491

492492
## Next steps
493493

494-
- Next Tutorial: [Variables and Change Tutorial](variables-and-change)
494+
- Next Tutorial: [Variables and Change Tutorial](../variables-and-change)
495495
- Begin your next sketch: 
496496
- You can duplicate [this template](https://editor.p5js.org/Msqcoding/sketches/nHyx0xDG6) to help you place shapes and text on the canvas!
497497
- Click on the [template link](https://editor.p5js.org/Msqcoding/sketches/nHyx0xDG6), click *File*, then *Duplicate*.
@@ -500,7 +500,7 @@ For more information, watch [this video](https://www.youtube.com/watch?v=LuGsp5K
500500

501501
## Previous step
502502

503-
- [How-to: Setting Up Your Environment](setting-up-your-environment)
503+
- [How-to: Setting Up Your Environment](../setting-up-your-environment)
504504

505505

506506
## Resources

0 commit comments

Comments
 (0)