Skip to content

Adding support for millis() in strands #8474

@perminder-17

Description

@perminder-17

Increasing access

In p5.js, millis() returns the number of milliseconds since the sketch started running. This feature request proposes adding millis() support in p5.strands in the same way we currently handle functions like noise().

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 request details

When p5.strands is active, p5.js functions such as noise() are routed to a strands-specific implementation. Similarly, while strands is active, calling millis() should return a strand node instead of an immediate numeric value, so it can be composed inside the strands graph.

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions