-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
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)
p5.js version
1.11.7
Web browser and version
Chrome
Operating system
MacOS
Steps to reproduce this
Steps:
- Create a complex shape with
beginShape(POINTS)...endShape() - Set custom
stroke()before eachvertex()coordinate POINTSdoesn't apply customstroke(), howeverLINES,TESS,TRIANGLESdoes
Snippet:
noFill()
// *** remove/replace POINTS and works as expected
beginShape(POINTS) // LINES or TRIANGLES or empty works fine
for(let i=0; i < 50; i++){
stroke(random(255), random(255), random(255))
vertex(random(-width/2, width/2), random(-width/2, width/2), random(-width/2, width/2))
}
endShape()Maybe it's a newer feature that it does the color lerping between the stroke/vertex changes?? Looks great! Would just be nice if POINTS mode also reflected the specific stroke() given.
GregStanton


