Skip to content

Instantly share code, notes, and snippets.

Created August 31, 2017 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/95c79819604a9c9dd71787a2f35d03d2 to your computer and use it in GitHub Desktop.
Save anonymous/95c79819604a9c9dd71787a2f35d03d2 to your computer and use it in GitHub Desktop.
void setup() {
background(500);
size(400, 400);
noLoop();
fill(500);
}
// creates Mulitple cubes with lines directing into the centre
void draw(){
for(int i= 0; i< 480; i=i + 40){
for(int j= 0; j< 480; j=j + 40){
// rect (i, 100, 30, 30);
drawTrapezium(i, j);
}
}
}
void drawTrapezium(int across, int down){
rect(across, down, 35, 35);
line( across, down, 200, 200);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment