Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup () {
- size( 600,600); // w,h My dogs name is Crusty
- background(124,14,155); // 0 is black vales 0 and 255 Col is RGB
- }
- void draw () {
- rect ( 100,200,200,200); // xpos, ypos, w,h,
- println(mouseX, mouseY);
- }
- void keyPressed() {
- if ( key == 's') {
- saveFrame("mypic-####.jpg");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement