Skip to content

Implement 2-d or n-d Arrays with a simple to use API (as per Vector) #7153

@rzeta0

Description

@rzeta0

Increasing access

I have over 5 years experience teaching young coders (age 7-17) and adults who have never coded before (eg artists) to code with p5js.

I learned about some of the barriers and developed simple.js to make better default choices and also to provide easier to use functions eg circle() and randomNumber().

One of the remaining big barriers is arrays. Javascript doesn't make it easy.

Like Vector, I popose an Array is implemented which makes it easy and uniform to use them.

More details here; https://discourse.processing.org/t/processing-should-define-array-just-like-it-has-vector/44840/13

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

see discussion https://discourse.processing.org/t/processing-should-define-array-just-like-it-has-vector/44840/13

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions