B. RAMAMURTHY Lab1 Discussion. General Instructions Attend the recitation (s), office hours (s) to get help Read the Lab description Understand what is.

Slides:



Advertisements
Similar presentations
Physical Computing INST. Kerem Odabaşı - YTU - Interactive Telecomunication Design Dept.
Advertisements

Creative Computing. \\ aims By the end of the session you will be able to: 1.Move objects around 2.Write simple interactive programs 3.Use the mouse position.
Variables Conditionals Boolean Expressions Conditional Statements How a program produces different results based on varying circumstances if, else if,
Game with US Beginner Tutorial. Welcome!! Who I am What is Processing? Basic Coding Input Methods Images Classes Arrays.
A Quick Introduction to Processing
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
Lesson Four: More of the Same
Data: Programming Design and Modularization IS 101Y/CMSC 101 Computational Thinking and Design Thursday, September 26, 2013 Marie desJardins University.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
IAT 800 Lab 1: Loops, Animation, and Simple User Interaction.
Lecture 3 IAT 800. Sept 15, Fall 2006IAT 8002 Suggestions on learning to program  Spend a lot of time fiddling around with code –Programming is something.
PROCESSING Animation. Objectives Be able to create Processing animations Be able to create interactive Processing programs.
Review Blocks of code {.. A bunch of ‘statements’; } Structured programming Learning Processing: Slides by Don Smith 1.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
Locally Edited Animations We will need 3 files to help get us started at
Processing Lecture.2 Mouse and Keyboard
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
Introduction to Processing CS 4390/5390 Fall 2014 Shirley Moore, Instructor September 3,
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 11 Fall 2010.
Question This is the question you set out to answer with your experiment. Put this is a large font like the one on this page. Make sure the question is.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
Code reading skills LEVEL GAME.  Skeleton has error messages.  Notice the red lines on right slider. Click… you’ll go to an error.  pieces = levels.getPieces();
Introduction to Image processing using processing.
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02b: Tutorial for Programming in Processing Jarek Rossignac.
CIS 3.5 Lecture 2.2 More programming with "Processing"
Variables Art &Technology, 3rd Semester Aalborg University Programming David Meredith
If a is positive, b is negative, and c=0, which of the following expression is positive? a. a(b+c)b. c(a+b) c. b(b-a+c) d. c(a-b+ab) 2.6 warm-up 10.
Mouse Inputs in Processing. Interacting with the Mouse mouseX and mouseY: pg mouseXmouseY –The position of the mouse in the canvas pmouseX and.
Lesson Two: Everything You Need to Know
Test 2 Review. General Info. All tests are comprehensive. You are still responsible for the material covered prior to the first exam. You will be tested.
Computer Science I Recap: variables & functions. Images. Pseudo-random processing.
G RAPHICS & I NTERACTIVE P ROGRAMMING Lecture 2 More Programming with Processing.
Continuous. Flow of Control Programs can broadly be classified as being –Procedural Programs are executed once in the order specified by the code varied.
B. RAMAMURTHY Processing and Programming cse
Test Review. General Info. All tests will be comprehensive. You will be tested more on your understanding of code as opposed to your ability to write.
Welcome to Processing Who does not have access to digital camera?
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Processing  Install Processing  Learn how to edit, run, save, export,
Programming for Art: Arrays – 2D ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 16 Fall 2010.
Catie Welsh April 6,  Lab 8 due, Friday by 1pm 2.
IAT 265 Images in Processing PImage. Jun 27, 2014IAT 2652 Outline  Programming concepts –Classes –PImage –PFont.
Processing Variables. Variables Processing gives us several variables to play with These variables are always being updated and you can assume they have.
Review Random numbers mouseX, mouseY setup() & draw() frameRate(), loop(), noLoop() Mouse and Keyboard interaction Arcs, curves, bézier curves, custom.
Computer Science I Animations. Bouncing ball. The if statement. Classwork/homework: bouncing something. Compress and upload work to Moodle.
Introduction to Processing Dominique Thiebaut Dept. Computer Science Computer Science Dominique Thiebaut Thiebaut -- Computer Science.
Arrays. 2 Why do we care (about arrays)? What if you have a whole bunch of cars (or aliens or balls or ???) bouncing around the screen? How do we keep.
B. RAMAMURTHY Lab1 Discussion. General Instructions Attend the recitation (s), office hours (s) to get help Read the Lab description Understand what is.
Functions. 2 Modularity What is a function? A named block of code Sometimes called a ‘module’, ‘method’ or a ‘procedure’ Some examples that you know are:
Task 1 and Task 2. Variables in Java Programs Variables start with lower case letter Variables are descriptive of what they store Variables are one word.
Control structures Chapter 3.
Based on lecture notes from Dr. Deepak Kumar of Brynmawr
Midterm Exam Preperation
Based on lecture notes from Dr. Deepak Kumar of Brynmawr
Midterm Exam Preperation
For Net Art Lecture 2 J Parker
Mouse Inputs in Processing
Chapter 5, Conditionals Brief Notes
More programming with "Processing"
Pages:51-59 Section: Control1 : decisions
Michele Weigle - COMP 14 - Spr 04
Lecture 6: Conditionals AP Computer Science Principles
Programming for Art: Images
Lab1 Discussion B. Ramamurthy.
Trigonometry & Random March 2, 2010.
Pages:51-59 Section: Control1 : decisions
Continuous & Random September 21, 2009.
Midterm Exam Preperation
Instructions.
Presentation transcript:

B. RAMAMURTHY Lab1 Discussion

General Instructions Attend the recitation (s), office hours (s) to get help Read the Lab description Understand what is needed. Collect all the images you need before you start. Design/plan before you start programming Book tells you to write a pseudo code before program… pseudo code is the “plan”  Flowchart is another representation for the plan

Lets plan Decide the permanent features and write the setup function + test it Collect/draw/create the images of all the creatures you want on the African Savannah. Write the functions for drawing the creatures on the Savannah You need to place the creatures/animals  You need to how to generate and use random numbers  Use mouseX and mouseY and the functions appropriately You need to know “if..else” /selection statement

Placing Images PImage pic; void setup() { size(400,400); pic = loadImage("tulips.jpg"); } void draw() { image(pic, 0,0,130,130); }

Random function “random” is a function in Processing that helps to get random numbers random(high) ; random(low, high); randomSeed(0); void draw() { int color = int(random(255)); stroke(r); line(i, 0, i, 100); }

Picture Background PImage pic; void setup() { size(512,384); pic = loadImage("tulips.jpg"); } void draw() { background(pic); }

Selection/choice.. If.else statement if (expression) { statements } else { statements } Example: if (i < 35) { line(30, i, 80, i); } else { line(20, i, 90, i); }

Lets try these out Lets try picture, background; Review if..else and random: you will need these for this lab This problem depends on mouse location indicated by mouseX and MouseY. Imagine your canvas with 4 quadrants. Highlight (/color) the quadrant when the mouse moves into that quadrant.