File:Pattern B.JPG

File on Medien Wiki
Revision as of 17:08, 20 November 2014 by Dora (talk | contribs) (int r, g, b; void setup() { size(640, 480); } void draw() { background(255); for(int y=0; y<height; y+=30) for(int x=0; x<width; x+=30) { r=(int)random(150, 255); g=(int)random(0, 255); b=(int)random(40, 255); fill(r, g, b); )
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pattern_B.JPG(638 × 480 pixels, file size: 81 KB, MIME type: image/jpeg)

Summary

int r, g, b;

void setup() {

 size(640, 480);

}

void draw() {

 background(255);
 for(int y=0; y<height; y+=30)
 for(int x=0; x<width; x+=30)
 {
   
 r=(int)random(150, 255);
 g=(int)random(0, 255);
 b=(int)random(40, 255);

 fill(r, g, b);
 triangle(x+30,y+10,x+10,y+20,x+40,y+20);
 

} }

Copyright status:

Source:

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:08, 20 November 2014Thumbnail for version as of 17:08, 20 November 2014638 × 480 (81 KB)Dora (talk | contribs)int r, g, b; void setup() { size(640, 480); } void draw() { background(255); for(int y=0; y<height; y+=30) for(int x=0; x<width; x+=30) { r=(int)random(150, 255); g=(int)random(0, 255); b=(int)random(40, 255); fill(r, g, b);

There are no pages that use this file.

Metadata