Your SlideShare is downloading. ×
Kwp2 091203
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Kwp2 091203

655

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
655
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Transcript

    • 1. setup() draw()
    • 2. // 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); }
    • 3. 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 }
    • 4. // (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 }
    • 5. // ( ) 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++; }

    ×