Processing Lecture. 1 What is processing? lbg@dongseo.ac.kr.

Slides:



Advertisements
Similar presentations
Lesson One: The Beginning
Advertisements

Introduction to Programming
A Quick Introduction to Processing
PHY-102 SAPIntroductory GraphicsSlide 1 Introductory Graphics In this section we will learn how about how to draw graphics on the screen in Java:  Drawing.
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.
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.
DSA Processing. Links Processing.org My Processing page Ben Fry Ben Fry’s Thesis on Computational Information DesignThesis Casey Reas siteCasey Reas Casey.
IAT 800 Foundations of Computational Art and Design ______________________________________________________________________________________ SCHOOL OF INTERACTIVE.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Lesson One: The Beginning
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Graphics Standard Grade Computing. Graphics Package n A graphics package is another General Purpose Package. n It is used to draw pictures on the monitor.
FREEHAND FREEHAND EASY FOR DRAWING A SPECIAL COURSES FOR GEOLOGY STUDENTS OF ANKARA UNIVERSITY JEM209 Doç.Dr. Kavuşan.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Chapter 3 Working with Symbols and Interactivity.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
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.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Symbols and Interactivity.
Chapter 3: Using GUI Objects and the Visual Studio IDE.
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
XP Tutorial 1 Introduction to Macromedia Flash MX 2004.
Processing Lecture.2 Mouse and Keyboard
University of Sunderland CDM105 Session 6 Dreamweaver and Multimedia Fireworks MX 2004 Creating Menus and Button images.
Introduction to Processing CS 4390/5390 Fall 2014 Shirley Moore, Instructor September 3,
Lecture Manipulating Graphics w/ Paint.Net. What is Paint.Net? Paint.NET is free image and photo editing software for computers that run Windows. It features.
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 02b: Tutorial for Programming in Processing Jarek Rossignac.
Flash CS 5 Interface BY NSCHEWCZYK | ©2012. MENU BAR A bar at the top of the window. It lists menu options including: File, Edit, View, Insert, Modify,
1 Taif University Faculty Of Computers And Information Technology TA. Kholood Alharthi & TA. Maha Thafar First Semester AH.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
Processing (Program Language) by Piseth Tep intro Processing is a code base visual design and electronic art programing. It were initiated by Casey Reas.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Processing  Install Processing  Learn how to edit, run, save, export,
Introduction to Processing Dominique Thiebaut Dept. Computer Science Computer Science Dominique Thiebaut Thiebaut -- Computer Science.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Introduction to Layers GIMP User Manual. What is a Layer? Every image in GIMP is made by combining one or more images called Layers laid on top of each.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Lesson 1 – Getting Started with App Inventor
Introducing Scratch Learning resources for the implementation of the scenario
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
PROCESSING A computer screen is a grid of small light elements called pixels.
Introduction to Processing David Meredith Aalborg University Art &Technology, 3rd Semester Programming.
Emerging Platform#1: Processing 3
Python: Simple Graphics and Event-driven Programming
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
Chapter 14 JavaFX Basics Dr. Clincy - Lecture.
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Understanding the Visual IDE
Recreating some works of Josef Albers
FREEHAND EASY FOR DRAWING
Introduction to Problem Solving & Programming using Processing 2
Working with Symbols and Interactivity
Lecture 7: Introduction to Processing
Introduction to Problem Solving & Programming using Processing 2
Processing Environment
Introduction to Problem Solving & Programming using Processing 2
Presentation transcript:

Processing Lecture. 1 What is processing? lbg@dongseo.ac.kr

INDEX Lecture plan Processing? How to set up? Do it : Simple example(Drawing) Homework

Lecture plan

Lecture Plan What is Processing + Simple drawing Mouse + Keyboard input event Loop and animation Processing + Kinect Flash + Kinect

Processing?

Processing? History 2001, Initiated in MIT Media Lab Co-Developer : Casey Reas, Benjamin Fry Both formerly of the Aesthetics and Computation Group at the MIT Media Lab Casey Reas Benjamin Fry Artist, Professor, Software developer Artist, Psychotherapist, author, broadcaster

Processing? Digital Sketchbook! Open source programming software For non-programmers started with programming, artists, designers, researchers, hobbyists.. It means easy to use anybody! Conclude with simple code & function visual context(point, line, rectangle, circle…), picture, movie.. Electronic arts, Visual design, etc.. It is digital sketchbook! We can draw anything

IDE(Integrated Development Environment) Processing? IDE(Integrated Development Environment) Java compiler Language builds on the Java But, uses a simplified syntax and graphics programming model All additional classed defined will be treated as inner classes When compile the source code, translated into pure Java before compiling Possible to add other libraries at sketch project Easy to add other library Ex) Kinect Library, simpleML, etc.. Windows, Mac, Linux support Depends on users what machine we have

Processing? System composition Sketch Big 3 parts Project called sketch Big 3 parts Text editor compiler(Java compiler) A display window

Processing? Menus Totally 5 menus File Edit Sketch Tools Help Options for manage the sketch Edit Options for modify the sketch codes Sketch Options for execute the sketch Tools Set sketch’s property Help Open references, samples, link to Processing webpage

