Introduction to Processing Dominique Thiebaut Dept. Computer Science Computer Science Dominique Thiebaut Thiebaut -- Computer Science.

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

Variables Conditionals Boolean Expressions Conditional Statements How a program produces different results based on varying circumstances if, else if,
Processing the Danger Shield Everything you wanted to know about Processing but were afraid to ask By Ben Leduc-Mills.
Introduction to Programming
Game with US Beginner Tutorial. Welcome!! Who I am What is Processing? Basic Coding Input Methods Images Classes Arrays.
A Quick Introduction to Processing
Processing Lecture. 1 What is processing?
LAB SESSION 7 Graphical user interface Applet fundamentals Methods in applets Execution of an applet Graphics class.
Variables and Operators
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
Chapter 2 Programming by Example. A Holistic Perspective Three sections separated by blank lines. Program comment File: FileName.java
Variables Conditionals Loops The concept of Iteration Two types of loops: While For When do we use them? Iteration in the context of computer graphics.
Processing Processing is a simple programming environment that was created to make it easier to develop visually oriented applications with an emphasis.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2010/2011.
FUNDAMENTALS OF PROGRAMMING SM1204 Semester A 2011.
IAT 800 Foundations of Computational Art and Design Lecture 2.
IAT 800 Lab 1: Loops, Animation, and Simple User Interaction.
DSA Processing. Links Processing.org My Processing page Ben Fry Ben Fry’s Thesis on Computational Information DesignThesis Casey Reas siteCasey Reas Casey.
CS150 Introduction to Computer Science 1
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.
Beech Hall School Computing Science Course. To learn how to design and create a software application – an App Learn the basics of App Design Learn the.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
Continuous February 16, Test Review What expression represents the zip car eligibility rules of at least 18 years old and no incidents?
Keyboard and Events. What about the keyboard? Keyboard inputs can be used in many ways---not just for text The boolean variable keyPressed is true if.
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 10 Fall 2010.
Code Grammar. Syntax A set of rules that defines the combination of symbols and expressions.
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"
1 Taif University Faculty Of Computers And Information Technology TA. Kholood Alharthi & TA. Maha Thafar First Semester AH.
Variables Art &Technology, 3rd Semester Aalborg University Programming David Meredith
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
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
Processing TYWu. Where can I download? 2.0b9 Windows 32-bit.
CSC 120CPVL – Introduction to Creative Graphical Coding, Fall 2015 August, week 1, 2015 Dr. Dale Parson.
Counting Loops.
LCC 6310 Computation as an Expressive Medium Lecture 2.
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.
The Accumulator Pattern Summing: Add up (“accumulate”), e.g. 1 2 plus 2 2 plus 3 2 plus … plus Variation: Form a product (instead of sum), e.g.
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,
What is Computing? What can be Programmed? Creative Computing Processing Downloading Processing Dropbox Primitive Shapes – point – line – triangle – quad.
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 A 1. Course plan Introduction to programming Basic concepts of typical programming languages. Tools: compiler, editor, integrated editor,
Introduction to Computer Science What is Computer Science? Getting Started Programming.
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.
Chapter 14, Translate & Rotate
“Processing” easy coding Jens Dalsgaard Nielsen
Roller Coaster Design Project
Basic Graphics Drawing Shapes 1.
Introduction to R.
For Net Art Lecture 2 J Parker
Mouse Inputs in Processing
Chapter 5, Conditionals Brief Notes
More programming with "Processing"
Lecture 7: Introduction to Processing
Learning to code beyond block style coding.
Variables and Operators
Presentation transcript:

Introduction to Processing Dominique Thiebaut Dept. Computer Science Computer Science Dominique Thiebaut Thiebaut -- Computer Science

Who? Where? Why? Ben Fry & Casey Reas MIT Media Labs Computer Science Dominique Thiebaut Processing is a programming language and environment built for the media arts communities. It is created to teach fundamentals of computer programming within the media arts context and to serve as a software sketchbook. It is used by students, artists, designers, architects, and researchers for learning, prototyping, and production.

Ben Fry on Processing... Computer Science Dominique Thiebaut

= GREAT RESOURCE! Mouse 2D Example html html Computer Science Dominique Thiebaut An Example

How does it Work? Computer Science Dominique Thiebaut

How does it Work? Java Java independen t of operating system Processing works on Windows, Mac, Linux Computer Science Dominique Thiebaut

Writing a Sketch Computer Science Dominique Thiebaut

Writing a Sketch Computer Science Dominique Thiebaut Functions User functions Library functions Predefined: setup() draw() mouseX mouseY

Run/Stop Computer Science Dominique Thiebaut

Learning Processing (Learning Java Syntax) Computer Science Dominique Thiebaut

Some Examples Assembly language programs Graphics/Interactive programs Computer Science Dominique Thiebaut

Assembly Language Example 1 Computer Science Dominique Thiebaut Add two variables and store their sum into a third variable void setup() { int a = 10; int b = 20; int c = 0; c = a+b; println(“c= “ + c); }

Example 2 Computer Science Dominique Thiebaut Write an infinite loop that prints all the positive integers. void setup() { int count = 1; while (true) { println(count); count = count+1; }

void setup() { int count = 1; while (true) { println(count); count = count+1; } Example 2 Computer Science Dominique Thiebaut Write an infinite loop that prints all the positive integers.

void setup() { int count = 1; while (true) { println(count); count = count+1; } Example 2 Computer Science Dominique Thiebaut Write an infinite loop that prints all the positive integers.

Example 3 Computer Science Dominique Thiebaut Write an loop that prints all the integers from 1 to 10. void setup() { int count = 1; while ( ) { println(count); count = count+1; }

void setup() { int count = 1; while (count<=10) { println(count); count = count+1; } Example 3 Computer Science Dominique Thiebaut Write an loop that prints all the integers from 1 to 10.

void setup() { int count = 1; int sum = 0; while ( ) { } Example 4 Computer Science Dominique Thiebaut Write an loop that computes the sum of all the integers from 1 to 10 and prints the result.

void setup() { int count = 1; int sum = 0; while (count<=10) { sum = sum+count; count = count+1; } println(“sum=”+sum); } Example 4 Computer Science Dominique Thiebaut Write an loop that computes the sum of all the integers from 1 to 10 and prints the result.

Some Examples Assembly language programs Graphics/Interactive programs Computer Science Dominique Thiebaut

First Graphics Program void setup() { size(480, 480); smooth(); } void draw() { ellipse(mouseX, mouseY, 80, 80); } Computer Science Dominique Thiebaut

Some Variations to Try Lookup the rect() function in the Processing.org reference section. Replace the ellipse by a rectangle Lookup the background() function and place it in draw() Fill the ellipse or rectangle with a color using the fill() function Computer Science Dominique Thiebaut

Computer Science Dominique Thiebaut