Ciao 访客, welcome back to old school! :p
int totalAmount;void setup() { size(500, 500); noStroke(); totalAmount = 100000;}void draw() { background(255); for (int i=0; i<totalAmount; i++){ drawGrain(random(width), random(height), random(2), random(254));}}void drawGrain(float x, float y, float mySize, float myColor) { fill(myColor); ellipse(x, y, mySize, mySize);}
int totalAmount;void setup() { size(500, 500,P2D); noStroke(); totalAmount = 100000;}void draw() { background(255); for (int i=0; i<totalAmount; i++){ drawGrain(random(width), random(height),random(255));}}void drawGrain(float x, float y,float myColor) { stroke(myColor); point(x, y);}
void setup() { size(400, 400,P2D);}void draw() { background(255); for (int x=0; x<width; x++){ for(int y=0; y<height; y++){ stroke(HSB,random(360), 100, 100); //[color=red]strokeWeight(random(0,2));[/color] point(x,y); } }}
import processing.opengl.*;float i,k;void setup(){//size(500,500,P2D);//size(500,500,P3D);size(500,500,OPENGL);background(0);lights();i = 0;k = 0;}void draw(){ noStroke(); fill(0); rect(0,0,500,500); fill(255); for (i=0;i<500;i+=1.4) { for (k=0;k<500;k+=1.5){ //ellipse(i+random(0,2.3),k+random(0,3.1),random(0,1.5),random(0,1.5)); //ellipse(i+random(0,250),k+random(0,250),1,1); stroke(255); //stroke(HSB,random(360),100,100); point(i+random(0,3),k+random(0,3)); //point(i+random(0,500),k+random(0,500)); } }}
int totalAmount;void setup() { size(500, 500,P2D); totalAmount = 500;}void draw() { background(255); for (int i=0;i<totalAmount;i++) { for (int j=0;j<totalAmount;j++) { stroke(random(255)); point(i, j); } }}