Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Q2: How can you flip this pyramid (widest part will be on top) and make all the money at the bottom?
- // Q3: Your money pyramid needs to be green! How do you do it?
- // Q4: Someone is on to your money making scheme - you need to evenly distribute money! How do you extend every rectangle left and right?
- int cnt = 10;
- void setup() {
- size(500, 500);
- rectMode(CENTER);
- noStroke();
- background(0);
- }
- void draw() {
- fill(cnt/2);
- rect(250, cnt, cnt, 10); // x y width height
- cnt += 10;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement