Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int y = 30;
- void setup() {
- size(512,768);
- background(183, 51, 44);
- }
- void keyPressed() {
- background(183, 51, 44);
- y = 30;
- }
- void draw() {
- background(183, 51, 44);
- y += 4;
- triangle(230, y, 282, y, width/2, y+70);
- triangle(200, y-20, 230, y-20, width/2, y+70);
- triangle(312, y-20, 282, y-20, width/2, y+70);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement