Successfully reported this slideshow.

More Related Content

More from Atsushi Tadokoro

Related Audiobooks

Free with a 14 day trial from Scribd

See all

Proga 0511

  1. 1. // // 2 int diameter, x, y; ellipse(x,y,diameter,diameter); x = x+60; // // // 3 colorMode(HSB,360,100,100,100); ellipse(x,y,diameter,diameter); size(300,300); x = x+60; // background(0); // 4 fill(210,100,100,50); noStroke(); ellipse(x,y,diameter,diameter); // diameter = 180; x = 60; y = 150; // 1 ellipse(x,y,diameter,diameter); x = x+60; //
  2. 2. // ellipse(top,left,diameter,diameter); diameter = diameter - 40; int diameter,top,left; ellipse(top,left,diameter,diameter); diameter = diameter - 40; // ellipse(top,left,diameter,diameter); size(300,300); diameter = diameter - 40; colorMode(HSB,360,100,100,100); background(0,0,0,100); noStroke(); fill(210,100,100,20); diameter = 300; top = 150; left = 150; // ellipse(top,left,diameter,diameter); diameter = diameter - 40; ellipse(top,left,diameter,diameter); diameter = diameter - 40; ellipse(top,left,diameter,diameter); diameter = diameter - 40; ellipse(top,left,diameter,diameter); diameter = diameter - 40;
  3. 3. /* 100 + */ int i; for (i=0; i<100; i=i+1){ print(quot;+quot;); }
  4. 4. /* 0 99 for i */ int i; for (i=0; i<100; i=i+1){ print(i + quot;, quot;); }
  5. 5. // int diameter,top,left,i; // size(300,300); colorMode(HSB,360,100,100,100); background(0,0,0,100); noStroke(); fill(210,100,100,10); // diameter = 300; top = 150; left = 150; // for(i=0; i<16; i++){ ellipse(top,left,diameter,diameter); diameter = diameter - 20; }
  6. 6. // int i; // size(300,300); colorMode(HSB, 360, 100, 100); noStroke(); // for(i=0; i<30; i++){ fill(i*10,80,100); rect(i*10,0,10,300); }
  7. 7. // // int i; // size(300,300); colorMode(HSB, 360, 100, 100); noStroke(); // for(i=0; i<300; i++){ fill(random(360),random(100),random(100)); rect(i*1,0,1,300); }
  8. 8. // // int i; // size(300,300); colorMode(HSB, 360, 100, 100); noStroke(); // for(i=0; i<300; i++){ fill(random(200,220),random(100),random(100)); rect(i*1,0,1,300); }
  9. 9. // // int i; // size(300,300); colorMode(HSB, 360, 100, 100); noStroke(); // for(i=0; i<300; i++){ fill(random(360),60,90); rect(i*1,0,1,300); }
  10. 10. // // int i; // size(300,300); background(0); colorMode(HSB, 360, 100, 100,100); noStroke(); // for(i=0; i<100; i++){ float diameter; fill(random(200,240),random(50,100),random(50,100), 50); diameter = random(20,80); ellipse(random(300),random(300),diameter,diameter); }
  11. 11. // // int i; // size(300,300); background(0); colorMode(HSB, 360, 100, 100,100); rectMode(CENTER); noStroke(); // for(i=0; i<100; i++){ fill(random(0,40),random(50,100),random(50,100), 50); rect(random(300),random(300),random(5,100),random(5,100)); }
  12. 12. setup() draw()
  13. 13. // void setup(){ size(480,480); // frameRate(12); background(0); } // void draw(){ float diameter = random(100); noStroke(); fill(random(255),random(255),random(255)); ellipse(random(width),random(height),diameter,diameter); }
  14. 14. int x, y; // (x y ) void setup(){ // size(640,480); frameRate(30); colorMode(HSB,360,100,100,100); noStroke(); fill(200,80,80); x = 0; y = 0; } void draw(){ // background(0); // ellipse(x,y,50,50); // x++; //x y++; //y }
  15. 15. // (x y ) int x=0, y=0; // void setup(){ size(640,480); frameRate(30); colorMode(HSB,360,100,100,100); noStroke(); fill(200,80,80); } // void draw(){ background(0); // ellipse(x%width,y%height,50,50); // x = x+5; //x y = y+3; //y }
  16. 16. // ( ) int h = 0; // void setup(){ size(640,480); frameRate(30); colorMode(HSB,360,100,100,100); noStroke(); fill(200,80,80); } // // void draw(){ background(0); // fill(h%360,80,80); ellipse(width/2,height/2,200,200); // h++; }

Editor's Notes















































  • ×