Processing? Toolbar 6buttons in here Run Stop New Run, Stop, New, Open, Save, Export Run Compile the code Pop up the display view Execute the program Stop Stop the executed program But, Not destroy the display view New Create a new sketch

Processing? Toolbar 6buttons in here Open Save Export Run, Stop, New, Open, Save, Export Open Open the exist sketch to IDE Save Save the current sketch to current path Save to another path, go to “File menu” and choose “save as” Export Convert sketch to Java applet

Processing? Text editor Message & Console area Display window This region is Sketch Input source code here Make functions Load library We can do anything here Message & Console area Show some result message Error or success message Display window Show the result region We can show the result at here Possible to fix the size at Text editor

What can we do?!

The Creators by Constanza Casas, Mark C Mitchell and Pieter Steyaert http://www.thecreators.tv/

How to set up?

How to set up? http://www.processing.org/

How to set up? http://www.processing.org/

How to set up? Is that all?!

How to set up? YES!!

Do it : Simple example

Do it: Simple example(Drawing) Draw(Point) Point point(x,y); point(3,2); point(6,5);

Do it: Simple example(Drawing) Draw(Line) Line line(x1,y1,x2,y2); line(2,1,6,5);

Do it: Simple example(Drawing) Draw(Rectangle) Just rect() rect(left, top, width, height); rect(1,1,6,6);

Do it: Simple example(Drawing) Draw(Rectangle) ‘Center’ Mode rect(centerX, centerY, width, height); rectmode(CENTER); rect(3,3,5,5);

Do it: Simple example(Drawing) Draw(Ellipse) Just ellipse() = ellipse(CENTER) ellipse(centerX, centerY, width, height); ellipse(3,3,7,5);

Do it: Simple example(Drawing) Draw(Ellipse) ellipse(CORNER) ellipse(Left, Top, width, height); ellipse(1,1,6,6);

Do it: Simple example(Drawing) Draw(Ellipse) ellipse(CORNERS) ellipse(Left, Top, Right, Bottom); ellipse(1,0,6,7);

Do it: Simple example(Drawing)

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50); Make sketch size like as inputted value (ex. Width:200pixel, Height:100pixel) Default : Width:100, Height:100

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50); Make sketch background color like as inputted value (ex. Red:0, Green:0, Blue:0) Default : Red:128, Green:128, Blue:128

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50); Define to drawing color (Red, Green, Blue) Red(255,0,0) Green(0,255,0) Blue(0,0,255) Default color is black(0,0,0)

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50); Draw point at inputted coordinate(x,y) Left-Top is (0,0) Pixel Coordinate

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50);

Do it: Simple example(Drawing) Draw point size(200,100); background(0,0,0); stroke(255,0,0); point(50,50); stroke(0,255,0); point(100,50); stroke(0,0,255); point(150,50);

Do it: Simple example(Drawing)

Do it: Simple example(Drawing) Draw line background(0,0,0); stroke(255,255,255); line(0,0,60,40); stroke(255,255,0); line(30,50,100,100); Draw line function (X1, Y1, X2, Y2)

Do it: Simple example(Drawing) Draw line background(0,0,0); stroke(255,255,255); line(0,0,60,40); stroke(255,255,0); line(30,50,100,100);

Do it: Simple example(Drawing)

Do it: Simple example(Drawing) Draw Figure size(150,100); quad(61,60, 94,60, 99,83, 81,90); rect(10,10,60,60); ellipse(80,10,60,60); triangle(12,50, 120,15, 125,60); Draw quadrangle (X1, Y1, X2, Y2, X3, Y3, X4, Y4)

Do it: Simple example(Drawing) Draw Figure size(150,100); quad(61,60, 94,60, 99,83, 81,90); rect(10,10,60,60); ellipse(80,10,60,60); triangle(12,50, 120,15, 125,60); Draw rectangle (X, Y, Width, Height)

Do it: Simple example(Drawing) Draw Figure size(150,100); quad(61,60, 94,60, 99,83, 81,90); rect(10,10,60,60); ellipse(80,10,60,60); triangle(12,50, 120,15, 125,60); Draw ellipse (CenterX, CenterY, Width, Height)

Do it: Simple example(Drawing) Draw Figure size(150,100); quad(61,60, 94,60, 99,83, 81,90); rect(10,10,60,60); ellipse(80,10,60,60); triangle(12,50, 120,15, 125,60); Draw Triangle (X1, Y1, X2, Y2, X3, Y3)

Do it: Simple example(Drawing) Draw Figure beginShape(TRIANGLES); vertex(30, 75); vertex(40, 20); vertex(50, 75); vertex(60, 20); vertex(70, 75); vertex(80, 20); vertex(90, 75); endShape( ); noStroke( ); fill(102); beginShape(POLYGON); vertex(38, 23); vertex(46, 23); vertex(46, 31); vertex(54, 31); vertex(54, 38); vertex(61, 38); vertex(61, 46); vertex(69, 46); vertex(69, 54); vertex(61, 54); vertex(61, 61); vertex(54, 61); vertex(54, 69); vertex(46, 69); vertex(46, 77); vertex(38, 77); endShape( );

Homework

Homework

Q& A