Skip to content

p5.Matrix made public #7754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 17 tasks
ksen0 opened this issue Apr 18, 2025 · 2 comments
Open
2 of 17 tasks

p5.Matrix made public #7754

ksen0 opened this issue Apr 18, 2025 · 2 comments

Comments

@ksen0
Copy link
Member

ksen0 commented Apr 18, 2025

Increasing access

The access statement covers technical maintenance and improvements in the following way:

We believe consistency of the tool makes it more accessible for beginners. Examples of feature requests that improve accessibility include: Performance increases for people using less powerful hardware; Consistency in the API

Making p5.Matrix available for both general and WEBGL use can support beginners who are using p5.js to encounter and learn mathematical concepts, which are important to many creative coding practices.

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

p5.Matrix is currently a private class that is used extensively for WEBGL and provides some general-purpose math functions. The goal is to make it public in a way that supports beginners to both graphics usage and mathematics more generally.

@ksen0 ksen0 moved this to In Progress in p5.js 2.1 🌱🌳 Apr 18, 2025
@ksen0 ksen0 moved this from In Progress to Open for Discussion in p5.js 2.1 🌱🌳 Apr 18, 2025
@ksen0
Copy link
Member Author

ksen0 commented Apr 18, 2025

Input is welcome on criteria to make p5.Matrix more supportive of beginners. You can find the current implementation in the dev-2.0 branch.

@ksen0 ksen0 added this to the 2.1 milestone Apr 18, 2025
@Mamatha1718
Copy link

Hi @ksen0 👋,

I would like to tackle this issue, From what I understand, the main goal is to make p5.Matrix publicly available and beginner-friendly — both for general use and WebGL — so that it helps folks learn matrix math more easily through p5.js.

I’m thinking of working on refactoring it to a more general location (like src/math/), making the API simpler and consistent, and then adding beginner-focused documentation and examples. Before diving in, I wanted to check with you:

=> Which files should I focus on for making the Matrix class public and usable?
=> Where should I update/add documentation and examples?
=> Is there anything specific you’d like to see in terms of the beginner experience?

Thanks in Advance 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Open for Discussion
Development

No branches or pull requests

2 participants