Foundation HTML5 canvas
Foundation HTML5 Canvas: For Games and Entertainment teaches you how to make exciting interactive games and applications using HTML5 canvas. Canvas lets you produce graphics, animations, and applications using the HTML5 and JavaScript web standards. It allows you to draw directly within the browser...
Autor principal: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York :
Apress
2011.
|
Edición: | 1st ed. 2011. |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629302006719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; About the Cover Image Designer; Acknowledgments; Preface; Chapter 1 Introducing HTML5; A brief history of HTML; Why is HTML5 needed?; The itch; Scratching the itch; What's new in HTML5?; Structural and content elements; Structure in HTML5; The section element; The header element; The hgroup element; The footer element; The nay element; The article element; The aside element; Content in HTML5; The figure element; The figcaption element; The mark element; The time element; Forms
- Validation In the browserInput types; Input attributes; Media elements; The audio element; The video element; The canvas element; Deconstructing an example HTML5 page; Line by line analysis; Misconceptions about HTMLS; The CSS3 misconception; The Web Fonts misconception; The Geolocation misconception; The SVG misconception; The Web Storage misconception; The Web Workers misconception; The WebSockets misconception; Summary; FurtherHTML5resources; Chapter 2 Foundation JavaScript; An overview of JavaScript; jQuery; What is jQuery?; Why are we using it?; Isn't this cheating?
- Does this mean I won't understand pure JavaScript?How do I start using jQuery?; Adding JavaScript to an HTML page; Running JavaScript after the page has loaded; The wrong way (the window.onload event); The long way (the DOM); The easy way (the jQuery way); Variables and data types; Variables; Naming variables; Declaring variables and assigning values; Accessing variables; Arithmetic; Data types; Primitive data types; Composite data types; Other data types; Conditional statements; If statements; Comparison operators; Multiple truth checks within an if statement; Else and else if statements
- FunctionsCreating functions; Calling functions; Objects; What are objects?; Creating and using objects; Arrays; Creating arrays; Accessing and modifying arrays; Loops; Timers; Setting one-off timers; Unsetting one-off timers; Setting repeating timers; Unsetting repeating timers; The DOM; An example HTML web page; Accessing the DOM using pure JavaScript; Accessing the DOM using jQuery; Manipulating the DOM; Summary; Chapter 3 Learning the Basics of Canvas; Getting friendly with the canvas element; Browser support for canvas; The 2d rendering context; The coordinate system
- Accessing the 2d rendering contextDrawing basic shapes and lines; Lines; Circles; Style; Changing line width; Drawing text; Erasing the canvas; The width/height trick; Making canvas fill the browser window; Summary; Chapter 4 Pushing Canvas Further; Saving and restoring the drawing state; What is the canvas drawing state?; Saving the drawing state; Restoring the drawing state; Saving and restoring multiple drawing states; Transformations; Translation; Scaling; Rotation; The transformation matrix; Manipulating the transformation matrix; Compositing; Global alpha; Composite operations; Shadows
- Gradients