1 Taif University Faculty Of Computers And Information Technology TA. Kholood Alharthi & TA. Maha Thafar First Semester 1433 -1434 AH.

Slides:



Advertisements
Similar presentations
2D Graphics Drawing Things. Graphics In your GUI, you might want to draw graphics E.g. draw lines, circles, shapes, draw strings etc The Graphics class.
Advertisements

Introduction to Programming
Processing Lecture. 1 What is processing?
Emerging Platform#5: Processing 2 B. Ramamurthy 6/13/2014B. Ramamurthy, CS6511.
MMDE5011 – INTERACTIVE MEDIA PRACTICE 1 WEEK 1: INTRODUCTION TO HTML5
Mission Technology Introduction to Scratch! June 2007.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Processing Processing is a simple programming environment that was created to make it easier to develop visually oriented applications with an emphasis.
DSA Processing. Links Processing.org My Processing page Ben Fry Ben Fry’s Thesis on Computational Information DesignThesis Casey Reas siteCasey Reas Casey.
SCA Introduction to Multimedia
Macromedia Flash 5 Advanced Level Course. Using Actions Toolbox ListActions List Parameters area Add/Delete a StatementMove Action Up/Down Expand/Collapse.
Multimedia Authoring Tools Pertemuan 8 Matakuliah: T0732 / Sistem Multimedia Tahun: 2007.
Sketchify Tutorial Graphics and Animation in Sketchify sketchify.sf.net Željko Obrenović
Lecture 3 IAT 800. Sept 15, Fall 2006IAT 8002 Suggestions on learning to program  Spend a lot of time fiddling around with code –Programming is something.
1 Flash and Animation Presented by : Behzad Sajed Khosrowshahi.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Multimedia Authoring Tools Pertemuan 15&16 Matakuliah: O Computer / Multimedia Tahun: Feb
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Chapter 5 - Making Music: An On-Screen Piano
Computer for Health Sciences
G RAPHICS & I NTERACTIVE P ROGRAMMING Lecture 1 Introduction to Processing.
Review Blocks of code {.. A bunch of ‘statements’; } Structured programming Learning Processing: Slides by Don Smith 1.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
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 Scratch!
11.10 Human Computer Interface www. ICT-Teacher.com.
1 k Jarek Rossignac,  2008 Processing  Install Processing  Learn how to edit, run, save, export, post programs  Understand.
CMPD 434 MULTIMEDIA AUTHORING Chapter 06 Multimedia Authoring Process IV.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
MULTIMEDIA DEFINITION OF MULTIMEDIA
CHAPTER TEN AUTHORING.
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,
______________________________________________________________________________________ SCHOOL OF INTERACTIVE ARTS + TECHNOLOGY [SIAT] |
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 2 Graphics Programming with C++ and the Dark GDK Library Starting.
Graphic User Interface. Graphic User Interface (GUI) Most of us interact with computers using GUIs. GUIs are visual representations of the actions you.
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.
MULTIMEDIA Hardware 4/24/2017.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
Marketing Development Block 4 Dr. Uma Kanjilal. Stages of a Multimedia Project  Planning and costing- infrastructure, time, skills etc.  Designing and.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
CIS 3.5 Lecture 2.2 More programming with "Processing"
Adobe Photoshop CS5 – Illustrated Unit A: Getting Started with Photoshop CS5.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
Introduction to Interactive Media Interactive Media Tools: Authoring Applications.
Reading Flash. Training target: Read the following reading materials and use the reading skills mentioned in the passages above. You may also choose some.
G RAPHICS & I NTERACTIVE P ROGRAMMING Lecture 2 More Programming with Processing.
Welcome to Processing Who does not have access to digital camera?
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.
PyGame - Unit 1 PyGame Unit – – Introduction to PyGame.
Adobe Photoshop CS4 – Illustrated Unit A: Getting Started with Photoshop CS4.
Introduction to PowerPoint 2003 Professional Development Training for Classroom Teachers.
Lesson 1 – Getting Started with App Inventor
Photoshop CS6 – Nelson Unit 3: Photoshop CS6. Objectives Define photo editing software Start Photoshop and view the workspace Use the Zoom tool and the.
Introduction to Processing David Meredith Aalborg University Art &Technology, 3rd Semester Programming.
Getting Started with Adobe Photoshop CS6
David Meredith Aalborg University
Pixels, Colors and Shapes
Chapter 5 Working with Images
Multimedia Authoring Tools
Chapter 2 Graphics Programming with C++ and the Dark GDK Library
More programming with "Processing"
Game Loop Update & Draw.
Lecture 7: Introduction to Processing
University of Warith AL-Anbiya’a
University of Warith AL-Anbiya’a
Presentation transcript:

