Ciao 访客, welcome back to old school! :p
float diam = 25;void setup() { size(500, 400); colorMode(HSB); smooth(); noStroke(); background(255); float startArc=0; for (int i=0;i<width/diam;i++) { for (int j=0;j<height/diam;j++) { fill(random(250),40, 255); ellipse(i*diam+diam/2, j*diam+diam/2,diam,diam); fill(random(250), 160, 255); startArc = radians(random(360)); arc(i*diam+diam/2, j*diam+diam/2, diam, diam, startArc, startArc+PI*random(0.5,2.5)); } } }
float xStart, yStart;float []circle=new float[200];int totalAmount;void setup() { size(500, 500); background(255); smooth(); frameRate(10); xStart = 50; yStart = 50; totalAmount = 14;}void draw() { noStroke(); colorMode(HSB); for (int i=0;i<totalAmount;i++) { for (int j=0;j<totalAmount;j++) { for (int k=0;k<circle.length;k++){ fill(random(360),random(255),255); ellipse(xStart+30*i,yStart+30*j,30,30); fill(random(255),random(255),255); arc(xStart+30*i,yStart+30*j,30,30,circle[k],circle[k]+random(0,TWO_PI-circle[k])); } } }}
float noiseS,noiseIncre;void setup(){ size(500,500); smooth(); background(0);noiseS=random(100);noiseIncre=0.5; }void draw(){ for (int i=0;i<width;i++) { for (int j=0;j<height;j++) { stroke(noise(noiseS)*255); point(i,j); noiseS +=noiseIncre; } }}
arc(xStart+30*i,yStart+30*j,30,30,circle[k],circle[k]+random(0,TWO_PI-circle[k]));
float diam ;float startArc; float stopArc;float noiseColor;float xPos, yPos;void setup() { size(500, 500); colorMode(HSB); frameRate(100); smooth(); noStroke(); background(255); diam=30; startArc=random(360); noiseColor=random(360);}void draw() { for (int i=0;i<width;i++) { for (int j=0;j<height;j++) { float xPos=i*diam+diam/2; float yPos=j*diam+diam/2; fill(noise(noiseColor*360), 155, 255); ellipse(xPos, yPos, diam, diam); stopArc=startArc+(PI*random(5)); fill(random(255), 130, 255); arc(xPos, yPos, diam, diam, startArc, stopArc); } } noiseColor+=10;}
float xStart, yStart;float spacing;int totalAmount;float r;float colorC;void setup() { size(500, 500,P2D); smooth(); colorMode(HSB); xStart = 50; yStart = 50; spacing = 30; totalAmount = 14; r+=80;}void draw() { background(255); noStroke(); for (int i=0;i<totalAmount;i++) { for (int j=0;j<totalAmount;j++) { float r = dist(mouseX,mouseY,xStart+j*spacing,yStart+i*spacing)/5; float colorC = dist(mouseX,mouseY,xStart+j*spacing,yStart+i*spacing); fill(colorC/2,250,200,colorC/3); ellipse(xStart+j*spacing, yStart+i*spacing,r,r); } }}
我估计这不是正确的方法,但找不到别的法子了 :-\code]float diam = 100;float diamSeed;float colorSeed;int vertexCount = 10;float degreeSpace = 180/vertexCount;float vertexX[]=new float[vertexCount];float vertexY[]=new float[vertexCount];void setup() { size(500, 500); colorMode(HSB); smooth(); stroke(0,30); background(255); diamSeed = random(500); colorSeed = random(1);}void draw(){ translate(width/2,height/2); fill(noise(colorSeed)*130+100,130,255); beginShape(); for(int i=0;i<vertexCount;i++){ float diamNoise = noise(diamSeed)*5; float xPosT = sin(radians(i*degreeSpace))*diamNoise; float yPosT = cos(radians(i*degreeSpace))*diamNoise; vertexX[i] = lerp(vertexX[i],xPosT*diam,0.2); vertexY[i] = lerp(vertexY[i],yPosT*diam,0.2); curveVertex(vertexX[i],vertexY[i]); diamSeed+=1; } curveVertex(0,vertexY[vertexCount-1]); for(int i=vertexCount-1;i>0;i--){ curveVertex(-vertexX[i],vertexY[i]); } curveVertex(0,vertexY[0]); curveVertex(vertexX[0],vertexY[0]); endShape(CLOSE); colorSeed+=0.4; diam-=1; if(diam<0){ noLoop(); }}void mousePressed(){ background(255); diam=100; loop();}
void setup() { size(500, 500); smooth(); noStroke(); background(255); frameRate(5);}void draw() { for (int i=0;i<15;i++) { for (int j=0;j<15;j++) { for (int k=0;k<12;k++) { fill(random(255), random(200), random(170)); ellipse(35+i*30, 35+j*30, 30, 30); fill(random(255), random(150), random(170)); arc(35+i*30, 35+j*30, 30, 30, 0, random(radians(30*k))); } } }}