Created
August 31, 2017 01:17
-
-
Save anonymous/95c79819604a9c9dd71787a2f35d03d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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