1 Taif University Faculty Of Computers And Information Technology TA. Kholood Alharthi & TA. Maha Thafar First Semester AH

2 In this Lecture:  Introduction To Multimedia:  The term ‘Multimedia’.  Media Components.  Multimedia Systems.  Multimedia Applications.  The tools to create Multimedia Applications.  Getting Started With Processing:  What is Processing?  Processing Output.  The Processing Development Environment.  First Processing Sketch.  References.

3 Composed of 2 parts: 1)Multi - many; much; multiple 2)Media (medium): “middle, center ”  Means for distribution and presentation of information  Classification based on perception (text, audio, video,….etc) is appropriate for defining multimedia.

4 Can be categorized based on a few criteria :  Perception media  Representation media  Presentation media  Storage media  Transmission media

5  Any computer based presentation or application that integrates different forms of media together  Multimedia can be further classified as  Interactive  Non-interactive  Time always takes separate dimension in the media representation Based on time-dimension in the representation space, media can be  Time-independent (Discrete) e.g. Text, Graphics  Time dependent (Continuous) e.g. Audio, Video

6 multimedia defined as the usage of multiple agents, this agents (components) as the following:  Text.  Graphics.  Audio.  Animations.  Video.  Links.  Virtual Reality (VR ).

7

8 Multimedia plays major role in following areas:  Business  Training materials  Presentations  Customer support services  Virtual Shopping  Entertainment  Interactive Games  Enabling Technology  Websites  Training/Teaching/ Learning

9

10 I.Hardware:  Graphics card  Scanner  Digital Camera  Keyboard  Mouse  Sound Card:  Voice Reader  Loudspeaker  Storage tools with large Capacity:  CD-ROM  DVD

11 II.Software: A software which can include:  Text  Sound  Animation  Graphics  Video images/clips There are 2 types of tools that can be used to create multimedia applications:  Authoring tools: are generally quicker to learn and can be used by non- programmers but may have limited flexibility, for example macromedia flash  Programming tools: are more difficult to use and require good programming knowledge but can be much more flexible, for example HTML programming language, Processing programming language.

12  Open Source Programming Language.  Integrated Development Environment(IDE).  Java-like  Processing is based on Java but the conceptual model (how programs work, how interfaces are built, and how files are handled) is somewhat different from Java.  “sketch” ideas in code.  for people who want to create images, animations, and interactions.  Today, there are 10,000 of students, artists, designers, researchers, and hobbyists who use Processing for learning, prototyping, and production.  Originally developed at the MIT Media Lab, developed into a tool for creating finished professional work as well (electronic arts and visual design).

13  Graphics application.  Live video Application.  Mobile Application.  Visual Designs.  Electronic arts.  Animation.

17  A Processing program is called a sketch.  Sketches are stored in the sketchbook, a folder that's used as the default location for saving all of your projects in.pde format.

18 TASK ICON Run Stop New Open Save Export

19 Hello world The Processing equivalent of a "Hello World" program is simply to draw a line: line(15, 25, 70, 90); Hello mouse A program written as a list of statements (like the previous examples) is called a static sketch. In a static sketch, a series of functions are used to perform tasks or create a single image without any animation or interaction. Interactive programs are drawn as a series of frames, which you can create by adding functions titled setup() and draw() as shown in the code below. These are built-in functions that are called automatically.

20 This program creates a window that is 480 pixels wide and 120 pixels high, and then starts drawing white circles at the position of the mouse. When the mouse button is pressed, the circle color changes to black. We’ll explain more about elements of this program in detail later. For now, run the code, move the mouse, and click to experience it.

21 setup() The setup() function is called once when the program starts. It's used to define initial environment properties such as screen size and background color and to load media such as images and fonts as the program starts. There can only be one setup() function for each program and it shouldn't be called again after its initial execution. Note: Variables declared within setup() are not accessible within other functions, including draw(). Returns: void. size() Defines the dimension of the display window in units of pixels. The size() function must be the first line of code, or the first code inside setup(). Any code that appears before the size() command may run more than once, which can lead to confusing results. The system variables width and height are set by the parameters passed to this function. If size() is not used, the window will be given a default size of 100x100 pixels. The size() function can only be used once inside a sketch, and it cannot be used for resizing. Syntax: size(w, h) size(w, h, renderer) Parameters: w int: width of the display window in units of pixels h int: height of the display window in units of pixels renderer: String: Either P2D, P3D, or PDF Returns: void

22 draw() Called directly after setup(), the draw() function continuously executes the lines of code contained inside its block until the program is stopped or noLoop() is called. It should always be controlled with noLoop(), redraw() and loop(). After noLoop() stops the code in draw() from executing, redraw() causes the code inside draw() to execute once, and loop() will cause the code inside draw() to resume executing continuously. The number of times draw() executes in each second may be controlled with the frameRate() function. There can only be one draw() function for each sketch, and draw() must exist if you want the code to run continuously, or to process events such as mousePressed().

23 ellipse() Draws an ellipse (oval) to the screen. An ellipse with equal width and height is a circle. By default, the first two parameters set the location, and the third and fourth parameters set the shape's width and height. The origin may be changed with the ellipseMode() function. Syntax: ellipes(a, b, c, d) Parameters: a float: x – coordinates of the ellipse. b float: y – coordinates of the ellipse. c float: width of the ellipse by default. d float: height of the ellipse by default. Returns: void

fill() Sets the color used to fill shapes. For example, if you run fill(204, 102, 0), all subsequent shapes will be filled with orange. This color is either specified in terms of the RGB or HSB color depending on the current colorMode(). (The default color space is RGB, with each value in the range from 0 to 255.) When using hexadecimal notation to specify a color, use "#" or "0x" before the values (e.g., #CCFFAA or 0xFFCCFFAA). The value for the "gray" parameter must be less than or equal to the current maximum value as specified by colorMode(). The default maximum value is Syntax: fill(rgb), fill(rgb, alpha), fill(gray), fill(gray, alpha) fill(v1,v2,v3), fill(v1,v2,v3,alpha) Parameters: rgb int: color variable or hex value. alpha float: opacity of the fill - gray float: number specifying value between white & black. v1 float: red or hue value - v2 float: green or saturation value v3 float: blue or brightness value (v1,v2,v3  depending on current color mode). Returns: void

25 Write a program that draw a bigger circle every time the user press the mouse ?

26 WebSites:  The Homepage of Processing Programming Language:  The Exercises webpage:  Videos for learning creative programming about Processing:  Read more in Wikipedia:

Learn computer programming the easy way with Processing, a simple language that lets you use code to create drawings, animation, and interactive graphics. Programming courses usually start with theory, but this book lets you jump right into creative and fun projects. It's ideal for anyone who wants to learn basic programming, and serves as a simple introduction to graphics for people with some programming skills. Written by the founders of Processing, this book takes you through the learning process one step at a time to help you grasp core programming concepts. You'll learn how to sketch with code,creating a program with one a line of code, observing the result, and then adding to it. Quickly learn programming basics, from variables to objects Understand the fundamentals of computer graphics Get acquainted with the Processing software development environment Create interactive graphics with easy-to-follow projects Use the Arduino open source prototyping platform to control your Processing graphics Getting Started with Processing Casey Reas and Ben Fry. Book27