1 / 19

Processing

Processing. Kosmo Broom info@bykosmo.com 06 52 015 699. today. Who am I What have I done Semester overview First assignment. Who am I. Kosmo not 'Sir', 'Meneer' or 'U' Student IAD (Hardware) Programer. What have I done. Klaver Kollectief Classes in Arduino (in Mexico) PhotoBooth

tam
Download Presentation

Processing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Processing Kosmo Broom info@bykosmo.com 06 52 015 699

  2. today • Who am I • What have I done • Semester overview • First assignment

  3. Who am I • Kosmo • not 'Sir', 'Meneer' or 'U' • Student IAD • (Hardware) Programer

  4. What have I done • Klaver Kollectief • Classes in Arduino (in Mexico) • PhotoBooth • AutoMapping • Arduino • Build a guitar

  5. Semester overview • 10 homework assignments: • Every week there will be an assignment to be made for the following class • At the beginning of class they will be checked • You need to pass at least 8 assignments • 2 major assignments • 1 assignment before the brake and one after • If you are using Processing during your project let me know

  6. Class is for you not me • Ask questions • Be pro active • Take away what you need

  7. Online backup • Processing has a very good base of information • www.processing.org

  8. PROGRAMMING • IF • ELSE • WHILE • FOR

  9. if (myWeight < 100) { • print(“ You are still within bounds ”); • }

  10. if (myWeight < 100) { • print(“ You are still within bounds ”); • } • else{ • print(“ You might want to think about going to the gym! ”); • }

  11. if (myWeight < 100 && myWeight > 40) { • print(“ You are still within bounds ”); • } • else if(myWeight < 40) { • print(“ It would be healthy to eat more ”); • } • else{ • print(“ You might want to think about going to the gym! ”); • }

  12. while (myValue < 10) { • myValue++; • }

  13. for (int i=0; i < 10; i++) { • myValue = i; • print(myValue); • }

  14. First assignment • void setup(){ • } • void draw() { • }

  15. void setup(){ • // set size • // set background • // set stroke color • } • void draw() { • // draw a line • }

  16. void setup(){ • size(250,250); • background(0); • Stroke(255); • } • void draw() { • line(0,0,50,50); // make the line end up at the mouse point • }

  17. void setup(){ • size(250,250); • background(0); • Stroke(255); • } • void draw() { • line(0,0,mouseX,mouseY); • }

  18. Questions • What do you need to change in the code so the line will not start in the left top hand corner? • How can you get a line from every corner of the screen to meet up with the mouse pointer?

  19. Thanks! By Kosmo Broom

More Related