Initializing The HTML Our initial HTML calls upon the API (application programming interface) and sets up the body of the page for use. We can make improvements.

Slides:



Advertisements
Similar presentations
Microsoft ® Office Outlook ® 2007 Training Retrieve, back up, or share messages Sweetwater ISD presents:
Advertisements

Lecture 15.1 Static Methods and Variables. © 2006 Pearson Addison-Wesley. All rights reserved Static Methods In Java it is possible to declare.
Chapter 2: Using Objects Part 1. To learn about variables To understand the concepts of classes and objects To be able to call methods To learn about.
Variables Conditionals Loops The concept of Iteration Two types of loops: While For When do we use them? Iteration in the context of computer graphics.
Checkers: Setting the Board Checkers and chess use an 8 by 8 board. Each box on the board alternates colors with the box next to it. The designer may choose.
 By carefully incrementing the X and/or Y values of our set of lines, we can create a game board for a boat game.  Lines that go from left to right are.
Tic Tac Toe size(600,600); Aim: How can we set up our canvas and display for a Tic Tac Toe game? 1. Sketch the two drawings and write the two code.
Lecture Roger Sutton 21: Revision 1.
 Microsoft Publisher is an easy to use desktop publishing application. It is different from Microsoft Word in that the emphasis is placed on page layout.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
