Skip to content

Update “Custom Shapes and Smooth Curves” tutorial for p5.js 2.x #839

Open
@perminder-17

Description

@perminder-17

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Linux

Web browser and version

Firefox

Actual Behavior

The “Custom Shapes and Smooth Curves” tutorial currently targets p5.js 1.x, including legacy calls to bezierCurve() and other outdated APIs. Since p5.js 2.0 has revised the curve and shape methods (and removed deprecated functions), we need to refresh this tutorial so it only demonstrates supported 2.x functionality.

Code samples use the old bezierCurve() signature and other removed shape-drawing functions. Tutorial text still references 1.x API names and parameters. Linked Web Editor sketches could also remain on p5.js 1.x and fail under 2.x.

Expected Behavior

  • All curves and custom shapes use the updated p5.js 2.x methods with correct parameter order.
  • Tutorial narrative only names functions that exist in p5.js 2.x.
  • All external sketches are forked or updated to p5.js 2.x so examples run without errors.

Steps to reproduce

Here's the tutorial written. You could build the website in p5.js dev-2.0 branch

Here's how the website could be build

Would you like to work on the issue?

No, this could be assigned to volunteers.

Metadata

Metadata

Labels

BugSomething isn't workingDocumentationImprovements or additions to documentationGood First IssueGood for newcomersHelp WantedExtra attention is needed

Type

No type

Projects

Status

In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions