Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/tutorials/en/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Using the [p5.js Web Editor](https://editor.p5js.org/):

#### Default Code

All p5.js projects include the p5.js library and three files: [`index.html`](https://www.classes.cs.uchicago.edu/archive/2021/spring/11111-1/happycoding/p5js/web-dev.html#:~:text=The%20index.,the%20page%20using%20HTML%20tags!), [style.css](https://happycoding.io/tutorials/p5js/web-dev), and `sketch.js`. Make changes on the canvas by adding code to the sketch.js file. New p5.js projects begin with the following code in the sketch.js file:
All p5.js projects include the p5.js library and three files: [`index.html`](https://happycoding.io/tutorials/p5js/web-dev), [style.css](https://happycoding.io/tutorials/p5js/web-dev), and `sketch.js`. Make changes on the canvas by adding code to the sketch.js file. New p5.js projects begin with the following code in the sketch.js file:

```js
function setup() {
Expand Down
2 changes: 1 addition & 1 deletion src/content/tutorials/zh-Hans/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import Callout from "../../../components/Callout/index.astro";

### 默认代码

所有 p5.js 项目都包含 p5.js 库,以及三个文件:[`index.html`](https://www.classes.cs.uchicago.edu/archive/2021/spring/11111-1/happycoding/p5js/web-dev.html#:~:text=The%20index.,the%20page%20using%20HTML%20tags!)、[style.css](https://happycoding.io/tutorials/p5js/web-dev) 和 `sketch.js`。通过在 sketch.js 文件中添加代码来对画布进行更改。新的 p5.js 项目在 sketch.js 文件中以以下代码开始:
所有 p5.js 项目都包含 p5.js 库,以及三个文件:[`index.html`](https://happycoding.io/tutorials/p5js/web-dev)、[style.css](https://happycoding.io/tutorials/p5js/web-dev) 和 `sketch.js`。通过在 sketch.js 文件中添加代码来对画布进行更改。新的 p5.js 项目在 sketch.js 文件中以以下代码开始:

```js
function setup() {
Expand Down
Loading