HTML5 Canvas—网站本地化交互和动画设计(影印版)
基本信息
- 原书名: HTML5 Canvas
- 原出版社: O'Reilly Media
- 作者: Steve Fulton Jeff Fulton [作译者介绍]
- 出版社:东南大学出版社
- ISBN:9787564129439
- 上架时间:2011-12-7
- 出版日期:2011 年10月
- 开本:16开
- 页码:628
- 版次:1-1
- 所属分类:
计算机 > 软件与程序设计 > 网络编程 > HTML
内容简介回到顶部↑
书籍
计算机书籍
不管你用什么平台或者工具,html5革命如果还没有改变你构建网络应用的方式,那么这个改变也将很快会发生。html5包含很多新特性,因此要学的东西也不少。本书将带你从canvas元素开始,它也许是html5最令人激动的功能,让你学习如何使用这个元素来绘画,渲染文本,操作图片以及创作动画,从而构建交互式多媒体应用。
无论你现在是在使用flash、 silverlight, 还是只是使用html加上javascript, 你都将很快入门。实际的示例在学习过程中向你展示如何使用canvas来创作各种游戏和娱乐应用程序。 在此过程中你将获得html5的宝贵经验,进而了解为何应用程序开发领袖们都把这个特性称为面向未来的创新性网络开发。
创作并修改二维图像、文本和位图
嵌入并操作视频,还有添加音频
构建一个基础框架以便在canvas上创作各种游戏
使用位图和tile表格开发动画游戏图像
走向移动设备:使用phonegap将canvas应用程序移植到iphone
探索使用各种方式将canvas运用于三维和多人游戏应用
计算机书籍
不管你用什么平台或者工具,html5革命如果还没有改变你构建网络应用的方式,那么这个改变也将很快会发生。html5包含很多新特性,因此要学的东西也不少。本书将带你从canvas元素开始,它也许是html5最令人激动的功能,让你学习如何使用这个元素来绘画,渲染文本,操作图片以及创作动画,从而构建交互式多媒体应用。
无论你现在是在使用flash、 silverlight, 还是只是使用html加上javascript, 你都将很快入门。实际的示例在学习过程中向你展示如何使用canvas来创作各种游戏和娱乐应用程序。 在此过程中你将获得html5的宝贵经验,进而了解为何应用程序开发领袖们都把这个特性称为面向未来的创新性网络开发。
创作并修改二维图像、文本和位图
嵌入并操作视频,还有添加音频
构建一个基础框架以便在canvas上创作各种游戏
使用位图和tile表格开发动画游戏图像
走向移动设备:使用phonegap将canvas应用程序移植到iphone
探索使用各种方式将canvas运用于三维和多人游戏应用
作译者回到顶部↑
本书提供作译者介绍
Steve和Jeff Fulton, 现任Zynga高级游戏开发工程师,曾任美泰玩具公司的网络开发经理,帮助美泰玩具创建了丰富的在线展示平台。他们还通过8bitrocket.com培养了一大批忠实听众,来了解Flash、Silverlight和现在的HTML5 Canvas的新闻、故事、博客和教程。
.. << 查看详细
.. << 查看详细
目录回到顶部↑
《html5 canvas—网站本地化交互和动画设计(影印版)》
preface
1. introduction to html5 canvas
the basic html page
(!doctype html)
(html lang="en")
(meta charset="utf-8")
(title)(/title)
a simple html5 page
basic html we will use in this book
(div)
(canvas)
the document object model (dom) and canvas
javascript and canvas
javascript frameworks and libraries
where does javascript go and why?
html5 canvas "hello world!"
encapsulating your javascript code for canvas
adding canvas to the html page
testing to see whether the browser supports canvas
preface
1. introduction to html5 canvas
the basic html page
(!doctype html)
(html lang="en")
(meta charset="utf-8")
(title)(/title)
a simple html5 page
basic html we will use in this book
(div)
(canvas)
the document object model (dom) and canvas
javascript and canvas
javascript frameworks and libraries
where does javascript go and why?
html5 canvas "hello world!"
encapsulating your javascript code for canvas
adding canvas to the html page
testing to see whether the browser supports canvas
前言回到顶部↑
HTML5 Canvas offers developers the chance to create animated graphics in ordinary web browsers using common tools: HTML and JavaScript. Canvas is one of the most visible parts of HTML5, fueling demo after demo, game after game. It offers interactivity with great visuals, and provides tremendous freedom to do whatever you want in the browser window. However, it differs enough from typical JavaScript development (as well as Flash and Silverlight development) that it needs careful exploration!
Running the Examples in the Book
The best part about programming HTML5 Canvas is that the entry barrier is very low--all you need is a modern web browser and a text editor.
As far as compatibility, we suggest you download and/or use t.he latest version of the web browsers as ordered below.
1. Chrome
2. Safari
3. Opera
4. Firefox
5. Internet Explorer (version 9 or higher)
Every example in this book was tested with Google Chrome, Safari, and Opera. Late in the development of the example code, Firefox started causing issues. While we made every attempt to ensure these examples worked across as many browsers as possible,we recommend you use Google Chrome or Safari for the best results until Canvas
support improves.
Please note that if you are using the .pdf version of this book to cut and paste the code, there may be instances where minus ("-") signs are representedby another character, such as a hyphen. You may need to replace the other character with a minus sign ("-") to get the code to work properly.
We suggest that if you have purchased the electronic version of this book, you should use the printed code samples as a guide only, and instead download the code from the book distribution. With that code, you will also get all the images, libraries, and assets necessary to make all the examples work in a web browser.
What You Need to Know
Ideally, you know your way around programming in some kind of modern language,such as C, C++, C#, ActionScript 2, ActionScript 3, Java, or JavaScript. However, if you're new to this space, we will introduce Canvas in a way that should familiarize you with web programming at the same time.
Web developers with a foundation in HTML and JavaScript should easily be able to pick up this book and run with it.
If you are a Flash developer, JavaScript and ActionScriPt 1 are essentially the same language. While Adobe took some liberties with ActionScript 2, you should be very comfortable with JavaScript. If you only have experience with ActionScript 3, Java-Script might feel like a step backward.
If you are a Silverlight or C# developer, take a deep breath and think about a time before ASP.NET/C# when you might have had to develop web apps in VBScript. You are about to enter a similar space.
How This Book Is Organized
This book is organized into 11 chapters. The first four chapters walk you through the HTML Canvas APl by example. The topics covered include text, images, and drawing.These chapters contain a few finished apps, but mainly consist of demos designed tom show you the facets of the Canvas APl. The following six chapters build upon the Canvas APl by expanding the scope of the examples to application length. In these chapters, we discuss math and physics applications, video, audio, games, and mobile.The final chapter introduces a couple experimental areas: 3D and multiplayer.
Running the Examples in the Book
The best part about programming HTML5 Canvas is that the entry barrier is very low--all you need is a modern web browser and a text editor.
As far as compatibility, we suggest you download and/or use t.he latest version of the web browsers as ordered below.
1. Chrome
2. Safari
3. Opera
4. Firefox
5. Internet Explorer (version 9 or higher)
Every example in this book was tested with Google Chrome, Safari, and Opera. Late in the development of the example code, Firefox started causing issues. While we made every attempt to ensure these examples worked across as many browsers as possible,we recommend you use Google Chrome or Safari for the best results until Canvas
support improves.
Please note that if you are using the .pdf version of this book to cut and paste the code, there may be instances where minus ("-") signs are representedby another character, such as a hyphen. You may need to replace the other character with a minus sign ("-") to get the code to work properly.
We suggest that if you have purchased the electronic version of this book, you should use the printed code samples as a guide only, and instead download the code from the book distribution. With that code, you will also get all the images, libraries, and assets necessary to make all the examples work in a web browser.
What You Need to Know
Ideally, you know your way around programming in some kind of modern language,such as C, C++, C#, ActionScript 2, ActionScript 3, Java, or JavaScript. However, if you're new to this space, we will introduce Canvas in a way that should familiarize you with web programming at the same time.
Web developers with a foundation in HTML and JavaScript should easily be able to pick up this book and run with it.
If you are a Flash developer, JavaScript and ActionScriPt 1 are essentially the same language. While Adobe took some liberties with ActionScript 2, you should be very comfortable with JavaScript. If you only have experience with ActionScript 3, Java-Script might feel like a step backward.
If you are a Silverlight or C# developer, take a deep breath and think about a time before ASP.NET/C# when you might have had to develop web apps in VBScript. You are about to enter a similar space.
How This Book Is Organized
This book is organized into 11 chapters. The first four chapters walk you through the HTML Canvas APl by example. The topics covered include text, images, and drawing.These chapters contain a few finished apps, but mainly consist of demos designed tom show you the facets of the Canvas APl. The following six chapters build upon the Canvas APl by expanding the scope of the examples to application length. In these chapters, we discuss math and physics applications, video, audio, games, and mobile.The final chapter introduces a couple experimental areas: 3D and multiplayer.
媒体评论回到顶部↑
“可能是HTML5最令人激动的标签,Canvas, 在这本不可或缺的书中受到全方位的检验。很多实际的示例启发思考,而对HTML5附带的功能如Video和Audio同样详细的讲解,则是令人出乎意料的奖品。”
——Raffaele Cecco 视频游戏的资深开发人员,作品包括Cybernoid、 Exolon和Stormlord
——Raffaele Cecco 视频游戏的资深开发人员,作品包括Cybernoid、 Exolon和Stormlord







点击看大图

加载中...
