Chapter 15, Images …a few points

Slides:



Advertisements
Similar presentations
Scanning Directly to the Flash Drive To Scan Photos To Scan Photos Open scanner lid Open scanner lid Put pictures on scanner bed face down Put pictures.
Advertisements

Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
A Quick Introduction to Processing
Images. PImage class PImage is a class for loading and displaying an image in Processing. Declare a PImage type: PImage img; Make a new instance by loading.
Graphics. Image format's GIF Format: Use a maximum of 256 colors, and are recommendable for big areas of one color or non- continuous images. They are.
Processing Processing is a simple programming environment that was created to make it easier to develop visually oriented applications with an emphasis.
Pivot Animation Tutorial. Tutorial links: Startup Moving your figure Adding new frames Playback Adding a figure Edit figure Load new figures Creating.
CSE 113 Week 5 February , Announcements  Module 2 due 2/15  Exam 3 is on 2/15  Module 3 due 2/22  Exam 4 is on 2/25  Module 4 due 2/29.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
Guide to Programming with Python
Tutorial 3: Working with Images. Objectives Session 3.1 – Identify the differences among image file types – Evaluate the purpose of alternative text –
BFTAW BDPA Workshop Introduction to GIMP Chris
BFTAW BDPA Workshop Introduction to GIMP Chris
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
Introduction to Processing CS 4390/5390 Fall 2014 Shirley Moore, Instructor September 3,
11 Creating an Ancestor Book (A Multi-Generation Photographic History) Frank Comprelli SIR Area 2 Computer and Technology Group September 17, 2009.
Laboratory Exercise # 9 – Inserting Graphics to Documents Office Productivity Tools 1 Laboratory Exercise # 9 Inserting Graphics to Documents Objectives:
PImage. Let’s look at the PImage class in ProcessingPImage –What are the fields (i.e., variables)? –What methods are available? –What about the constructor---how.
Processing can load images, display them on the screen, and change their size, position, opacity, and tint. You can load gif, png and jpg images in processing.
PowerPoint Basics Tutorial 3: Graphics In this tutorial we’ll be looking at graphics, and the various types of illustrations that can be included in a.
Adding Images. XHTML Element ElementAttributeAttribute Value Closing tag AttributeAttribute Value The src attribute supplies the name and location of.
Getting Started with Fireworks A few tips: –Before you begin an assignment, be sure to create a folder on your drive for it. –If your canvas is checkered,
Using MS Photo Editor. Crop an image Click Select on the Standard toolbar, and then drag over the area of the image you want to keep. On the Image menu,
Images. Digital Images Rectangular arrays of pixel data Pixel - picture element, smallest addressable part of the frame buffer. Color depth - the depth.
Paper 3 Unit 15 – Web Authoring Software Choices Graphics Exporting Graphics Creating CSS RGB Colour CSS – Body, Table and TD Border Collapse Tables -
1 Layer up to keep warm… A short tutorial on the usage of layers.
SRAM LOGO resize instructions To facilitate the use of SRAM logo for different size, i have designed the logo in *.png format (which is a format employed.
Processing TYWu. Where can I download? 2.0b9 Windows 32-bit.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
 Pictures  Page backgrounds  Element backgrounds (list items!)  Link displays (arrows)  List markers.
Quicke 3D CSP 301 Maniraj Singh (2004CH10071) Akhil Handa (2004CH10054)
Editing images using Microsoft Photo Editor and Paint
Hitting the Refresh Button
Android Application 2D Graphics cs.
David Meredith Aalborg University
Some of Chap 17.
Images.
Pixels, Colors and Shapes
Images.
“ – Attribution (Difficult) Animated snow scene
With Microsoft FrontPage 2000
Chapter 3 Graphics and Image Data Representations
Lesson One: The Beginning Chapter 1: Pixels Learning Processing Daniel Shiffman Presentation by Donald W. Smith Graphics from
Gimp Guide Mr Hall.
Images and Backgrounds
: Animated text countdown (Advanced)
Basic Graphics Drawing Shapes 1.
Colors.
“Placeholder for a quote to be animated here.”
Representing Images 2.6 – Data Representation.
“It is only those who never do anything who never make mistakes.”
Course Name Course Number Section Term – Instructor Name
Images.
Images.
iLEAD Academy Snow Day Expectations
… a white peppermint world as far as the eye could see…
DIRECTIONS: 1. Click Enable Editing in the yellow bar above.
Topic one text label Topic two text label Topic three text label
Animated picture collection: left picture moves to front center
ALASKA How did the U.S. acquire Alaska?
Images.
Chapter 15, Images …a few points
The work of moving ice Chapter 8 Animated snow scene (Difficult)
Programming for Art: Images
2.01 Understand Digital Raster Graphics
Course Name Course Number Section Term – Instructor Name
Chapter 15, Images …a few points
Binary CSCE 101.
Chapter 7 The Game Loop and Animation
Presentation transcript:

Chapter 15, Images …a few points

Getting Started PImage is a class for loading and displaying an image. 4 steps to draw an image to the screen. Add file to data folder Create the PImage variable Load the image into the variable with loadImage() Draw the image image() function

Activity Practice Example 15-1. Use image of your own. To get the image: Drag file into Processing window, or Click SKETCH>Add file, or Create the data folder and add file manually. Practice Example 15-1. Use image of your own. Next, control the height & width with the mouse. Other considerations The files accepted are GIF, JPG, PNG & TGA Spaces are OK, but the file name is case sensitive.

Resizing an Image Problem: Using a 4th & 5th parameter to resize an image does not work consistently. e.g. image(img, 0, 0, width/2, height/2) Solution: There is a consistency issue with how images are rendered when sized that way. Ideally, should resize in image editor. A workaround is to calculate by using image dimensions. e.g. image(img, 0, 0, 240/2, 190/2) The proper function is with resize(). https://processing.org/reference/PImage_resize_.html

Animate Use translate and rotate to animate an image Increment or decrement. Remember that rotate is measured in radians Change mode if desired: rectMode(CENTER)

Another Practice Exercise Open your Example 15-2 and let’s examine code. Use your own picture from www.pngimg.com or www.freepngimg.com For a remix, add JPG picture as background() Use a for() loop to repeat a PNG picture across width of the screen.

All About Tinting Tint is similar to fill(), setting the color and alpha transparency. Functions are tint() and noTint() Example: tint(0, 255, 0, 127) will give green tint with 50% opacity You can also use hexadecimal colors, e.g. tint(#FF0000, 50) will be a red tint, with near complete transparency.

Syntax of Tint and Alpha About Alpha Alpha is from 0-255, where: 0 is completely transparent 255 is completely opaque 3 values: tint(r, g, b) 4 values: tint(r, g, b, alpha) 1 values: tint(brightness) 2 values: tint(brightness, alpha) Tint

First Example Original tint(255, 100); That is… Shows rainbow row behind waterfront pineapple. That is… white for NO color change, and 100 for partial transparency

Another Example: tint(255, 0, 0); Or tint(#FF0000); Shows a red tint with no transparency

Another Example: background(0); tint(0,200,255 ); background(0); …blue/green with no transparency background(0); tint(0,200,255,50); …blue/green with high transparency against black background.