File:Flower pattern.JPG

File on Medien Wiki
Revision as of 17:06, 20 November 2014 by Dora (talk | contribs) (void setup() { size(640, 640); strokeWeight(2); stroke(219, 84, 35); fill(0, 48, 77, 95); } void draw() { background(255); translate(width/2, height/2); for (int i = 0; i < 360; i+=36) { float x = sin(radians(i)) * 320; fl)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Original file(635 × 634 pixels, file size: 83 KB, MIME type: image/jpeg)

Summary

void setup() {

 size(640, 640);
 strokeWeight(2);
 stroke(219, 84, 35);
 fill(0, 48, 77, 95);

}

void draw() {

 background(255);
 
   translate(width/2, height/2);
 for (int i = 0; i < 360; i+=36) {
   
   float x = sin(radians(i)) * 320;
   float y = cos(radians(i)) * 320;
   for (int q = 0; q < 360; q+=36) {
     float x2 = sin(radians(q)) * 320;
     float y2 = cos(radians(q)) * 320;
     
    curve(x/2, y/2, x, y, x2/2, y2/2, x2*2, y2*2);
   }
 }

}

Copyright status:

Source:

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:06, 20 November 2014Thumbnail for version as of 17:06, 20 November 2014635 × 634 (83 KB)Dora (talk | contribs)void setup() { size(640, 640); strokeWeight(2); stroke(219, 84, 35); fill(0, 48, 77, 95); } void draw() { background(255); translate(width/2, height/2); for (int i = 0; i < 360; i+=36) { float x = sin(radians(i)) * 320; fl

There are no pages that use this file.

Metadata