Catchup. Work on project.

Slides:



Advertisements
Similar presentations
Chapter 6 Photoshop and ImageReady: Part II The Web Warrior Guide to Web Design Technologies.
Advertisements

Chapter 7 Creating Complex Interactivity in an iPad Presentation.
Programming games More drawing. Text. Radian measure. Faces. Homework: Do your own drawings. Create index.html file. Upload work.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Chapter 14 Introduction to HTML
A Prezi presentation is like creating a mind map. It is created on a blank canvas and you decide where the information goes on this canvas.
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
Programming Games Computer science big ideas. Computer Science jargon. Show virtual dog Homework: [Catch up: dice game, credit card or other form.] Plan.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Tutorial 4: Using CSS for Page Layout. 2 Objectives Session 4.1 Explore CSS layout Compare types of floating layouts Examine code for CSS layouts View.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Programming Games Recap on Google Maps. Creating elements. Dynamic creation of elements (multiple video elements). Geolocation. Classwork/Homework: Catch-up.
Web Design ITM 2010 Tutorial 1 Prepared by Wang Shiyu.
Programming games Examples: Audio example. Google Maps api. Classwork: show more complex video. Classwork/Homework: Find place (lat and long) for basic.
Programming Games Basic HTML5 audio example. Catch-up. Work on basic video. Homework: Complete basic video.
Programming Games Show your cannonball. HTML5 video. Miro. Classwork/Homework: Acquire video, convert to multiple formats, and produce simple (just html)
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Programming Games Google Map API examples. CSS. Classwork/homework: Catch up. Upload work. Show your [more] complex Google Maps API example. Plan your.
Programming Games Simulated ballistic motion: cannon ball. Classwork: Final day for midterm project and all projects for first part of class. Homework:
Programming Games Show your simple video. More video examples. Audio. Classwork/Homework: Produce more complex video program.
Programming games Reprise: coin toss on canvas. Dice game rules. Global and local variables. Homework: [Catch up. Upload projects, including index.html.]
Programming Games Show project. Refresher on coordinates. Scaling, translation. HTML5 logo. Refresher on animation. Bouncing ball. Homework: Do your own.
Programming games Show your version of Bo the dog. Start cannonball Preview: video, audio work session (cannonball) Homework: Cannonball with ball in a.
Creating User Interfaces Recap HTML/HTML5 JavaScript features Homework: keep working on user observation studies. Review JavaScript.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on your cannonball. Homework: Finish.
Chapter 4 Working with Frames. Align and distribute objects on a page Stack and layer objects Work with graphics frames Work with text frames Chapter.
Programming Games [Show Google Maps project.] Demonstrate more examples. Classwork/Homework: Decide on final project. Post proposal to moodle.
Programming games Problems. Schedule Various examples. Homework: rps, bo (don't go back to do this), cannonball, Video or Audio should be complete. Now.
Programming games Context of what we are doing. Drawing on canvas. Homework: [Complete coin toss examples.] Do your own drawings. Upload files to website.
© 2011 Delmar, Cengage Learning Chapter 4 Working with Frames.
1 A Basic Introduction to Flash. Outline What is a flash? Macromedia Flash MX 2004 Flash concepts Flash Demos Conclusion Additional help 2.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
Creating User Interfaces HTML5 video & audio. Role of video and audio. Homework: Complete your own [small/simple] HTML5 video and audio projects.
Programming Games Show slide show (on your site). Bouncing something. Video element. Bouncing video element. Bouncing video drawn on canvas. Bouncing video.
Adding Interactivity Comp 140 Fall Web 2.0 Major change in internet usage –From mostly static pages Text Graphics Simple links –To new paradigm.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 6 1 Creating Dynamic Pages.
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Programming games Show work on site. Work on slide show. Timed event for bouncing ball. Homework: [Finish slide show and upload to site.] Acquire a short.
Unit 15 – Web Authoring Web Authoring Project.
Working with Links and Navigation
Tutorial 3 Creating Animations.
Creating a Flash Web Site
Objective % Select and utilize tools to design and develop websites.
Weebly Elements, Continued
HOW FLASH WORKS The Flash authoring environment is used to create Flash movies The .fla file is exported to a format called .swf The .swf file is.
Flash Interface, Commands and Functions
Section 17.1 Section 17.2 Add an audio file using HTML
Objective % Select and utilize tools to design and develop websites.
Section 10.1 YOU WILL LEARN TO… Define scripting
HTML5 Level II Session II
MS PowerPoint 2010 Week 2.
Programming Games Computer science big ideas and Computer Science jargon: review of things we have used in examples. Show virtual dog Homework: [Catch.
Programming Games [Show Google Maps project.] Demonstrate more examples. Classwork/Homework: Decide on final project. Post proposal to moodle. 1.
Playing Audio (Part 1).
The Canvas.
Tool for Creating Rich Media
Tutorial 6 Creating Dynamic Pages
DREAMWEAVER MX 2004 Chapter 7 Working with Layers
Programming games Share your plans for your virtual something.
Creating User Interfaces
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on animation project. Homework: Finish.
Programming Games Refresher on coordinates. Scaling, translation. HTML5 logo. Refresher on animation. Bouncing ball. Show project. Classwork/Homework:
Go over midterm. CSS catchup. Work session Homework: complete project
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Show your animation project. HTML5 video. Miro.
Presentation transcript:

Catchup. Work on project. Programming Games Examples Classwork/Homework: Post proposal for final project! Prepare to show “stage 1” of your project Catchup. Work on project.

Refrain / more on videos Addition of videos to collage use animation (setInterval) to play the videos each drawImage call just draws one frame from the video

Adding videos & audios You can create the video elements dynamically (that is, using code). Advantage of supporting separate behavior (code) and content Disadvantage: need to write code to check for loading Alternative: put video or audio elements in body and CSS to hide. Code to make visible and position

In style element video {position: absolute; display: none;} This makes all the videos at 0,0. In an init function, for each video: vstart = document.getElementById("start"); vstart.style.left=….; vstart.style.top=….; Outside of any function: lastmedia = 0; Somewhere: if (lastmedia!=0) { lastmedia.pause(); lastmedia.style.display="none"; } vstart.style.display="block"; lastmedia = vstart; vstart.play();

Addition to collage Student request for help in program that would move around videos and make videos somewhat transparent control volume[s]

Notes Use form of drawImage that specifies the source x, y, width and height as well as the target x, y, width and height. Because one of the videos had black borders since it was originally done in horizontal orientation Use volume property of video element. Because I wanted to turn off audio from one clip (dance) and feature the other (giggles)

Reflection on events Events are … situations that can be tested for (aka listened for) HTML and JavaScript has at least 3 ways to set up events and event handling in HTML tags using addEventListener using setInterval and setTimeout Google Maps API has its own events, including clicking on map addListener

Reflection, continued When using an API, need to know how to include it, possibly using a <script> element what are the functions, objects (methods and properties) what are the events associated with objects For Google Maps API, need understanding of the basic units: latitude and longitude

Google Map: specify area Challenge: indicate an area on the map and set up event Needs to be on the map, not on screen or canvas, since I want it to move with the map! Look up: google maps api version 3 polygon example Decided to separate program from data http://faculty.purchase.edu/jeanine.meyer/html5/drawpolygonfromdata.html

Reflection I guessed the term 'polygon'. There are also polyline, circle, rectangle. I could have gotten to it by looking at objects and noticing Overlay There also are layer(s) Google Maps API creates objects using options arrays: associative arrays (named elements, aka key/value pairs)

Origami applications Place to use drawing on canvas: line drawing for origami diagrams drawing images on canvas invoking video clips Challenge: how much to carry over from standard diagrams in books to new technology?

Examples http://faculty.purchase.edu/jeanine.meyer/html5/origamifrog.html http://faculty.purchase.edu/jeanine.meyer/html5/origamifish.html

Strategy set up framework for each step and going back and forth. steps array holds function call to do the drawing or play video plus text directions compute positions from previous positions using algebra, geometry and trigonometry

Reflection Note: framework made it [fairly] easy to build up the directions. Created many general functions: e.g., mountain fold from ax, ay to bx, by Most difficult thing was the arrows. Short and long http://faculty.purchase.edu/jeanine.meyer/origami/origamihtml5a.doc http://faculty.purchase.edu/jeanine.meyer/origami/origamihtml5.doc

Revolving 'lazy Susan' Request from Aviva http://faculty.purchase.edu/jeanine.meyer/html5/teapartytest.html elliptical orbit makes use of parameterized equations x(t) and y(t). Note that my code draws all 8 images though some are outside the canvas I didn't try to write code to check for that…

Open close windows Pop up windows can be bad! Request from student who wanted succession of windows, including one with audio. Simple, with alert message: http://faculty.purchase.edu/jeanine.meyer/html5/first.html Video and image: http://faculty.purchase.edu/jeanine.meyer/html5/firstvideo.html

Drawing image on path … change direction of image http://faculty.purchase.edu/jeanine.meyer/html5/drawingrev.html My approach Did work in PhotoShop to produce a version of the image that faced the other way Inserted code that checked if the x coordinate of a point on the path was greater or less than the previous x

Alternatives You can draw on canvas and do a scale transform to reverse the next drawing. ctx.scale(-1,1); Experiment.

Fade in and Fade out ctx.globalAlpha http://faculty.purchase.edu/jeanine.meyer/html5/fading.html

Think about what you want to do You can use parts of my projects, but add your own ideas http://faculty.purchase.edu/jeanine.meyer/morehtml5examples.html Read articles, tutorials, notes. OR do something totally different OR something inbetween. This is your chance to make YOUR project and develop YOUR skills! Don't copy.

Classwork/homework [Catch up, including uploading work to site, adding to "table of contents" page, probably index.html] [Make proposal for final project!!!] Work on project!