83
edits
| Jonasjuelch (talk | contribs)  | |||
| Line 1: | Line 1: | ||
| ==Group A== | ==Group A== | ||
| float rotationVal = -0.02; | |||
| void setup(){ | |||
| size(1000, 600); | |||
| } | |||
| void draw(){ | |||
| background(40,50,60); | |||
| pattern(); | |||
| } | |||
| void pattern(){ | |||
|   pushMatrix(); | |||
|   for(int i = 0; i < 10 ; i++){ | |||
|     stroke(22,188,229); | |||
|     pattern1(); | |||
|     stroke(22,100,229); | |||
|     pattern2(); | |||
|     translate(0,100); | |||
|   } | |||
|   popMatrix(); | |||
|   pushMatrix(); | |||
|    for(int i = 0; i < 10 ; i++){ | |||
|     stroke(100,255,61); | |||
|     pattern3(); | |||
|     stroke(100,160,61); | |||
|     pattern4(); | |||
|     translate(100,0); | |||
|   } | |||
| popMatrix(); | |||
| } | |||
| void pattern1(){ | |||
|   float mid = width * 0.5; | |||
|   for(int i = 0; i < 10 ; i++){ | |||
|     line (0,10*i, mid, 0); | |||
|     line (0,10*i, mid, 100); | |||
|     pushMatrix(); | |||
|     rotate(rotationVal); | |||
|     popMatrix(); | |||
|   } | |||
| } | |||
| void pattern2(){ | |||
|   float mid = width * 0.5; | |||
|    for(int i = 0; i < 10 ; i++){ | |||
|     line (mid,0, 1000, 10*i); | |||
|     line (mid,100, 1000 , 10*i); | |||
|     pushMatrix(); | |||
|     rotate(rotationVal); | |||
|     popMatrix(); | |||
|   } | |||
| } | |||
| void pattern3(){ | |||
|   float midy = height * 0.5; | |||
|   for(int i = 0; i < 10 ; i++){ | |||
|     line (10*i,0, 0, midy); | |||
|     line (10*i,0 , 100, midy); | |||
|     pushMatrix(); | |||
|     rotate(rotationVal); | |||
|     popMatrix(); | |||
|   }     | |||
| } | |||
| void pattern4(){ | |||
|   float midy = height * 0.5; | |||
|   for(int i = 0; i < 10 ; i++){ | |||
|     line (0, midy, 10*i, 600); | |||
|     line (100, midy, 10*i, 600); | |||
|     pushMatrix(); | |||
|     rotate(rotationVal); | |||
|     popMatrix(); | |||
|   } | |||
| } | |||
| [[File:Pixel_pattern_jonas.jpg]] | |||
| ==Group B== | ==Group B== | ||
edits