颜色和透明度都在叠加的效果:
1 void setup() { 2 size(640, 480); 3 background(200); 4 colorMode(HSB, 360, 100, 100, 250); 5 } 6 void draw() { 7 fill(200, 0, 60); 8 circle(320, 240, 300); 9 for (int i=0; i<6; i++) { 10 push(); 11 fill(i*60, 100, 100, i*40); 12 translate(width/2, height/2); 13 rotate(radians(i*60)); 14 rect(0, 0, 120, 200); 15 pop(); 16 } 17 textSize(150); 18 fill(200, 0, 96, 220); 19 text("D-FORM", 5, 300); 20 }