processing / processing/p5.js

Document p5.strands instanceID() function

Open
#8,647 5 comments 0 reactions 1 assignee View on GitHub

@nitin-rajpoot is already working on this.

Since Mar 16, 2026.

Area:WebGL Documentation Enhancement
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Increasing access

This currently has no docs but is useful for drawing many copies of something, and will also be an important step in using compute shaders.

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
Feature enhancement details

See for example this sketch: https://openprocessing.org/sketch/2845379

This should also probably include a new example in the model docs, as you need to add a count to model(geom, n) to make everything work. Since this is an advanced usage of model, we should probably switch to inline examples in its documentation so that we can add instancing explanations after the more basic usage and before instancing examples.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.