p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

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

Open rzeta0 opened this issue 1 year ago • 0 comments

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?

  • [X] Accessibility
  • [ ] Color
  • [ ] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [X] 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

rzeta0 avatar Jul 30 '24 10:07 rzeta0