Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int status = 0;
- int x = 0;
- void setup()
- {
- size(800, 800);
- textSize(32);
- }
- void draw()
- {
- if(keyPressed)
- {
- if(key=='a')
- {
- status = 1;
- }
- if(key=='b')
- {
- status =2;
- }
- }
- if(status == 1)
- {
- background(233, 223, 176);
- text("linkiu graziu svenciu....", x, 100);
- x+=5;
- if(x>width)
- {
- x=-120;
- }
- }
- if(status ==2)
- {
- background(0, 23, 236);
- for(int i = 50; i< height; i+=50)
- {
- if(i%100==0) fill(0, 0, 255);
- else fill(0, 255, 0);
- text("linkiu graziu svenciu....", x, i);
- }
- x+=5;
- if(x>width)
- {
- x = -120;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement