Line 165: | Line 165: | ||
} | } | ||
==Rubab Paracha== | |||
void setup () { | |||
size (800,800); | |||
} | |||
void draw (){ | |||
element (); | |||
} | |||
void element () { | |||
frameRate(3); | |||
background (0); | |||
stroke(0); | |||
pushMatrix(); | |||
translate(width * 0.5, width * 0.5 ); | |||
for(int i= 3; i < width; i++){ | |||
rotate(mouseX * 0.0005); | |||
rect(i,i,30,30); | |||
fill(random(255),random(255),random(255), 150); | |||
} | |||
popMatrix(); | |||
} | |||
[[File:rubabpattern1.jpg|350px|thumb|]] | |||
[[File:rubabpattern2.jpg|350px|thumb|]] | |||
[[File:rubabpattern3.jpg|350px|thumb|]] | |||
==Group E== | ==Group E== | ||
[[Category:== ASSIGNMENT 2 ==]] | [[Category:== ASSIGNMENT 2 ==]] |