You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
noFill()// *** remove/replace POINTS and works as expectedbeginShape(POINTS)// LINES or TRIANGLES or empty works finefor(leti=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.
beginShape(POINTS):
beginShape(LINES):
beginShape():
The text was updated successfully, but these errors were encountered:
Figured out a hacky solution of drawing with beginShape(LINES) and adding an extra vertex that's just a slight offset... but shouldn't be necessary and there must be an issue with POINTS mode...
Most appropriate sub-area of p5.js?
p5.js version
1.11.7
Web browser and version
Chrome
Operating system
MacOS
Steps to reproduce this
Steps:
beginShape(POINTS)
...endShape()
stroke()
before eachvertex()
coordinatePOINTS
doesn't apply customstroke()
, howeverLINES
,TESS
,TRIANGLES
doesSnippet:
Here's an example.
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 specificstroke()
given.beginShape(POINTS)
:beginShape(LINES)
:beginShape()
:The text was updated successfully, but these errors were encountered: