Chap 17 Section 3.

Slides:



Advertisements
Similar presentations
Unions The storage referenced by a union variable can hold data of different types subject to the restriction that at any one time, the storage holds data.
Advertisements

Text David Meredith Aalborg University.
VBA for MS Excel Hamze Msheik. Open the Visual Basic Editor in Excel 2007 Click on the Microsoft Office button in the top left of the Excel window and.
IAT 334 Lab 2 Computer Graphics: Rocket, PImage. June 4, 2010IAT 3342 Outline  Programming concepts –Programming Computer Graphics –Transformations –Methods.
Manipulating Strings.
Variables and Functions. Open your Encoder program Let’s begin by opening the “Labyrinth Auto Straight” code. Save this file as Labyrinth with variables.
Structure of a C program Preprocessor directive (header file) Program statement } Preprocessor directive Global variable declaration Comments Local variable.
Computer Tips to Help Your Child. How to use the computer correctly! It is important that we follow all rules when using the computer. If you ever have.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
® IBM Software Group © 2006 IBM Corporation JSF File Upload Control This Learning Module describes the use of the JSF File Upload component – for allowing.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 More details and explanation …
Test 2 Review. General Info. All tests are comprehensive. You are still responsible for the material covered prior to the first exam. You will be tested.
Words. Characters and Strings Character –A single character inside of single quotes char letter = 'A' ; char digit = '0' ; – Strings Zero or more character.
Pointers in C++. Topics Covered  Introduction to Pointers  Pointers and arrays  Character Pointers, Arrays and Strings  Examples.
IAT 265 Images in Processing PImage. Jun 27, 2014IAT 2652 Outline  Programming concepts –Classes –PImage –PFont.
IAT 800 Lecture 8 PImage and PFont. Oct 13, Fall 2009IAT 8002 Outline  Programming concepts –PImage –PFont.
C LANGUAGE UNIT 3. UNIT 3 Arrays Arrays – The concept of array – Defining arrays – Initializing arrays.
1 Displaying Dialog Boxes Kashef Mughal. 2 Midterm Stats Here we go  Average was  Low was 116  High was 184  Mid Quarter Grade - check any.
Lecture 5 array declaration and instantiation array reference
ARRAYS (Extra slides) Arrays are objects that help us organize large amounts of information.
CSC 211 Java I for loops and arrays.
Tutorial 1 – Creating a Document
Some of Chap 17.
Computer Graphics: Rocket, Java: Class
(Numerical Arrays of Multiple Dimensions)
IAT 265 PImage and PFont.
Information Technology
Chapter 3: Variables, Functions, Math, and Strings
Chapter 3: Variables, Functions, Math, and Strings
Shell Scripting March 1st, 2004 Class Meeting 7.
Graphical Output Graphical Text.
Access Tutorial 4 Creating Forms and Reports
Learning Objectives Pointers Pointer in function call
L7 – Assembler Directives
Chapter 9 Arrays.
OUTPUT STATEMENTS GC 201.
Time Manager Class Activity Material Manager Writer leader Communicator Programmer Start a journey from the capital AbuDhabi to Alasmaa School using your.
Microsoft Visual Basic 2005 BASICS
Code Elements and Processing Coordinate System
3.01E Adding and Animating Text into Computer Animations
Chapter 6 - Arrays Outline 6.1 Introduction 6.2 Arrays
C Stuff CS 2308.
Chapter 9 Arrays.
Chapter 9 - Arrays Outline 6.1 Introduction 6.2 Arrays
Introduction to SAS A SAS program is a list of SAS statements executed in order Every SAS statement ends with a semicolon! SAS statements can be in caps.
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
Plotting Multiple Graphs In The Same Plot
Code Elements and Processing Coordinate System
Arrays.
Announcements How’s it going? My internet/power supply?
Beyond SignWriting Plain Text
Pointers The C programming language gives us the ability to directly manipulate the contents of memory addresses via pointers. Unfortunately, this power.
Strings Dr. Soha S. Zaghloul updated by Rasha ALEidan
Variables Kevin Harville.
CS150 Introduction to Computer Science 1
Variables and Inheritance Part 1
CISC181 Introduction to Computer Science Dr
Strings and Pointer Arrays
Pointers The C programming language gives us the ability to directly manipulate the contents of memory addresses via pointers. Unfortunately, this power.
Arrays Arrays A few types Structures of related data items
Variables Here we go.
Variables and Computer Memory
Character Arrays char string1[] = “first”;
Java: Variables, Input and Arrays
Strings …again.
Variables and Operators
STRINGS BY: DANIEL, JUSTIN, PANI.
CSCE 206 Lab Structured Programming in C
4.4 – List vs Array Exercise 4.1: Array Variables
Structures, Unions, and Enumerations
Presentation transcript:

Chap 17 Section 3

Sections 1 & 2 Strings! Not altogether new You’ve been using in cases such as: println(“Hello World”; pImage img = loadImage(“filename.png”); String is a built-in class that stores array of char[]. Therefore, it is a list of characters.

Sect. 3: Displaying Text There are 5 steps. The first 3 steps are optional. More Info: loadFont() helps to insure the font is available if viewed on another computer. To see the spelling of fonts on your computer create list with printArray(PFont.list()); 1. Declare an object of type PFont The PFont stores font data. PFont f; 2. Specify a font by referencing its name f = createFont("Helvetica", 16); It takes two arguments: the name and size. You can still adjust size later, but it’s best to start out with a size. 3. Specify the font textFont() This function is used to define the current font to display. It takes two arguments, the font variable and text size. 4. Specify a color The fill() function colors the font. 5 Call the text() function The text() function has 3 arguments: The text to be displayed, the x and y coordinates.

Sections 1 & 2 See or do Example 17.1 Be sure to remix Let’s do Exercise 17-5