Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Drawing pictures … It’s not art, it’s fun.

Slides:



Advertisements
Similar presentations
Processing Lecture. 1 What is processing?
Advertisements

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.
Speed CS A109. Big speed differences Many of the techniques we’ve learned take no time at all in other applications Select a figure in Word. –It’s automatically.
1. Tuesday: Halloween Shoot due TOMORROW. You must make a contact sheet of your photos and print it from my computer tomorrow. -5 pts for every day I don’t.
Go through this show in OpenOffice Impress by using the right scrollbar or clicking individual slide thumbnails on the left side. This hands-on demo is.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Changing Control.
CS320n – Elements of Visual Programming Introduction to Alice Mike Scott (Slides 1-1)
Aim: Use the given examples to record examples and our own ideas in our journal 1.Write technical examples in journal and/or participate in full.
Four simple expressions in meta. Data objects Pieces of data in a computer are called objects Today, we’ll talk about four kinds of objects Numbers Pictures.
HTML Lesson 2 TBE 540 Farah Fisher. Prerequisites Access web pages and navigate Use search engines to locate specific information Download graphics from.
A Simple Applet. Applets and applications An applet is a Java program that runs on a web page –Applets can be run from: Internet Explorer Netscape Navigator.
Four simple expressions in meta. Data objects Pieces of data in a computer are called objects Today, we’ll talk about four kinds of objects Numbers Pictures.
A Simple Applet.
Introduction to Shape Programming When we make geometric shapes with computers, we have to give specific numbers to tell the computer exactly what to do.
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.
LCC 6310 Computation as an Expressive Medium Lecture 1.
Week 2 Book Chapter 1 RGB Color codes. 2 2.Additive Color Mixing RGB The mixing of “ light ” Primary: Red, Green, Blue The complementary color “ White.
Applying Color in CSS Web Design – Sec 4-5 Part or all of this lesson was adapted from the University of Washington’s “ Web Design & Development I ” Course.
Color and Vision Key Question: How do we see color?
Programming in Processing Taught by Ms. Madsen Assistants: Ms. Fischer and Ms. Yen Winsor School, 2/6/08.
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004.
Agenda Last class: Memory, Digitizing Numbers Today: Digitizing: Text
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
Programming for Artists ART 315 Dr. J. R. Parker Art/Digital Media Lab Lec 10 Fall 2010.
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.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 More details and explanation …
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
1 A Simple Applet. 2 Applets and applications An applet is a Java program that runs on a web page Applets can be run within any modern browser To run.
CRE Programming Club - Class 5 Robert Eckstein and Robert Heard.
To view this in “presentation” mode, go to Slide Show  View Show (the toolbar at the top of the page) Use the “Enter” key to advance to the next slide.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
1 SIC / CoC / Georgia Tech MAGIC Lab Rossignac Processing  Install Processing  Learn how to edit, run, save, export,
CS 177 Recitation Week 1 – Intro to Java. Questions?
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Scientific Notation. = 5.4 =3.47 Write the following in standard form A 1.8 X 10⁴ B 3.47 X 10⁷ C 4.3 X 10⁰ D 5.4 X 10⁻⁴ E 5 X 10⁻⁶ F (6 X 10⁴) (7 X 10⁵)
Graphics Lab: MyPaint Dan Maselko 1. MyPaint Description  For this assignment you will be implementing a very simple paint program.  You should be able.
Rob Miles. Creating a Broken MoodLight An XNA game contains game data which is used by the Draw and Update methods – Update updates the game data – Draw.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
11 Making Decisions in a Program Session 2.3. Session Overview  Introduce the idea of an algorithm  Show how a program can make logical decisions based.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
AP CSP: Pixelation – B&W/Color Images
Create a Halloween Computer Game in Scratch
Processing Introduction CSE 120 Spring 2017
UNIT 2 – LESSON 4 Encoding Color Images.
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Learning to program with Logo
Information in Computers
Computer Graphics.
Processing and Drawing CSE 120 Winter 2018
To do … Web Exercise: Quiz-3, HW#2 Score: update
Color Values All colors in computer images are a combination of red, green and blue Each component is encoded as a number means the color is.
UNIT3 Colour.
Art Programs Raise Deep Questions
Testing and Repetition
Announcements: Reading materials are posted on Discussion Board.
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Colors Computers build colors from Red, Green, and Blue; not Red, Blue, and Yellow. RGB = Red Green Blue Creating Colors Red + Blue = Purple No Red, No.
Using the Power of XML Personally
What Color is it?.
Using Logo and Logic This presentation uses a version of Logo called StarLogo available through MIT. It can be downloaded for free and installed on your.
Variables, Assignments Testing + Iteration
Lawrence Snyder University of Washington, Seattle
Announcements How to save your work? Quiz solution 5/5/2019
Basic Processing … Drawing pictures … It’s not art, it’s fun
Chapter 1 Introducing Small Basic
Listen Up: Creating Effective Audio Lectures for Students
Presentation transcript:

Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Drawing pictures … It’s not art, it’s fun

 It’s our main programming language  “Processing” is kind of a dumb name,* but it is a good (and fun) language  It’s a language for programming graphical and image-based computations  More fun than programming an operating system  Easier to do because we “see” what’s happening * really really dumb, actually 1/3/2016© Larry Snyder2

 If you have a personal computer that is convenient to do homework on, then grab a copy of the Processing system and put it on your machine … improve your convenience!  Grab it at:  You will want “Windows” or “Mac” versions  Following installation instructions … it takes less than 5 minutes and then you can work on your own computer! 1/3/2016© Larry Snyder3

 When you start up the Processing system… 1/3/2016© Larry Snyder4 programming window Run Stop New Open Save Export file name

 Type in instructions that you will learn shortly  Then run your program 1/3/2016© Larry Snyder5

 A snow angel app is straightforward … 4 cmds 1/3/2016© Larry Snyder6 Just Do It!

 Notice everything! 1/3/2016© Larry Snyder7  Two Functions, One Common Form: void ( ) {all symbols + } placement matter  Every statement ends with a semicolon (;)  The software colors text it understands – helpful  Some functions include stuff inside parentheses; these are called arguments  If a function has arguments, each position has a specific meaning: size(, ); stroke(,, );  If your cursor is by a closing parenthesis or brace, the matching parenthesis or brace is highlighted  Keywords are highlighted in blue  Processing is case sensitive; notice!

 Colors in most Web programming are given as three values in [ 0,255]: RGB, for red, green, blue  The Color Purple, for example, is: 128, 0,128  These positions are the intensity of the little lights that make up a pixel on the screen  The least intensity is 0, that is, off  The greatest intensity is 255, maximum brightness  Amazingly, the three max RGB colors make white  So, purple is ½ intensity of Red, no Green, and ½ intensity of Blue … makes sense 1/3/2016© Larry Snyder8

 The angel is white on a blue background specified by: background(0, 0, 255); … which means?  Stroke sets line color: stroke(255,255,255);  Suppose it’s a Husky angel on white snow … change to: fill(255,255,255) stroke (128, 0, 128); 1/3/2016© Larry Snyder9

 When the values for RGB are all the same, it’s some color of gray, or white, or black  Since writing background(255,255,255) is kind of a drag, Processing allows us to give just one argument; so background(255) is equivalent to giving all three 255 s  What colors are these backgrounds?  background(255,0,0);  background(64);  background(0,0,64); 1/3/2016© Larry Snyder10

 Reas and Fry, in their book, show a cute robot they programmed using simple shapes  They give their code and we can see how they built it  To make the point that all code must “make sense” – its not gibberish – lets look at it even though we don’t know Processing yet 1/3/2016© Larry Snyder11

 1/3/2016© Larry Snyder12

 1/3/2016© Larry Snyder13

 We “improve” the robot by adding some color 1/3/2016© Larry Snyder14 Just Do It!