Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. void setup() {
  2. size(600, 600);
  3. }
  4. void draw() {
  5. background(0);
  6. //rectangles on the left side
  7. for (int i = 0; i < 7; i++){
  8. rect(50, 50 + i * 75, 50, 50);
  9. }
  10. //rectangles on the right side
  11. for (int i = 0; i < 7; i++){
  12. rect(500, 50 + i * 75, 50, 50);
  13. }
  14. //circles in the middle
  15. for(int i = 0; i < 5; i++){
  16. ellipse(200 + 40*i,200,40,40);
  17. }
  18. //triangles in the middle
  19. for(int i = 0; i<4; i++){
  20. triangle(175 + 85*i,50, 200 + 85*i, 100, 150 + 85*i, 100);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement