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.
Game with US Beginner Tutorial. Welcome!! Who I am What is Processing? Basic Coding Input Methods Images Classes Arrays.
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
Data: Programming Design and Modularization IS 101Y/CMSC 101 Computational Thinking and Design Thursday, September 26, 2013 Marie desJardins University.
EEE 243B Applied Computer Programming 11 - Flowcharts §Appendix C Sylvain P. Leblanc.
Chapter 1 Welcome everyone to Visual Logic. We will use this book and the next couple of weeks to learn to solve problems, develop a visual representation.
July 13 th.  If/ Else if / Else  Variable Scope  Nested if/else's  Switch statements  Conditional Operator.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
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.
Chapter 6 Color Image Processing Chapter 6 Color Image Processing.
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.
While Loops Indefinite Iteration. Last lesson we looked at definite loops using the ‘For’ statement. The while loop keeps going while some condition is.
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 11 Fall 2010.
Simple Control Structures IF, IF-ELSE statements in C.
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();
B. RAMAMURTHY Lab1 Discussion. General Instructions Attend the recitation (s), office hours (s) to get help Read the Lab description Understand what is.
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
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
Structured Programming (4 Credits)
LCC 6310 Computation as an Expressive Medium Lecture 2.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
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
Int x = 3; if (x > 1) if (x > 2) { if (x > 3) System.out.println("one"); } else System.out.println("three"); else System.out.println("four"); Let’s think.
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?
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.
Processing Variables. Variables Processing gives us several variables to play with These variables are always being updated and you can assume they have.
Catie Welsh February 14,  Program 2 Due Tonight by 11:59pm  Program 3 Assigned 2.
Review Random numbers mouseX, mouseY setup() & draw() frameRate(), loop(), noLoop() Mouse and Keyboard interaction Arcs, curves, bézier curves, custom.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
Int fact (int n) { If (n == 0) return 1; else return n * fact (n – 1); } 5 void main () { Int Sum; : Sum = fact (5); : } Factorial Program Using Recursion.
COMP 110 Augustus Gloop, Augustus Gloop… Luv Kohli September 24, 2008 MWF 2-2:50 pm Sitterson 014.
Conditional Statements A conditional statement lets us choose which statement will be executed next Conditional statements give us the power to make basic.
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:
 Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do.
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.
Application of Pseudo Code
Control structures Chapter 3.
Midterm Exam Preperation
Midterm Exam Preperation
For Net Art Lecture 2 J Parker
Welcome to <INSERT school name>’s
Chapter 5, Conditionals Brief Notes
Pages:51-59 Section: Control1 : decisions
Control structures Chapter 3.
Self study.
Control structures Chapter 3.
Lecture 6: Conditionals AP Computer Science Principles
Color Image Processing
Control structures Chapter 3.
Welcome to Mountain View Elementary School!
Lab1 Discussion B. Ramamurthy.
Chapter 4, Variables Brief Notes
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

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); }

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 random command and if else selection statement