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.

Slides:



Advertisements
Similar presentations
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Advertisements

Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
Introduction to CSS.
 Each student has a file in their folder that will help guide the project. The file contains a rubric that explains how it will be graded. The project.
Digital Images © Copyright William Rowan Objective By the end of this you will be able to: Capture images using a range of media (i.e. Cameras,
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.
Build Your Teacher Web Page
Introduction to Animation Programming Our next set of exercises will look at animation on the following link:
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.
13 February Building a Web Page. HTML Files Two types of information Text Instructions on how to display Instructions are in the form of tags Tags are.
HTML Lesson 2 TBE 540 Farah Fisher. Prerequisites Access web pages and navigate Use search engines to locate specific information Download graphics from.
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.
Verbatim 5.0 Word 2010 David Williams Newton High School
ABC’s of PowerPoint (Office 2007) Part 1: Basic Vocabulary Part 2: Cursors Part 3: Insert Your Text Part 4: Insert Your Pictures Part 5: Basic Tools &
HTML Lesson 5 TBE 540. Prerequisites The user must be able to… –Create basic web pages with a text editor and/or a web page editor.
Using HTML to Create Tables in Web pages Connie Lindsey November 2005.
 As you complete the assignment, go in order as the earlier bulleted parts provide an easier opportunity for points than the later.  This project is.
Designing a Classroom Web Site Using NVU Beginning Level.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
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.
SimCity: Getting Started The simulation software is located on the computer’s hard drive. To start the program, click on the windows key, all programs,
CS105 Introduction to Computer Concepts HTML
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Creating Web Pages with Links, Images, and Formatted Text.
HTML Comprehensive Concepts and Techniques Third Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
Hello! Keep watching … I’ll show you how to use a mouse.
HTML (HyperText Markup Language)
Online News Graphics and Flash. Why use graphics 1. Attract attention Large pictures attract attention better than small ones Suitable for covers in print,
Locally Edited Animations We will need 3 files to help get us started at
Important Information This presentation was created by Patrick Crispen. You are free to reuse this presentation provided that you –Not make any money from.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
Enhancing Your Web Site—Adding Links Web Page **YOU MUST HAVE COMPLETED THE 1ST 3 WEB PAGES BEFORE YOU CAN DO THIS ONE. **YOU SHOULD HAVE COMPLETED THE.
 Komodo Edit Project › Helping you find your folder  Laptop › Delete what you don’t need › Keep class “doodles” in a single “sandbox” folder  Isis.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
> 1 Diagrams in Word Faculty of Health Alan Grace.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
HTML: Hyptertext Markup Language Doman’s Sections.
 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.
By Shannon Nicholson. Attachments are basically something you can attach to an you send to a person or a group of people. It is a file, basically.
Screen Shot Tutorial by Jan Personette How to copy your beautiful snowflakes after they fall from the sky.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
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.
HTML GUIDE Press F5 and then Click on the links on the left to get to the section you want Section 1: Getting Started Section 2: Moving Banner Section.
Introduction to Image Processing Our first look at image processing will be through the use of Paint Shop Pro, a bitmap editing program available as shareware.
Dawn Pedersen Art Institute. What Are CSS Sprites? Back in the day, sprites were the images in games that swapped one little image for another in a specific.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Drawing pictures … It’s not art, it’s fun.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
Step One: Introduction. Welcome to Follow My Clients! Once you log in, on the home page is your dash board. Here you will find your quick access buttons.
Links and Images. Links HTML uses a hyperlink to link to another document on the Web A hyperlink can be either text or a picture Links are created with.
HTML HyperText Markup Language Victoria E. Kozlek.
screen shots Emma Jarman. Adding attachments What is an attachment? An attachment is an that has a file attached to it. The file could be.
WEB GRAPHICS EXPLORING COMPUTER SCIENCE - LESSON 3-4.
HTML HTML stands for Hyper Text Markup Language. HTML is used in making the base of a Website You can just use an online website maker like weebly.com.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Distribution Statement A: Unlimited Distribution Introduction to Microsoft PPT.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
Colors.
How to Create a PBWorks Site
HTML Extras.
Training & Development
HOW TO MAKE PAGES FOR A WEB SITE
Directions are in slide notes. You can view them in two ways
Presentation transcript:

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. We tell the computer the X value. This is how far from the left of the screen the shape goes. We tell the computer the Y value. This is how far from the top of the screen the shape goes. The X and Y together decide where the shape appears on the screen.

Making shapes The link below will enable us to practice making some shapes: code/hour-of-code-tutorial/p/challenge-h-for- hopper code/hour-of-code-tutorial/p/challenge-h-for- hopper

var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.rect(20,20,150,100); ctx.stroke(); var c=document.getElementById("myCanvas2"); var ctx=c.getContext("2d"); ctx.rect(50,20,150,100); ctx.fillStyle="red"; ctx.fill();

Practice 1, 20% Have the “H” show up on your page using code derived from the exercise and implemented using the example code on slide Make the page look professional with explanations, proper format, coloring etc.

Review Introduction to Shape Programming Making Shapes Code Example Practice 1

Challenge: Crazy Face Our new challenge will be to use shapes to make a face at: code/hour-of-code-tutorial/p/challenge- crazy-face

Crazy Face Shapes The crazy face challenge uses math to create ellipses. The first two numbers determine the position based on an X and Y coordinate system. The third number decides how wide the ellipse will be. The last number decides how tall it will be. By making small changes to the numbers, a person can make big changes to their picture!

Use the screen shot trick to get a picture of your ellipses. To do this: 1.Press the print screen button on the page with the code and face 2.Past the image in pbrush. 3.Resize to get rid of extra stuff. 4.Save the file with a simple name 5.Use the img tag on your.htm file. Placing the Smile on Our Page

Practice 2, 20% Have the “Crazy Face” show up on your page using code derived from the exercise and implemented using the example code on slide. Make the page look professional with well written paragraph explaining how you used ellipses to make a face and why your face is awesome.

Review Challenge: Crazy Face Crazy Face Shapes Placing the Smile on Our Page Practice 2, 20%

Background() There are three main colors that pixels on a computer will display. Red, green and blue. When we designate the colors it goes in that order red, green blue. This is referred to as RGB coloring. The number is from 0 to 255. To get solid red background, the function will be called as background(255, 0, 0).

Stroke() and noStroke() stroke(0, 255, 0) will set the lines of shapes in to be drawn in green because the 255 is on the G part of the RGB. A command of stroke(0, 0, 255) will have shapes then created with lines of solid blue. If you want the shape to have invisible lines, then use the noStroke() command.

Fill() Fill() sets a color that will be on the inside of an entire shape. It follows the same RGB rules used by the other functions. To make a shape filled in all white, try fill(255,255,255). This will put the screen’s pixels on their maximum intensity. fill(0,0,0) will make them black.

Practice 3, 20% code/hour-of-code-tutorial/p/challenge-its- a-beautiful-day code/hour-of-code-tutorial/p/challenge-its- a-beautiful-day

 Background()  Stroke and noStroke()  Fill()  Practice 3

Greeting Card A greeting card can be created to send to some one for a holiday, a birthday or just for any regular day at all. Try the following web site to create your own greeting card: code-tutorial/p/project-greeting-card

 As a programmer, you don’t have to remember every command that you have ever studied. You will notice that if you scroll down on the online software for the greeting card, all of the functions we have covered, and a lot more, are shown there. Click on anything that you need a review for so you can use them.

Placing the project on the web page Instead of recreating the actual code on our page, we will take a screen shot of the code and the greeting card. Use the paint software to create an image of the card its self and the code. Place the pictures in an aesthetically pleasing way.

 Use the online software at the Khan university to create the greeting card and edit the image so that two files are generated showing your code and your card.  Write a paragraph describing your approach to making the perfect greeting card.

 Greeting Card  Using the Documentation  Placing the project on the web page  Practice 4

Project Rubric (10% each) 1: "H" shows up on page 1: Page looks professional 2: "Crazy Face" cropped image on page 2: "Crazy Face" paragraph 3: "It's a Beautiful Day" cropped image on page

Continued Rubric (10% each) 3: "It's a Beautiful Day" paragraph 4: Card image 4: Card Paragraph 5: Uploaded Page called 25.htm 5: Files Appropriately named

 To get credit for the project, students must upload all required files to the web server. Don’t forget all the image files! There should be at least 3 image files. There should be one.htm file called 25.htm.

Proper file names Keep it simple. The file names of the pictures are more likely to have problems with long or mixed case names. On windows machines, the files will still be found if they are looked for as MiXeD LeTteRiNg CaSe. The online server is not using the Windows Operating system. The online server is a Linux system and FILES MUST HAVE THE SAME CASE AS THEY ARE CALLED IN THE HTM FILE.

Project Rubric Continued Rubric Uploading Proper file names