Processing Assignment Write- Ups

Size: px
Start display at page:

Download "Processing Assignment Write- Ups"

Transcription

1 Processing Assignment Write- Ups Exercise 1-1 Processing is not an elaborate series of points like connect the dots or is it? Can t be cause I got it all wrong when I mapped out each and every point that I thought Processing should follow down to the baby steps of hitting each pixel in a line. Once I read on and realized that there was a much more sensible (and simple way of writing code) I looked back at my paper with streams of code numbers running from line to line and sighed. CIRCLE English: Start at the bottom center, draw a half moon to equal point above starting point, draw another half- moon to connect w/ bottom point. Code: (2,0,1,1,0,2,0,3,1,4,2,5,3,4,4,3,4,2,3,2,3,1,2,0); RECT E: Draw a line in corner of page; draw a line at end of first side s line wider than width; draw another line equal length on opposite side; draw final line to connect to beginning point. C: (4,1,0,1,0,3,4,3,4,1); SQUARE E: Draw a straight line; draw a line to the right in equal length at first line ending; then draw a 3 rd line back down in equal length; draw one final line to connect to the initial starting point. C: (1, 0,1,2,3,2,3,0,1,0,); TRIANGLE E: Draw three equal length lines: start at bottom of the plane in left corner; draw 2md equal length line diagonal toward center of plane; draw a diagonal line towards bottom right side of plane; at that point, draw connecting line to initial starting point. C: (1,5,1,7,5); Exercise 1-2 Graphing primitive shapes from code: I found this exercise relatively easy after I read section 1.1 for a second time. I am glad that I waited to try the exercise after I took three types of notes of portion 1.1; I am awful at anything related to mat and numbers (outside of percentages and fractions). The grid and the three systems of modes (center, corner and corners) was throwing me off a bit until I could process it visually. The only shape that gave me a little bit of trouble was the ellipse, because to graph it, the center point didn t actually turn out to be the center point between the width and height pixels because it was listed as 4,4, my center point ended up being right over the bottom width line.

2 Exercise 1-3 Reverse engineer primitive shapes into code: 1. point(1,1); 2. rectmode(corners); rect(4,1, 9,3); 3. line(0,9); 4. line(1,5,1,9); 5. ellipsemode(corners); ellipse(7,7,8,9); Exercise 1-4 Color instructions for the screenshot: background(255); stroke(0); fill(0); rect(25,25,50,50); stroke(0); fill(150); rect(25,25,50,50); Exercize 1-5 Guess the RGB Values: fill(255, 0, 0); Bright Blue fill(127, 0, 0); Dark Purple fill(255, 200, 200); Yellow Feeling burnt out. Exercise 1-6 What coding will each of the sets create? fill(0, 100, 0); - - Light Green fill(100); Light Gray Stroke(0, 0, 200); Blue stroke(255); White stroke(255, 255, 0); Yellow stroke(0, 255, 255); Cayan stroke(200, 50, 50); Light- Light Pink (Peach?) Feeling very brunt out. Exercise 1-7 Creature By Hand or By Design.

3 Upon creating my thing, I realized that I felt somewhat limited in my design capabilities because I don t know Processing well enough to make something interesting at least to my eye, not to mention, I don t draw very well. Exercise 2-2 Opening and trying out an example. As my example reference, I choose continuouslines like the author suggested, but when the blank gray screen opened, I thought that I must have not installed my Processing application correctly. Then I figured out that you need to click and drag the mouse as it is an interactive example. I really like she patterns and pulses examples. Exercise 2-3 Run a sample code from chapter 1. Ran the code from the gray box image on page 11. Realized that there needs to be a space after the end parenthesis before the semicolon. Exercise 2-4 Putting our creature code into a new sketch. I realized that my code commands, which I programmed in a 1-10 graph scale, were too small, so I increased them all by 100% and the creature became much more visible. The text isn t showing in the window field. Also, How do you create the image in relatable code if you are not working with a visual graph layout field? Am I missing something? When I entered the code for her creature, I forgot to specify a size and I could only see one of his eyes. I added a size code and it worked out great. I still can t get the text to show in the box. Exercise 2-10 Export and open your sketch in a browser. Once I exported and opened my Shelby Creature through the internet, I laughed a little thinking that someone, at some point (class maybe) would have to see this awful sketch: embarrassing. Yet, not enough to take the humor out of it. Exercise 3-1 Write out the flow for PONG 1. Hit the tennis or ping- pong ball by moving your controller, mouse or arrows in the direction you want to your paddle to move so that it will hit the ball. 2. Hit the ball with your paddle, knocking it across the net. 3. Repeat until one of the players reaches ten points.

4 Exercise 3-3: Reverse the setup and background within the coding given. When you write the background first, before the setup size, the sketch becomes interactive. When the setup in size is written before the background, the sketch is not interactive. When reversed (background first) you can see how the repetition function works. Exercise 3-5: Rewrite part of Shelby to follow the mouse. Awesome. In Exercise 3-5, something just clicked. Now, I just have to figure out how to find a damn grid function. Assignment 1: Design an image and incorporate the mouse or key codes. I like that I can move the head around. Figuring out the more complicated aspects of coding gives me hope for the future as in, I would really like to master this program so I can use it in my artwork, but I ve already come to terms that it may not be my strong suit: see Shelby. LESSON 2 Chapters 4, 5, & 6 Exercise 4-1 What variables would Pong need? Player 1 & Player 2 score variables High score variables Ball position variables Paddle variables o When the pong ball strikes a certain area on a paddle, then the ball will move across the board on a specified direction/trajectory. o Directional variables like, if the mouse is moved in a direction, the paddle will also move in that direction that the paddle is controlled by the movement of the mouse 4-2 intcount = 0; intscorecount = intcount+1; float pongleft = (x, mousey); float pongright = (x,mousey); booleanpongball = intcount+1