Week 9: Methods 1.  We have written lots of code so far  It has all been inside of the main() method  What about a big program?  The main() method.
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.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Logo Lesson 4 TBE Fall 2004 Farah Fisher. Prerequisites Create basic and complex shapes using Logo procedures Create Logo procedures that use variables.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
CS 201 Functions Debzani Deb.
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
Basic HTML All About Me - Your Name Information for display.
CIS101 Introduction to Computing Week 12 Spring 2004.
Proposal 13 HUMAN CENTRIC COMPUTING (COMP106) ASSIGNMENT 2.
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.
DIGITAL GRAPHICS & ANIMATION
Section 1.3 Prime numbers and fractions
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
CMSC 104, Version 8/061L18Functions1.ppt Functions, Part 1 of 4 Topics Using Predefined Functions Programmer-Defined Functions Using Input Parameters Function.
Creating a MagicInfo Pro Screen Template
HTML Basics What is HTML? Basic Tags Fonts Colors Pictures Links Lists Tables Frames Good Sites.
Decorate documents with backgrounds, borders, and text effects Add borders, shading, and styles Borders, shading, and decorative effects aren’t just for.
Using Coordinate Geometry to Create Moving Images In unit 29 we created a simple drawing for the background of a children’s game. We are going to start.
Welcome to the University of West Florida Online Employment System Applicant Tutorial.
Classes / Objects An introduction to object-oriented programming.
Karel J Robot An introduction to BlueJ and Object- Oriented Programming.
Locally Edited Animations We will need 3 files to help get us started at
Lehigh University Introduction to Flash MX Sharmeen Mecklai.
WEB DESIGN USING DREAMWEAVER. The World Wide Web –A Web site is a group of related files organized around a common topic –A Web page is a single file.
Iteration. Adding CDs to Vic Stack In many of the programs you write, you would like to have a CD on the stack before the program runs. To do this, you.
Game 1: Mr. Happy’s Quest For our original canvas, we had designed a child’s background using simple shapes. For this project, we will add objects that.
PHP meets MySQL.
Learn about the types of Graphics that are available Develop a basic Graphics applet Develop a basic Graphics application Review the Java API and use.
‘Tirgul’ # 7 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #7.
HOMEWORK REVIEW This is an if else statement layout if (condition) { code to be executed if condition is true; } else { code to be executed if condition.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Homogeneous Form, Introduction to 3-D Graphics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 20,
CS 320 Assignment 1 Rewriting the MISC Osystem class to support loading machine language programs at addresses other than 0 1.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
 HTML is hypertext markup language. It is a way for people to display their information with more complex pictures and text displays. Before HTML, messages.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
11 Working with Images Session Session Overview  Find out more about image manipulation and scaling when drawing using XNA  Start to implement.
Prezi is a flash-based presentation software and storytelling tool for exploring and sharing ideas upon a virtual canvas.presentation software storytelling.
Introduction to Processing. 2 What is processing? A simple programming environment that was created to make it easier to develop visually oriented applications.
Chapter 11: Block References and Attributes. After completing this Chapter, you will be able to use the following features: Create and insert block references.
Programming in Java CSCI-2220 Object Oriented Programming.
Chapter 3 Top-Down Design with Functions Part II J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
Lesson 3: Arrays and Loops. Arrays Arrays are like collections of variables Picture mailboxes all lined up in a row, or storage holes in a shelf – You.
Chapter 3 Functions. 2 Overview u 3.2 Using C++ functions  Passing arguments  Header files & libraries u Writing C++ functions  Prototype  Definition.
 Control Flow statements ◦ Selection statements ◦ Iteration statements ◦ Jump statements.
Moodle Quizes Staff Guide. Creating Quizzes Click Add an Activity or Resource With the course in editing mode...
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
HTML Frames. Advantages to Using Frames n flexibility in design n information in different Web pages n remove redundancy. n site easier to manage. n update.
CS 5JA Introduction to Java Graphics One of the powerful things about Java is that there is.
Methods Chapter 6. 2 Program Modules in Java What we call "functions" in C++ are called "___________________" in Java Purpose –Reuse code –Modularize.
Unit 5: Canvas Painter.
CMSC202 Computer Science II for Majors Lecture 08 – Overloaded Constructors Dr. Katherine Gibson Based on slides by Chris Marron at UMBC.
Wrapper Classes ints, doubles, and chars are known as primitive types, or built-in types. There are no methods associated with these types of variables.
How to Use Members Area of The Ninety-Nines Website
Chapter 7 Functions.
Completing the tasks for A452 with….
2009 Test Key.
Presentation transcript:

Initializing The HTML Our initial HTML calls upon the API (application programming interface) and sets up the body of the page for use. We can make improvements as we go to show our unique, professional approach. It is a good idea to gather this text from previous versions rather than type it again from the beginning.

Using Lines to Create Block Letters The line command follows the following syntax: line(x1, y1, x2, y2) We plot the X and Y of the start point and the X and Y of the end point. Lines can be a very powerful graphic command with practice.

Draw the graphic and plan your initials on it:

Practice 1 Novice - Submit file, even if it is wrong, partial credit may be awarded Apprentice – Student initials appear on screen Practitioner – Improved initial aesthetics with colors and thickness Professional – Decorate initials using an original, unique approach

Aim: Create an individualized graphic with initials to use as a signature on future work 1.Write technical directions in journal and/or participate in full class discussion. 2.Take online quiz based on information given. 3.Implement directions using HTML and JavaScript on the. 4.Push for professional level achievement. 5.Hand in work (even if unfinished).

Define our Function Instead of having our initials always appear in the same place, we can make their location offset by an X and Y variable. For example, line(100,100,200,100) line(x+100,y+100,x+200,y+100) Set up the function with void initials(int x, int y){ } then, put all the initial graphics command in the function with x and y Offsets.

Call Our Function When the initial function is defined correctly, we can now call it multiple times and put it on the screen in different places. We can even use a loop to have it appear many different places on the screen. Try setting up a for loop with the random() function to have the initials appear all over the screen.

The Power Of Function Calls To have the letters appear and update as they are calculated, use a stroke() function call and call the initial() function with random() placement of the X and Y for a cool graphic effect. We can now use our function to be called many times or to be used in a simple way to act as a signature on future graphic designs.

Practice 2 Novice - Submit file, even if it is wrong, partial credit may be awarded Apprentice – Student creates and calls function that shows initials at X, Y Practitioner – Improved aesthetics with screen showing colors all over the canvas Professional – The canvas displays with a unique work of moving art that uses the function

Aim: Use Function Definition and Function Calls to Create Multiple instances of Initials 1.Write technical directions in journal and/or participate in full class discussion. 2.Take online quiz based on information given. 3.Implement directions using HTML and JavaScript on the. 4.Push for professional level achievement. 5.Hand in work (even if unfinished).

Update initial() with size We will use the size as a percent of the initial constant. That means if we use 50 in our function call, the letter will be half the original size. If we use 200 it will be double. Divide the size/100 then use size to offset each of the line values by multiplying it to the constant. Look at the example, but remember, your numbers are different based on your initials.

Call the Function with size Call the initial to just show up like this: initial(0,0,100); Have the function appear randomly on screen: initial(random(-200,screen.width), random(-200,screen.height),100); Random location and random size: initial(random(-200,screen.width), random(-200,screen.height),random(1,100));

Adjusting the Screen One neat programming trick is to adjust our canvas sized based on the screen size. Declare your screen size with: size(screen.width,screen.height); The user will then have the graphic take up the whole screen. Press f11 to place the browser in full screen mode.

Practice 3 Novice - Submit file, even if it is wrong, partial credit may be awarded Apprentice – Student creates and calls function that shows initials at X, Y Practitioner – Improved aesthetics with screen showing colors all over the canvas Professional – The canvas displays with a unique work of moving art that uses the function

Aim: Improve our function with a size parameter Novice - Submit file, even if it is wrong, partial credit may be awarded Apprentice – The length of the lines for the letters adjust with a size variable Practitioner – The size consistently scales when changed for the letters Professional – A unique, professional level with researched additional strategies

Spirit Animal Plan

Built in Graphics Apprentice level students will use line() and ellipse() and stroke() and fill() and strokWeight(). More advanced students have already realized that there is an entire library of built in graphics to use. Students may choose to create a work of art with the drawing they know or they may choose to search for the processing.js library and use what is found.

Scaling and Placement The example shows us how to make a shape change to a certain percent of its original form. If we call the function with a size of 50 the shape will be half as big. If we call it with 200 it will be twice as big. If we loop placement with a random(1,400) we can get lots of different sized spirit animals to decorate our screen. Use a size offset to enable control of how big our animal is.

Practice 4 Novice - Submit file, even if it is wrong, partial credit may be awarded Apprentice – Student creates and calls function that displays a spirit animal Practitioner – The spirit animal function can be called with options on size and placement. Professional – The canvas displays with a unique work of moving art that uses the function

Aim: Create a function to call a spirit animal 1.Write technical directions in journal and/or participate in full class discussion. 2.Take online quiz based on information given. 3.Implement directions using HTML and JavaScript on the. 4.Push for professional level achievement. 5.Hand in work (even if unfinished).

Professional Signature Our initials can be used as our professional signature for future projects. Be certain that the graphic placed is unique and expresses who you are as a programmer. If done correctly, we can use this as an example to show potential employers and colleges our ability. At the least, there should be two initials that can be called to different places and different sizes.

Professional Spirit Animal Inside each of us is an intangible quality that is hard to express. Some of us will relate to a particular animal readily (such as the tiger!) Others may struggle to find any personal association with an animal. Either way, use simple shapes to create a basic drawing of an animal on the screen. Plan out what you want to do in your journal before creating.

Functional Page Be sure to submit the page. The page may have multiple canvases or just one. The initials should be clearly displayed and called with a function in multiple places and sizes. The spirit animal should be clearly displayed and called with a function in multiple places and sizes.

Page Aesthetics If the page looks unprofessional no one will take the time to look any deeper. This isn’t fair, but it is reality. If some one is considering us amongst other applicants and their page looks sharp while ours looks sloppy, they will probably get chosen before us. We should not judge a book by its cover. However, we should realize, that many books do in fact get judged by their cover.