per vertex polygon fill?
in
Programming Questions
•
2 years ago
Hi, should this interpolate fill colour on any platform, or does it need OpenGL or somesuch? I'm just getting a flat fill.
- g.beginShape();
- for(int i=0; i<count; i++){
- g.fill(randgen.nextInt()%255,randgen.nextInt()%255,randgen.nextInt()%255, 64);
- g.vertex(coords[i][0], coords[i][1]);
- }
- g.endShape(PApplet.CLOSE);
Cheers
1