5 Question (where I got stuck): There would be the variables depending on the area that the ball hits the paddle; therefore the ball would take variables in direction depending on the area in which the paddle was hit. How would you express this in a variable? 4-3 //To make the circle grow in length and width in circlesize = 0 int circlex = 20; int circley = 20; void setup() { size(200,200); void draw() { background(255); stroke(0); fill(175); ellipse(100,100, circlex, circley); circlex = circlex+1; circley = circley+1; //this it the correct way to answer the question //To make the circle grow as it follows the mouse in circlesize = 0 int circlex = 100; int circley = 100; void setup() { size(200,200); void draw() { background(255); stroke(0); fill(175); ellipse(mousex, mousey, circlesize, 50); circlesize = circlesize+1 c) To increase the speed at which the circle grows, you d increase the variable expression. i.e. circley = mousey + 20 having increased from 1 to now 20 circlex = mousex see notebook or processing code under Lesson 4 Sketches

6 1b) void setup () { void draw () { size (200, 200); background (100, 100, 200); stroke (0); line (100, 0, 100, 100); line (100, 100, 200, 200); line (100, 10, 0, 200); int circlecolor = 255; void setup () { size (200, 200); smooth (); void draw () { fill (circlecolor); background (circlecolor-150); ellipsemode (CENTER); ellipse (100, 100, 100, 100); 4-5 NEED HELP WITH THIS SECTION!!! NOTE IN SECTION BEFORE THE 6 TH EXERCISE: I really like the random function here, I can see that using random creates an object that looks like it lives/breathes on its own. Reminds me of a heartbeat, someone speaking, audio levels or a narrative. void setup() { size(200,200); void draw() { background(100); stroke(255);

7 int w = int(random(1,100)); rect(100,100,w,50); framerate (10); 4-6 ATTEMPT #2 // Learning Processing // Daniel Shiffman // // Example 4-8: Variable Zoog // NEW FEATURE #1: Zoog will rise from below the screen and fly off into space (above the screen.) // NEW FEATURE #2: Zoog!s eyes will be colored randomly as Zoog moves. // Declaring Variables. // zoogx and zoogy are for feature #1. eyer, eyeg, eyeb are for feature #2. float zoogx; float zoogy; float eyer; float eyeg; float eyeb; void setup() { size(200,200); // Set the size of the window // Feature #1. zoogx and zoogy are initialized based on the size of the window. // Note we cannot initialize these variables before the size() function is called // since we are using the built- in variables width and height. zoogx = width/2; // Zoog always starts in the middle zoogy = height + 100; // Zoog starts below the screen smooth(); void draw() { background(255); // Draw a white background // Set ellipses and rects to CENTER mode

8 ellipsemode(center); rectmode(center); // Draw Zoog's body stroke(0); fill(150); // Feature #1. zoogx and zoogy are used for the shape locations. rect(zoogx,zoogy,20,100); // Draw Zoog's head stroke(0); fill(255); ellipse(zoogx,zoogy- 30,60,60); // Draw Zoog's eyes // Feature #2. eyer, eyeg, and eyeb are given random values and used in the fill() function. eyer = random(255); eyeg = random(255); eyeb = random(255); fill(eyer,eyeg,eyeb); ellipse(zoogx- 19,zoogY- 30,16,32); ellipse(zoogx+19,zoogy- 30,16,32); // Draw Zoog's legs stroke(150); line(zoogx- 10,zoogY+50,zoogX- 10,height); line(zoogx+10,zoogy+50,zoogx+10,height); // Zoog moves up zoogy = zoogy - 1; zoogx = zoogx+random (- 1,1); ATTEMPT # 1 this brings up an error message. ellipse(zoogx- 19,zoogY- 30,16,32); ellipse(zoogx+19,zoogy- 30,16,32); // Draw Zoog's legs stroke(150);

9 line(zoogx- 10,zoogY+50,zoogX- 10,height); line(zoogx+10,zoogy+50,zoogx+10,height); // Zoog moves up zoogy = zoogy- 1; c 4-7 //write out random specifications int w = int(random(1,100)); int h = int(random(1, 100)); int bw = int(random(1, 100)); int bh = int(random(1,100)); void setup() { //Set the size of the window size(320, 240) ; void draw() { //Draw a white background background(255) ; smooth() framerate(30); //Set CENTER mode ellipsemode(center) ; rectmode(center) ; //Draw Shelby's head// stroke(0) ; fill(10, 0, 255) ; ellipse(50, 60, w, h) ; //Dray Shelby's body// stroke(0) ; fill(155, 0, 155) ; rect(100, 60, bw, bh) ; //Draw Shelby's Legs// stroke(0, 191, 191) ;

10 line(70, 145, 70, 200) ; line(90, 145, 90, 200) ; line(110, 145, 110, 200) ; line(130, 145, 130, 200) ; stroke(0) ; println("shelby Likes Personal Digital Space") ; 5-1 (needs to be finished need more info) float grade = random(0,100); if (100) { println("assign letter grade A."); else if (g > = 100 ) { println ( Assign letter grade B); else if (g < = 80, g < 90) { println( ); else if ( ) { println( ); else { println( ); 5-2 output: print X + " is greater than 50! output: print X is greater than 25! & print x is greater than 50! 5-3 if (x < 100) { x = constrain(100, 100, 20, 20); TRUE 2. FALSE 3. TRUE 4. TRUE 5. 5 cannot be greater than 10 and less than 5 at the same time. int x = 50; int y = 50; int w = 100; int h = 75;

11 void setup() { size(200,200); void draw() { background(0); stroke(255); if (mousex < 100 && mousey > 100 && heightx width/2 && heighty/2) { else fill (0) { rect(x,y,w,h); 5-7 The code won t work because in draw() the cycle repeats itself and this won t work with a switch command. (?) 6-1: INCORRECT ANSWER NEED HELP a) size ( 200, 200); background (255); int y = 0; while (y < width) { stroke (0); line (x, y, x, y + height); y = y + 20; 6-3 First Go: 1. B 2. A 3. C 4. D Second Go: 1. D 2. A 3. B 4. C 6-4

12 code a will turn from black to white. Results: code a did turn from black to while on the first round of reading the code, but on the second round, it changed from black to blue color. Code b will turn from black to white. Results: code b did not run any change. I was wrong ) I might write functions (for my Lesson 2 project): a. Someone pacing back and forth in a room b. The sun and moon rising and setting through a window c. Thought Bubble Standards that I can modify their size 2) What functions might you write in order to program Pong: a. drawpaddle() b. drawball() 7-4 void sum(int a, int b, int c) { int total = a + b + c; println(total); Looking at the function definition above, write the code that calls the function. Int a = 5; Int b = 10; Int c = 20; Println Reads: multiply(5.2,9.0); void multiply ( int a, int b) { int total = a * b; println (total); 7-8 NEED HELP HERE C = (F - 32) * (5/9) Float tempconverter(float ) { =

13 9-1 Yes; the hair uses an array. It produces multiple circles to create moving hair around the head through There then 1001 array options. LOST. REALLY, REALLY LOST. Exercises 11, 12: see handwritten notes Exercises 15 & 16: Couldn t give any answers: I am deeply lost.

Recall that creating or declaring a variable can be done as follows:

Recall that creating or declaring a variable can be done as follows: Lesson 2: & Conditionals Recall that creating or declaring a variable can be done as follows:! float radius = 20;! int counter = 5;! string name = Mr. Nickel ;! boolean ispressed = true;! char grade =

More information

What is a variable? a named location in the computer s memory. mousex mousey. width height. fontcolor. username

What is a variable? a named location in the computer s memory. mousex mousey. width height. fontcolor. username What is a variable? a named location in the computer s memory mousex mousey width height fontcolor username Variables store/remember values can be changed must be declared to store a particular kind of

More information

Lesson Two. Everything You Need to Know. 4 Variables 5 Conditionals 6 Loops

Lesson Two. Everything You Need to Know. 4 Variables 5 Conditionals 6 Loops Lesson Two Everything You Need to Know 4 Variables 5 Conditionals 6 Loops This page intentionally left blank 4 Variables Variables 45 All of the books in the world contain no more information than is broadcast

More information

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013

Kimberly Nguyen Professor Oliehoek Introduction to Programming 8 September 2013 1. A first program // Create 200x200 canvas // Print favorite quote size(200, 200); println("it is what it is"); // Draw rectangle and a line rect(100,100,50,50); line(0,0,50,50); // Save as.pde. Can be

More information

Interaction Design A.A. 2017/2018

Interaction Design A.A. 2017/2018 Corso di Laurea Magistrale in Design, Comunicazione Visiva e Multimediale - Sapienza Università di Roma Interaction Design A.A. 2017/2018 5 Basics of Processing Francesco Leotta, Andrea Marrella Last update

More information

Repetition is the reality and the seriousness of life. Soren Kierkegaard

Repetition is the reality and the seriousness of life. Soren Kierkegaard 6 Loops Loops 81 Repetition is the reality and the seriousness of life. Soren Kierkegaard What s the key to comedy? Repetition. What s the key to comedy? Repetition. Anonymous In this chapter: The concept

More information

Interaction Design A.A. 2017/2018

Interaction Design A.A. 2017/2018 Corso di Laurea Magistrale in Design, Comunicazione Visiva e Multimediale - Sapienza Università di Roma Interaction Design A.A. 2017/2018 7 Conditionals in Processing Francesco Leotta, Andrea Marrella

More information

Basic Computer Programming (Processing)

Basic Computer Programming (Processing) Contents 1. Basic Concepts (Page 2) 2. Processing (Page 2) 3. Statements and Comments (Page 6) 4. Variables (Page 7) 5. Setup and Draw (Page 8) 6. Data Types (Page 9) 7. Mouse Function (Page 10) 8. Keyboard

More information

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created.

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created. + Inheritance + Inheritance Classes that we design in Java can be used to model some concept in our program. For example: Pokemon a = new Pokemon(); Pokemon b = new Pokemon() Sometimes we need to create

More information

[ the academy_of_code] Senior Beginners

[ the academy_of_code] Senior Beginners [ the academy_of_code] Senior Beginners 1 Drawing Circles First step open Processing Open Processing by clicking on the Processing icon (that s the white P on the blue background your teacher will tell

More information

The way I feel about music is that there is no right and wrong. Only true and false. Fiona Apple. true false false

The way I feel about music is that there is no right and wrong. Only true and false. Fiona Apple. true false false 5 Conditionals Conditionals 59 That language is an instrument of human reason, and not merely a medium for the expression of thought, is a truth generally admitted. George Boole The way I feel about music

More information

mith College Computer Science CSC103 How Computers Work Week 7 Fall 2017 Dominique Thiébaut

mith College Computer Science CSC103 How Computers Work Week 7 Fall 2017 Dominique Thiébaut mith College Computer Science CSC103 How Computers Work Week 7 Fall 2017 Dominique Thiébaut dthiebaut@smith.edu Important Review Does the animation leave a trace? Are the moving objects move without a

More information

CISC 1600 Lecture 3.1 Introduction to Processing

CISC 1600 Lecture 3.1 Introduction to Processing CISC 1600 Lecture 3.1 Introduction to Processing Topics: Example sketches Drawing functions in Processing Colors in Processing General Processing syntax Processing is for sketching Designed to allow artists

More information

Chapter 5. Condi.onals

Chapter 5. Condi.onals Chapter 5 Condi.onals Making Decisions If you wish to defrost, press the defrost bu=on; otherwise press the full power bu=on. Let the dough rise in a warm place un.l it has doubled in size. If the ball

More information

CISC 1600, Lab 2.1: Processing

CISC 1600, Lab 2.1: Processing CISC 1600, Lab 2.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using Sketchpad, a site for building processing sketches online using processing.js. 1.1. Go to http://cisc1600.sketchpad.cc

More information

CISC 1600, Lab 3.1: Processing

CISC 1600, Lab 3.1: Processing CISC 1600, Lab 3.1: Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using OpenProcessing, a site for building processing sketches online using processing.js. 1.1. Go to https://www.openprocessing.org/class/57767/

More information

Pick a number. Conditionals. Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary. CS Conditionals 1

Pick a number. Conditionals. Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary. CS Conditionals 1 Conditionals Boolean Logic Relational Expressions Logical Operators Numerical Representation Binary CS105 04 Conditionals 1 Pick a number CS105 04 Conditionals 2 Boolean Expressions An expression that

More information

Kimberly Nguyen Professor Oliehoek Assignment 3. 1 A // Declare frequented variables int h = 20; void setup() { size(400, 200); smooth(); }

Kimberly Nguyen Professor Oliehoek Assignment 3. 1 A // Declare frequented variables int h = 20; void setup() { size(400, 200); smooth(); } 1 A // Declare frequented variables int w = 20; int h = 20; size(400, 200); void drawflashlight(int coloring,int i) { // Draw 8 dim flashlights for (int x = 0; x < width; x+=width/(i)) { ellipsemode(corner);

More information

If the ball goes off either the right or left edge, turn the ball around. If x is greater than width or if x is less than zero, reverse speed.

If the ball goes off either the right or left edge, turn the ball around. If x is greater than width or if x is less than zero, reverse speed. Conditionals 75 Reversing the Polarity of a Number When we want to reverse the polarity of a number, we mean that we want a positive number to become negative and a negative number to become positive.

More information

What can we do with Processing? Let s check. Natural Language and Dialogue Systems Lab Guest Image. Remember how colors work.

What can we do with Processing? Let s check. Natural Language and Dialogue Systems Lab Guest Image. Remember how colors work. MIDTERM REVIEW: THURSDAY I KNOW WHAT I WANT TO REVIEW. BUT ALSO I WOULD LIKE YOU TO TELL ME WHAT YOU MOST NEED TO GO OVER FOR MIDTERM. BY EMAIL AFTER TODAY S CLASS. What can we do with Processing? Let

More information

We will start our journey into Processing with creating static images using commands available in Processing:

We will start our journey into Processing with creating static images using commands available in Processing: Processing Notes Chapter 1: Starting Out We will start our journey into Processing with creating static images using commands available in Processing: rect( ) line ( ) ellipse() triangle() NOTE: to find

More information

CISC 1600, Lab 2.2: Interactivity in Processing

CISC 1600, Lab 2.2: Interactivity in Processing CISC 1600, Lab 2.2: Interactivity in Processing Prof Michael Mandel 1 Getting set up For this lab, we will again be using Sketchpad, a site for building processing sketches online using processing.js.

More information

mith College Computer Science CSC103 How Computers Work Week 6 Fall 2017 Dominique Thiébaut

mith College Computer Science CSC103 How Computers Work Week 6 Fall 2017 Dominique Thiébaut mith College Computer Science CSC103 How Computers Work Week 6 Fall 2017 Dominique Thiébaut dthiebaut@smith.edu Ben Fry on Processing... http://www.youtube.com/watch?&v=z-g-cwdnudu An Example Mouse 2D

More information

Bits and Bytes. How do computers compute?

Bits and Bytes. How do computers compute? Bits and Bytes How do computers compute? Representing Data All data can be represented with: 1s and 0s on/of true/false Numbers? Five volunteers... Binary Numbers Positional Notation Binary numbers use

More information

Using Methods. Methods that handle events. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Using Methods. Methods that handle events. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics Using Methods Methods that handle events Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Caveat The term function is used in Processing e.g. line(),

More information

if / if else statements

if / if else statements if / if else statements December 1 2 3 4 5 Go over if notes and samples 8 9 10 11 12 Conditionals Quiz Conditionals TEST 15 16 17 18 19 1 7:30 8:21 2 8:27 9:18 3 9:24 10:14 1 CLASS 7:30 8:18 1 FINAL 8:24

More information

Variables One More (but not the last) Time with feeling

Variables One More (but not the last) Time with feeling 1 One More (but not the last) Time with feeling All variables have the following in common: a name a type ( int, float, ) a value an owner We can describe variables in terms of: who owns them ( Processing

More information

Name CMPS 5J Final March 17, 2010 This is a closed notes, closed book exam. Each problem is worth 1 point unless indicated otherwise.

Name CMPS 5J Final March 17, 2010 This is a closed notes, closed book exam. Each problem is worth 1 point unless indicated otherwise. Name CMPS 5J Final March 17, 2010 This is a closed notes, closed book exam. Each problem is worth 1 point unless indicated otherwise. There are 21 problems and 25 points total. There are multiple versions

More information

5.1. Examples: Going beyond Sequence

5.1. Examples: Going beyond Sequence Chapter 5. Selection In Chapter 1 we saw that algorithms deploy sequence, selection and repetition statements in combination to specify computations. Since that time, however, the computations that we

More information

CISC 1600, Lab 3.2: Interactivity in Processing

CISC 1600, Lab 3.2: Interactivity in Processing CISC 1600, Lab 3.2: Interactivity in Processing Prof Michael Mandel 1 Getting set up For this lab, we will be using OpenProcessing, a site for building processing sketches online using processing.js. 1.1.

More information

Interaction Design A.A. 2017/2018

Interaction Design A.A. 2017/2018 Corso di Laurea Magistrale in Design, Comunicazione Visiva e Multimediale - Sapienza Università di Roma Interaction Design A.A. 2017/2018 8 Loops and Arrays in Processing Francesco Leotta, Andrea Marrella

More information

Interactive Tourist Map

Interactive Tourist Map Adobe Edge Animate Tutorial Mouse Events Interactive Tourist Map Lesson 1 Set up your project This lesson aims to teach you how to: Import images Set up the stage Place and size images Draw shapes Make

More information

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW

On the Web sun.com/aboutsun/comm_invest STAROFFICE 8 DRAW STAROFFICE 8 DRAW Graphics They say a picture is worth a thousand words. Pictures are often used along with our words for good reason. They help communicate our thoughts. They give extra information that

More information

Final Exam Winter 2013

Final Exam Winter 2013 Final Exam Winter 2013 1. Which modification to the following program makes it so that the display shows just a single circle at the location of the mouse. The circle should move to follow the mouse but

More information

1 Getting started with Processing

1 Getting started with Processing cis3.5, spring 2009, lab II.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Conditional Events. Mouse events and Operators. Dr. Siobhán Drohan Mairead Meagher. Produced by:

Conditional Events. Mouse events and Operators. Dr. Siobhán Drohan Mairead Meagher. Produced by: Conditional Events Mouse events and Operators Produced by: Dr. Siobhán Drohan Mairead Meagher Department of Computing and Mathematics http://www.wit.ie/ Topics list Mouse Events Recap: Arithmetic Operators

More information

ICS 61 Game Systems and Design Introduction to Scratch

ICS 61 Game Systems and Design Introduction to Scratch ICS 61, Winter, 2015 Introduction to Scratch p. 1 ICS 61 Game Systems and Design Introduction to Scratch 1. Make sure your computer has a browser open at the address http://scratch.mit.edu/projects/editor/.

More information

Name CMPS 5J Final March 17, 2009 This is a closed notes, closed book exam.

Name CMPS 5J Final March 17, 2009 This is a closed notes, closed book exam. Name CMPS 5J Final March 17, 2009 This is a closed notes, closed book exam. There are 21 problems and 50 points total. The last 5 problems ask you to write short programs or code fragments. There are multiple

More information

Polygons and Angles: Student Guide

Polygons and Angles: Student Guide Polygons and Angles: Student Guide You are going to be using a Sphero to figure out what angle you need the Sphero to move at so that it can draw shapes with straight lines (also called polygons). The

More information

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive

Shape and Line Tools. tip: Some drawing techniques are so much easier if you use a pressuresensitive 4Drawing with Shape and Line Tools Illustrator provides tools for easily creating lines and shapes. Drawing with shapes (rectangles, ellipses, stars, etc.) can be a surprisingly creative and satisfying

More information

A B C D CS105 03a Interaction

A B C D CS105 03a Interaction Interaction Function Definition Events Built-in Variables CS105 03a Interaction 1 Which image is drawn by this code? strokeweight(10); stroke(0, 255, 0); // green line(99, 0, 0, 99); stroke(200, 0, 200);

More information

Exploring Processing

Exploring Processing Exploring Processing What is Processing? Easy-to-use programming environment Let s you edit, run, save, share all in one application Designed to support interactive, visual applications Something we ve

More information

University of Cincinnati. P5.JS: Getting Started. p5.js

University of Cincinnati. P5.JS: Getting Started. p5.js p5.js P5.JS: Getting Started Matthew Wizinsky University of Cincinnati School of Design HTML + CSS + P5.js File Handling & Management Environment Canvas Coordinates Syntax Drawing Variables Mouse Position

More information

In this chapter: What is an array? Declaring an array. Initialization. Array operations using the for loop with an array. Arrays of objects.

In this chapter: What is an array? Declaring an array. Initialization. Array operations using the for loop with an array. Arrays of objects. 9 Arrays Arrays 141 I might repeat to myself slowly and soothingly, a list of quotations beautiful from minds profound if I can remember any of the damn things. Dorothy Parker In this chapter: What is

More information

GETTING AROUND STAGE:

GETTING AROUND STAGE: ASM FLASH INTRO FLASH CS3 is a 2D software that is used extensively for Internet animation. Its icon appears as a red square with a stylized Fl on it. It requires patience, because (like most computer

More information

1 Getting started with Processing

1 Getting started with Processing cisc3665, fall 2011, lab I.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For

More information

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle

Drawing a Circle. 78 Chapter 5. geometry.pyde. def setup(): size(600,600) def draw(): ellipse(200,100,20,20) Listing 5-1: Drawing a circle 5 Transforming Shapes with Geometry In the teahouse one day Nasrudin announced he was selling his house. When the other patrons asked him to describe it, he brought out a brick. It s just a collection

More information

Transforming Objects and Components

Transforming Objects and Components 4 Transforming Objects and Components Arrow selection Lasso selection Paint selection Move Rotate Scale Universal Manipulator Soft Modification Show Manipulator Last tool used Figure 4.1 Maya s manipulation

More information

Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels:

Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels: Question 1 (10 points) Write the correct answer in each of the following: a) Write a Processing command to create a canvas of 400x300 pixels: size(400, 300); b) After the above command is carried out,

More information

What is a variable? A named locajon in the computer s memory. A variable stores values

What is a variable? A named locajon in the computer s memory. A variable stores values Chapter 4 Summary/review coordinate system basic drawing commands and their parameters (rect, line, ellipse,background, stroke, fill) color model - RGB + alpha Processing IDE - entering/saving/running

More information

Loops. Variable Scope Remapping Nested Loops. Donald Judd. CS Loops 1. CS Loops 2

Loops. Variable Scope Remapping Nested Loops. Donald Judd. CS Loops 1. CS Loops 2 Loops Variable Scope Remapping Nested Loops CS105 05 Loops 1 Donald Judd CS105 05 Loops 2 judd while (expression) { statements CS105 05 Loops 3 Four Loop Questions 1. What do I want to repeat? - a rect

More information

Appendix: Common Errors

Appendix: Common Errors Appendix: Common Errors Appendix 439 This appendix offers a brief overview of common errors that occur in Processing, what those errors mean and why they occur. The language of error messages can often

More information

Investigation: Triangle congruencies.

Investigation: Triangle congruencies. Investigation: Triangle congruencies. In this investigation you will be discovering the properties of triangle congruencies. Specifically, if there are more than 4 ways to prove a triangle congruent. Step-By-Step

More information

Adobe Flash CS3 Reference Flash CS3 Application Window

Adobe Flash CS3 Reference Flash CS3 Application Window Adobe Flash CS3 Reference Flash CS3 Application Window When you load up Flash CS3 and choose to create a new Flash document, the application window should look something like the screenshot below. Layers

More information

Introduction to Processing

Introduction to Processing Processing Introduction to Processing Processing is a programming environment that makes writing programs easier. It contains libraries and functions that make interacting with the program simple. The

More information

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING AN INTRODUCTION TO SCRATCH (2) PROGRAMMING Document Version 2 (04/10/2014) INTRODUCTION SCRATCH is a visual programming environment and language. It was launched by the MIT Media Lab in 2007 in an effort

More information

Grade: 7 Lesson name: Creating a School News Letter Microsoft Word 2007

Grade: 7 Lesson name: Creating a School News Letter Microsoft Word 2007 Grade: 7 Lesson name: Creating a School News Letter Microsoft Word 2007 1. Open Microsoft Word 2007. Word will start up as a blank document. 2. Change the margins by clicking the Page Layout tab and clicking

More information

Adobe Illustrator. Always NAME your project file. It should be specific to you and the project you are working on.

Adobe Illustrator. Always NAME your project file. It should be specific to you and the project you are working on. Adobe Illustrator This packet will serve as a basic introduction to Adobe Illustrator and some of the tools it has to offer. It is recommended that anyone looking to become more familiar with the program

More information

Create a unit using United Streaming and PowerPoint. Materials: Microsoft PowerPoint, Internet access, United Streaming account

Create a unit using United Streaming and PowerPoint. Materials: Microsoft PowerPoint, Internet access, United Streaming account Create a unit using United Streaming and PowerPoint Materials: Microsoft PowerPoint, Internet access, United Streaming account Find United Streaming Clips: 1. Decide on a topic for your unit. 2. Search

More information

Class #1. introduction, functions, variables, conditionals

Class #1. introduction, functions, variables, conditionals Class #1 introduction, functions, variables, conditionals what is processing hello world tour of the grounds functions,expressions, statements console/debugging drawing data types and variables decisions

More information

In this lesson, you ll learn how to:

In this lesson, you ll learn how to: LESSON 5: ADVANCED DRAWING TECHNIQUES OBJECTIVES In this lesson, you ll learn how to: apply gradient fills modify graphics by smoothing, straightening, and optimizing understand the difference between

More information

Art, Nature, and Patterns Introduction

Art, Nature, and Patterns Introduction Art, Nature, and Patterns Introduction to LOGO Describing patterns with symbols This tutorial is designed to introduce you to some basic LOGO commands as well as two fundamental and powerful principles

More information

1. Complete these exercises to practice creating user functions in small sketches.

1. Complete these exercises to practice creating user functions in small sketches. Lab 6 Due: Fri, Nov 4, 9 AM Consult the Standard Lab Instructions on LEARN for explanations of Lab Days ( D1, D2, D3 ), the Processing Language and IDE, and Saving and Submitting. Rules: Do not use the

More information

SketchUp Quick Start For Surveyors

SketchUp Quick Start For Surveyors SketchUp Quick Start For Surveyors Reason why we are doing this SketchUp allows surveyors to draw buildings very quickly. It allows you to locate them in a plan of the area. It allows you to show the relationship

More information

Adobe Illustrator. Quick Start Guide

Adobe Illustrator. Quick Start Guide Adobe Illustrator Quick Start Guide 1 In this guide we will cover the basics of setting up an Illustrator file for use with the laser cutter in the InnovationStudio. We will also cover the creation of

More information

Khan Academy JavaScript Study Guide

Khan Academy JavaScript Study Guide Khan Academy JavaScript Study Guide Contents 1. Canvas graphics commands with processing.js 2. Coloring 3. Variables data types, assignments, increments 4. Animation with draw loop 5. Math expressions

More information

UNIT 11 VOLUME AND THE PYTHAGOREAN THEOREM

UNIT 11 VOLUME AND THE PYTHAGOREAN THEOREM UNIT 11 VOLUME AND THE PYTHAGOREAN THEOREM INTRODUCTION In this Unit, we will use the idea of measuring volume that we studied to find the volume of various 3 dimensional figures. We will also learn about

More information

ACTIVE PROCESSING Summary Learning Objectives How to Proceed Check your Understanding Learning Objectives 412

ACTIVE PROCESSING Summary Learning Objectives How to Proceed Check your Understanding Learning Objectives 412 ACTIVE PROCESSING Summary This is a difficult unit we finally move away from boring calculation programs and start to have programs that animate and you can interact with. These are called active programs

More information

Watch the following for more announcements

Watch the following for more announcements Review "plain text file" loadstrings() split() splittokens() selectinput() println(), float(), int(), can take an array argument, will return an array easy way to convert an array of Strings to an array

More information

CSC 120 Introduction to Creative Graphical Coding, Fall 2015

CSC 120 Introduction to Creative Graphical Coding, Fall 2015 CSC 120 Introduction to Creative Graphical Coding, Fall 2015 Dr. Dale E. Parson, Outline in preparation for assignment 2. How to move your avatar in a function and give it X, Y, and scaling parameters.

More information

COMP Summer 2015 (A01) Jim (James) Young jimyoung.ca

COMP Summer 2015 (A01) Jim (James) Young jimyoung.ca COMP 1010- Summer 2015 (A01) Jim (James) Young young@cs.umanitoba.ca jimyoung.ca order of operations with the explicit cast! int integervariable = (int)0.5*3.0; Casts happen first! the cast converts the

More information

Grade 6 Math Circles. Spatial and Visual Thinking

Grade 6 Math Circles. Spatial and Visual Thinking Faculty of Mathematics Waterloo, Ontario N2L 3G1 Introduction Grade 6 Math Circles October 31/November 1, 2017 Spatial and Visual Thinking Centre for Education in Mathematics and Computing One very important

More information

CSC 120 Introduction to Creative Graphical Coding, Fall 2017

CSC 120 Introduction to Creative Graphical Coding, Fall 2017 CSC 120 Introduction to Creative Graphical Coding, Fall 2017 Dr. Dale E. Parson, Assignment 1, Implementing and testing an automated avatar in Processing. This assignment is due via D2L Assignments Assignment

More information

5 R1 The one green in the same place so either of these could be green.

5 R1 The one green in the same place so either of these could be green. Page: 1 of 20 1 R1 Now. Maybe what we should do is write out the cases that work. We wrote out one of them really very clearly here. [R1 takes out some papers.] Right? You did the one here um where you

More information

THE JAVASCRIPT ARTIST 15/10/2016

THE JAVASCRIPT ARTIST 15/10/2016 THE JAVASCRIPT ARTIST 15/10/2016 Objectives Learn how to program with JavaScript in a fun way! Understand the basic blocks of what makes a program. Make you confident to explore more complex features of

More information

Getting Started with Processing by Casey Reas and Ben Fry

Getting Started with Processing by Casey Reas and Ben Fry Free Sampler Getting Started with Processing by Casey Reas and Ben Fry Copyright 2010 Casey Reas and Ben Fry. All rights reserved. Printed in the United States of America. Published by O Reilly Media,

More information

CSE120 Wi18 Final Review

CSE120 Wi18 Final Review CSE120 Wi18 Final Review Practice Question Solutions 1. True or false? Looping is necessary for complex programs. Briefly explain. False. Many loops can be explicitly written out as individual statements

More information

Making ecards Can Be Fun!

Making ecards Can Be Fun! Making ecards Can Be Fun! A Macromedia Flash Tutorial By Mike Travis For ETEC 664 University of Hawaii Graduate Program in Educational Technology April 4, 2005 The Goal The goal of this project is to create

More information

INTRODUCTION TO PROCESSING. Alark Joshi, Amit Jain, Jyh-haw Yeh and Tim Andersen

INTRODUCTION TO PROCESSING. Alark Joshi, Amit Jain, Jyh-haw Yeh and Tim Andersen INTRODUCTION TO PROCESSING Alark Joshi, Amit Jain, Jyh-haw Yeh and Tim Andersen What is Processing? Processing is a programming language designed to make programming easier Developers were frustrated with

More information

Design Programming DECO2011

Design Programming DECO2011 Design Programming DECO2011 Rob Saunders web: http://www.arch.usyd.edu.au/~rob e-mail: rob@arch.usyd.edu.au office: Room 274, Wilkinson Building Data, Variables and Flow Control What is a Variable? Computers

More information

HYPERSTUDIO TOOLS. THE GRAPHIC TOOL Use this tool to select graphics to edit. SPRAY PAINT CAN Scatter lots of tiny dots with this tool.

HYPERSTUDIO TOOLS. THE GRAPHIC TOOL Use this tool to select graphics to edit. SPRAY PAINT CAN Scatter lots of tiny dots with this tool. THE BROWSE TOOL Us it to go through the stack and click on buttons THE BUTTON TOOL Use this tool to select buttons to edit.. RECTANGLE TOOL This tool lets you capture a rectangular area to copy, cut, move,

More information

Step 1: Create A New Photoshop Document

Step 1: Create A New Photoshop Document Snowflakes Photo Border In this Photoshop tutorial, we ll learn how to create a simple snowflakes photo border, which can be a fun finishing touch for photos of family and friends during the holidays,

More information

Photoshop tutorial: Final Product in Photoshop:

Photoshop tutorial: Final Product in Photoshop: Disclaimer: There are many, many ways to approach web design. This tutorial is neither the most cutting-edge nor most efficient. Instead, this tutorial is set-up to show you as many functions in Photoshop

More information

Create an Adorable Hedgehog with Basic Tools in Inkscape Aaron Nieze on Sep 23rd 2013 with 5 Comments

Create an Adorable Hedgehog with Basic Tools in Inkscape Aaron Nieze on Sep 23rd 2013 with 5 Comments Create an Adorable Hedgehog with Basic Tools in Inkscape Aaron Nieze on Sep 23rd 2013 with 5 Comments Tutorial Details Software: Inkscape Difficulty: Beginner Completion Time: 2 hours View post on Tuts+

More information

Programming Project 1

Programming Project 1 Programming Project 1 Handout 6 CSCI 134: Fall, 2016 Guidelines A programming project is a laboratory that you complete on your own, without the help of others. It is a form of take-home exam. You may

More information

Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments

Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments Advertise Here Create a Swirly Lollipop Using the Spiral Tool Philip Christie on Jun 13th 2012 with 12 Comments Tutorial Details Program: Adobe Illustrator CS5 Difficulty: Beginner Es timated Completion

More information

Area rectangles & parallelograms

Area rectangles & parallelograms Area rectangles & parallelograms Rectangles One way to describe the size of a room is by naming its dimensions. So a room that measures 12 ft. by 10 ft. could be described by saying its a 12 by 10 foot

More information

InDesign Tools Overview

InDesign Tools Overview InDesign Tools Overview REFERENCE If your palettes aren t visible you can activate them by selecting: Window > Tools Transform Color Tool Box A Use the selection tool to select, move, and resize objects.

More information

Ancient Cell Phone Tracing an Object and Drawing with Layers

Ancient Cell Phone Tracing an Object and Drawing with Layers Ancient Cell Phone Tracing an Object and Drawing with Layers 1) Open Corel Draw. Create a blank 8.5 x 11 Document. 2) Go to the Import option and browse to the Graphics 1 > Lessons folder 3) Find the Cell

More information

Part 1. Summary of For Loops and While Loops

Part 1. Summary of For Loops and While Loops NAME EET 2259 Lab 5 Loops OBJECTIVES -Understand when to use a For Loop and when to use a While Loop. -Write LabVIEW programs using each kind of loop. -Write LabVIEW programs with one loop inside another.

More information

SPRITES Moving Two At the Same Using Game State

SPRITES Moving Two At the Same Using Game State If you recall our collision detection lesson, you ll likely remember that you couldn t move both sprites at the same time unless you hit a movement key for each at exactly the same time. Why was that?

More information

Expression Design Lab Exercises

Expression Design Lab Exercises Expression Design Lab Exercises Creating Images with Expression Design 2 Beaches Around the World (Part 1: Beaches Around the World Series) Information in this document, including URL and other Internet

More information

Old 257 Exam #2s for Practice

Old 257 Exam #2s for Practice Old Exam #2s 257/757 Exploring Programming with Graphics Page 1 Old 257 Exam #2s for Practice Exams will be taken on Thursday March 27 in the cluster. You will have the entire class time to do the exam.

More information

Solution Notes. COMP 151: Terms Test

Solution Notes. COMP 151: Terms Test Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Solution Notes COMP 151: Terms

More information

COMP : Practical 6 Buttons and First Script Instructions

COMP : Practical 6 Buttons and First Script Instructions COMP126-2006: Practical 6 Buttons and First Script Instructions In Flash, we are able to create movies. However, the Flash idea of movie is not quite the usual one. A normal movie is (technically) a series

More information

UDK Basics Textures and Material Setup

UDK Basics Textures and Material Setup UDK Basics Textures and Material Setup By Sarah Taylor http://sarahtaylor3d.weebly.com In UDK materials are comprised of nodes, some of which you may be familiar with, such as Diffuse, normal, specular

More information

Create and edit word processing. Pages.

Create and edit word processing. Pages. Create and edit word processing documents with Pages. In this chapter, we begin to get work done on the ipad by using Pages to create and format documents. Creating a New Document Styling and Formatting

More information

CISC 1600, Lab 2.3: Processing animation, objects, and arrays

CISC 1600, Lab 2.3: Processing animation, objects, and arrays CISC 1600, Lab 2.3: Processing animation, objects, and arrays Prof Michael Mandel 1 Getting set up For this lab, we will again be using Sketchpad. sketchpad.cc in your browser and log in. Go to http://cisc1600.

More information

User Manual. perfectionlearning.com/technical-support

User Manual. perfectionlearning.com/technical-support User Manual perfectionlearning.com/technical-support 1 User Manual Accessing Math X... 3 Login... 3 Forgotten Password... 3 Navigation Menu... 4 Logout... 4 Admin... 5 Creating Classes and Students...

More information

Outlook is easier to use than you might think; it also does a lot more than. Fundamental Features: How Did You Ever Do without Outlook?

Outlook is easier to use than you might think; it also does a lot more than. Fundamental Features: How Did You Ever Do without Outlook? 04 537598 Ch01.qxd 9/2/03 9:46 AM Page 11 Chapter 1 Fundamental Features: How Did You Ever Do without Outlook? In This Chapter Reading e-mail Answering e-mail Creating new e-mail Entering an appointment

More information