ARTDM 170, Week13: Processing

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    ARTDM 170, Week13: Processing - Presentation Transcript

    1. ARTDM 170, Week 13: Introduction to Processing
      • Gilbert Guerrero [email_address]
      • gilbertguerrero.com/blog/artdm-170/
    2. Processing
    3. Affect Browser , by Christian Nold
    4. Strange Weather , by Studio for Urban Projects
    5. Eyebeam Art + Technology Center , New York
    6. On the Origin of Species: The Preservation of Favoured Traces , Ben Fry
    7. Download Processing
        • http://processing.org
    8. Open Processing
    9. Processing examples
      • Run a few of the example sketches in Processing. 
        • Go to File > Examples > (then choose an example)
      • Check out the Exhibition page
    10. Processing basics
      • To see your sketch in action click Run
      • To stop it you can close the viewer or click Stop
      • To create a new sketch, click New
    11. Processing basics
      • Sketches run as Java Applets
      • Sketches can be exported to several formats:
        • Java applet with index.html page for web borwsers
        • Windows, Mac, and Linux applications
    12. Basic parts of a sketch
      • /* Notes */
      • // Setup the variables values float moveX = 50;
      • // Initialize the sketch void setup() { }
      • // Loops every frame void draw() { }
    13. Draw a line
      • void setup() { size(400, 400); stroke(255); background(192, 64, 0); } void draw() { line(150, 25, 270, 350); }
    14. Follow the mouse
      • void setup() { size(400, 400); stroke(255); background(192, 64, 0); } void draw() { line(150, 25, mouseX, mouseY); }
    15. Clearing the screen
      • void setup() { size(400, 400); stroke(255); }
      • void draw() { background(192, 64, 0); line(150, 25, mouseX, mouseY); }
    16. Bouncing Ball Sketch
      • void draw() { background(0); if(ballX > width - ballWidth/2 || ballX < ballWidth/2){ moveX = -moveX; //change direction } if(ballY > height - ballWidth/2 || ballY < ballWidth/2){ moveY = -moveY; //change direction }
      • // Move the ball ballX = ballX + moveX; ballY = ballY + moveY;
      • fill(255,100); noStroke(); ellipse(ballX, ballY, ballWidth, ballWidth); }
    17. Random color
      • Comment out the background refresh
      • // background(0);
      • Change the fill color to a random rgb value
      • fill(random(0,255), random(0,255), random(0,255), random(0,255));
    18. Final Projects December 2 9 16 25 18 11 November Last day of class Present final projects (two days) Design background and game elements. Embed in game symbol Script user interaction and movement of game elements Add scoring and game over trigger
    19. Homework, due Nov 18
      • Work on your final projects
        • Design background and game elements
        • Embed them in a game symbol
      • Read Getting Started on the Processing website

    + Gilbert GuerreroGilbert Guerrero, 1 month ago

    custom

    101 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 101
      • 95 on SlideShare
      • 6 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds
    • 6 views on http://www.gilbertguerrero.com

    more

    All embeds
    • 6 views on http://www.gilbertguerrero.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories