Lab1 Discussion B. Ramamurthy.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Image Processing … computing with and about data, … where "data" includes the values and relative locations of the colors that make up an image.
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.
Translate, Rotate, Matrix Pages Function Function Definition Calling a function Parameters Return type and return statement.
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.
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
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 Image processing using processing.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
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.
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
Computer Science I Recap: variables & functions. Images. Pseudo-random 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
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.
Catie Welsh April 6,  Lab 8 due, Friday by 1pm 2.
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.
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.
B. RAMAMURTHY Lab1 Discussion. General Instructions Attend the recitation (s), office hours (s) to get help Read the Lab description Understand what is.
Loops. About the Midterm Exam.. Exam on March 12 Monday (tentatively) Review on March 5.
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.
IAT 265 PImage and PFont.
Emerging Platform#1: Processing 3
Doubly Linked List Review - We are writing this code
Application of Pseudo Code
“Processing” easy coding Jens Dalsgaard Nielsen
Control structures Chapter 3.
Introduction to Object-oriented Program Design
Array Data Structure and Processing Arrays
Computation as an Expressive Medium
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
Exam1 Review CSE113 B.Ramamurthy 11/29/2018 B.Ramamurthy.
Mouse Inputs in Processing
Activity #58 Creature Features.
Chapter 5, Conditionals Brief Notes
Lab Report Template.
More programming with "Processing"
Introduction to Problem Solving & Programming using Processing 2
Pages:51-59 Section: Control1 : decisions
Control structures Chapter 3.
Control structures Chapter 3.
Lecture 6: Conditionals AP Computer Science Principles
Programming for Art: Images
Just a question for Mac users:
Introduction to Problem Solving & Programming using Processing 2
Control structures Chapter 3.
Exam1 Review CSE113 B.Ramamurthy 4/17/2019 B.Ramamurthy.
Welcome to Mountain View Elementary School!
LCC 6310 Computation as an Expressive Medium
Chapter 4, Variables Brief Notes
Trigonometry & Random March 2, 2010.
Pages:51-59 Section: Control1 : decisions
Continuous & Random September 21, 2009.
Midterm Exam Preperation
Chapter 13, Math A few Examples.
Introduction to Problem Solving & Programming using Processing 2
Instructions.
Presentation transcript:

Lab1 Discussion B. Ramamurthy

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 Example: if (i < 35) { line(30, i, 80, i); } { line(20, i, 90, i); }

Lets try these out Lets try picture, background; Review if..else and random: you will need it for this lab