Advertisement
xFazz

group quiz 2

Sep 17th, 2020 (edited)
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. // Q2: How can you flip this pyramid (widest part will be on top) and make all the money at the bottom?
  2. // Q3: Your money pyramid needs to be green! How do you do it?
  3. // Q4: Someone is on to your money making scheme - you need to evenly distribute money! How do you extend every rectangle left and right?
  4.  
  5. int cnt = 10;
  6.  
  7. void setup() {
  8. size(500, 500);
  9. rectMode(CENTER);
  10. noStroke();
  11. background(0);
  12.  
  13. }
  14.  
  15. void draw() {
  16. fill(cnt/2);
  17. rect(250, cnt, cnt, 10); // x y width height
  18. cnt += 10;
  19.  
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement