Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference.

Slides:



Advertisements
Similar presentations
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Advertisements

Processing Lecture. 1 What is processing?
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
JAVA Programming Environment © Juhani Välimäki 2003.
Google chrome operating system
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
Getting your Arduino to Work: Microsoft Windows 1.Install Arduino programming environment 2.Install Arduino Uno driver 3.Make sure you can download a program.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Add the word linked between the words or and information in the first line of the text. submit.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Scite Scintilla integrated text editor. Click here.
30-Jun-15 Getting Ready for CIT Labs Lab is scheduled for 1:30-3:00 Fridays in Moore 207 Lab is not in Towne 313 (Registrar has it wrong) Everyone.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
IERG4180 Tutorial 4 Jim.
Lesson One: The Beginning
A Visual Introduction to PC SAS. Start SAS by double-clicking on the SAS icon...
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
Portable Software. This program will explain what portable software is, how it can be used, and where it can be found. This is an advanced level technology.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
Getting Started With Java Downloading and installing software Running your first program Dr. DwyerFall 2012.
Installing and Configuring Tomcat A quick guide to getting things set up on Windows.
Parts of a Computer Why Use Binary Numbers? Source Code - Assembly - Machine Code.
1 eclipse Tips. 2 What is eclipse? Eclipse is a popular IDE (Integrated Development Environment) that we will use to create, compile, execute, and test.
05/09/ Introducing Visual Basic Sequence Programming.
How to Download and Install a Sharp Print Driver on a Mac.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
CSCI 273: Processing An Introduction. Programming Languages –An abstract "human understandable" language for telling the computer what to do –The abstract.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Microsoft Office 2013 ®® PowerPoint Tutorial 1 Creating a Presentation.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
Introduction to the Visual Studio.NET IDE (LAB 1 )
CPSC1301 Computer Science 1 Overview of Dr. Java.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
XP Practical PC, 3e Chapter 3 1 Installing and Learning Software.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
MySQL Getting Started BCIS 3680 Enterprise Programming.
How to Install Eclipse Click hereClick here to download Eclipse.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
start The first step in the word application Add the word linked between the words or and information in the first line of the text. Add the word linked.
Intoduction to Andriod studio Environment With a hello world program.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Creating Web Pages with Links, Images, and Embedded Style Sheets
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.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Importing Quicken Files for Mac to Excel. Intuit introduced Quicken as a personal finance tool. If you also use it for your business purposes then you.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Introduction to Problem Solving & Programming using Processing 2
How to Run a Java Program
Introduction to Problem Solving & Programming using Processing 2
Review of Previous Lesson
Mu Editor – New User Cheat Sheet – CircuitPython Mode
Mu Editor – New User Cheat Sheet – CircuitPython Mode
Introduction to Problem Solving & Programming using Processing 2
Presentation transcript:

Lesson One: The Beginning Chapter 2: Processing Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from built-in help reference folder after install

Lesson One: The Beginning 1: Pixels 2: Processing Installing Processing Menu Options Writing Code Errors The Processing Reference (and website) The “Play” button Your first sketch 3: Interaction Learning Processing: Slides by Don Smith 2

Installing You will need to have processing downloaded to your USB and not the lab machines. Finding the files Website: www. processing.org – click Download Version is the most stable Download the ‘standard’ version to USB Unzip, or open and extract files Let it choose defaults (location…) Installs Java SDK automatically and examples Puts Java files in a folder under Processing Works with XP and Vista Learning Processing: Slides by Don Smith 3

Where does Java fit in? Processing provides a simple ‘front end’ to Java. Processing requires Java SDK to be installed Software Development Kit Processing has it’s own library for graphics Java’s library (API) can also be used in Processing Learning Processing: Slides by Don Smith 4 Processing Source code Processing Library Java Compiler Portable Java Program Java Library

The Java Virtual Machine (JVM) Java was designed to run on embedded systems, it was designed around a virtual machine “Write once, run everywhere” Called the JRE (Java Runtime Environment) x86 Windows OS X G3/4/5 CPU Phone OS Java VM PCMacCell Phone Portable Java Program Running Java Program Running Java Program Running Java Program JRE

Sketch Menu Options Processing has an ‘PDE’ “ Processing Development Environment ” called Sketch File: New, Open, Quit, Examples! Edit: Copy, Paste, Select, Indent, Comment… Sketch: Run, Stop, Show Sketch folder… Tools: Auto format, Color chooser… Help: Getting Started, Reference, Find in Reference… Learning Processing: Slides by Don Smith 6

PDE To run: Menu Sketch, Run, Ctrl-R or Toolbar Run button You either get a display window (all’s well) or an error in Message Area Learning Processing: Slides by Don Smith 7 Menu Toolbar Sketch Tabs Text Editor Message Line Text Area Current Line# RUN Display Window

Toolbar buttons Learning Processing: Slides by Don Smith 8

Getting Started Learning Processing: Slides by Don Smith 9 Help menu, Getting Started goes to processing website and explains:  Processing Development Environment (PDE)  All menu options, hot keys  Sketchbook  Tabs, Multiple Files, and Classes  Coordinates  Programming Modes  Rendering Modes

Sketch Files and Folders… The folder where you store your sketches is called your ‘Sketchbook’ Sketch stores files under where Processing was installed May not be where you want. Use File, Save As to select a folder on your flash drive Processing remembers where you last saved Each sketch has it’s own folder File extension ‘PDE’ is a Processing Development Environment file Double click on PDE file to open Sketch for that folder Learning Processing: Slides by Don Smith 10

Where are your files? Choose File, Preferences Select new location for default Not flash drive (not always there) Learning Processing: Slides by Don Smith 11

Your First Program Open a new sketch Default name is based on date/time In the Text window, type: // My first Program Print(“Hello World by me”); rect(10, 10, 50, 50); One comment and two lines of code Run it… If no errors, What is in the Message/Text Area? What is in the Display window? Learning Processing: Slides by Don Smith 12

Errors The brown line tells you what is wrong Editor window: The line with the error is highlighted RECT should be lower case (rect) Learning Processing: Slides by Don Smith 13 Note: Processing only shows one error at a time

Help, Find In Reference Double click key word (highlights in yellow) Menu: Help, Find in Reference: (or Ctrl-Shift-F) Does not work if word is mis-spelled Normally goes directly to detailed page (local) Usually provides an example Learning Processing: Slides by Don Smith 14

Summary Processing requires (runs on) Java You can download both at the same time and install easily Processing provides a simple IDE (Integrated Development Environment) Called PDE (Processing development Environment) Sketches can be saved and copied Defaults to saving in your ‘install’ folder Use Save As to copy to flash drive Processing provides help Reference (all keywords) Find In Reference (help on one thing) Finds the first error and highlights the line above It only takes a little practice to get the hang of Processing. Make sure to understand these basics and it will avoid confusion down the road. Learning Processing: Slides by Don Smith 15

Assignment Take some time now to review some of the ways Processing is being used by looking at the Processing website Feed:Processing website Feed Under File in the main PDE menu click on “example” and a huge assortment of example code will be given to you to run. Check them all out. It’s fascinating. From those examples, choose three examples that you really like and be ready to share with the class. Learning Processing: Slides by Don Smith 16