Thank you for your quick reply!
I send you a snippet to show what I mean:
Code:colorMode(HSB);
strokeCap(BEVEL);
size(170,170);
background(255);
smooth();
// tape
noStroke();
fill(0,255,255);
quad(0,50,60,50,80,30,0,30);
fill(25,255,255);
quad(60,50,80,30,130,50,110,70);
fill(50,255,255);
quad(130,50,110,70,180,140,200,120);
// border
stroke(0);
strokeWeight(6);
noFill();
beginShape();
vertex(0,50);
vertex(60,50);
vertex(110,70);
vertex(180,140);
endShape();
beginShape();
vertex(0,30);
vertex(80,30);
vertex(130,50);
vertex(200,120);
endShape();
Up to now I can draw rectangles to simulate the thick line or to use quads (the 3 zones respectively red, orange and yellow); later I draw the black border.
This is "expensive" and not so elegant.
I would prefere to find a way to draw a thick 30pt chain of lines (each segment with its own color) on a thicker (40pt) black "shadow": this superimpose leaves the two lateral borders. This version is definitely easier to calculate and result is more pleasant.
I tried this to change the color while drawing each segment but it doesn't work:
Code:noFill();
beginShape();
stroke(180,255,255);
vertex(0,50);
vertex(60,50);
stroke(0,255,255);
vertex(110,70);
stroke(90,255,255);
vertex(180,140);
endShape();
Any idea?
Thx Apok