p5.js
p5.js copied to clipboard
textToPoints() to allow 2D Array of points within paths for separating letters
Nature of issue?
- [x] Existing feature enhancement
Most appropriate sub-area of p5.js?
- [x] Typography
Which platform were you using when you encountered this?
- [x] Desktop/Laptop
Feature enhancement details:
Preparing my first p5.js pull request, so making an issue first.
This will extend textToPoints()
to allow the return of a 2D Array, [paths][points]
, since as a single array of points, there will always be a line drawn between the letters if placed within a begin/endShape()
.
Figured the smoothest way to implement this, is adding it as an option when calling the function, and imagined that option to be separatePaths : true
.
Code is already done.. just have to read up on Docs for contributing and happy for feedback on PR.